codeigniter-simplicity icon indicating copy to clipboard operation
codeigniter-simplicity copied to clipboard

Js,css and Meta not loading in template

Open vimalmistry opened this issue 10 years ago • 5 comments

Hi.. Please update your lib for CI3. Curruntly I am using with CI3 and its working fine. But only one problem found. Its show me js ,css,meta to blank nothing loading in my main template please.help me.

vimalmistry avatar Mar 13 '15 12:03 vimalmistry

if you're using MX HMVC extension, yes you probably get that Issue. I have that issue too but if plain simplicity for CI3 im not getting any problem.

CI3 + Simplicity + wiredesignz HMVC = not loading the variables generated by MY_Output CI3 + Simplicity = will load the variables generated by MY_Output

to check try $this->load->js('anyjsfile.js'); then var_dump($js); to your view file

if your controller extending MX_Controller the result will be an empty array and if your controller extending CI_Controller the result will be an array with your loaded js file

c0mp1l3r911 avatar Dec 14 '15 17:12 c0mp1l3r911

yes i am facing same problem anything solution this problem

rahuldmk avatar Jan 13 '16 10:01 rahuldmk

Anybody have a solution for the problem with the MX_Controller empty array?

TheSpawn avatar Jan 30 '16 18:01 TheSpawn

Same issue as https://github.com/scoumbourdis/codeigniter-simplicity/issues/2 (closed) I'm already working on this issue...

scombat avatar Feb 07 '16 01:02 scombat

a little hack by adding all methods from MY_Loader to MY_Output worked in my case, but you must use $this->output instead of $this->load.. eg: change your code from $this->load->js() to $this->output->js(), $this->load->section() to $this->output->section() etc.. replace your MY_Loader.php and MY_Output.php with this ~> core.zip

poeraw avatar Apr 18 '16 20:04 poeraw