Message: Undefined variable: css |
[eluser]jzmwebdevelopement[/eluser]
Hey, I am unsure why I am getting the Error: Message: Undefined variable: css in my view. I have checked the user guide and googled I am a bit stumped: Controller: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); View: Code: <!DOCTYPE html>
[eluser]InsiteFX[/eluser]
Code: public function index() If that does not fix then It could be a reserved html word, try changing the name and see if it goes away.
[eluser]vincej[/eluser]
You appear not to be applying a valid value to $data['css'] in your controller.
[eluser]jzmwebdevelopement[/eluser]
[quote author="vincej" date="1328595503"]You appear not to be applying a valid value to $data['css'] in your controller. [/quote] Can you provide an example?
[eluser]InsiteFX[/eluser]
I just tried it on my system and it works fine using your directory structure. Unless you are missing your ending body and html tags! Code: <!DOCTYPE html>
[eluser]jzmwebdevelopement[/eluser]
[quote author="InsiteFX" date="1328596318"]I just tried it on my system and it works fine using your directory structure. Unless you are missing your ending body and html tags! Code: <!DOCTYPE html> Thanks so much
[eluser]jzmwebdevelopement[/eluser]
[quote author="InsiteFX" date="1328596318"]I just tried it on my system and it works fine using your directory structure. Unless you are missing your ending body and html tags! Code: <!DOCTYPE html> Hey, I have tried again on a new install and I can pass Code: $data J
[eluser]InsiteFX[/eluser]
Try this: Code: public function index()
[eluser]jzmwebdevelopement[/eluser]
[quote author="InsiteFX" date="1328647851"]Try this: Code: public function index() I have tried that with out any luck. Any other ideas, its like its not being seen.
[eluser]CroNiX[/eluser]
Um, in your view (header.php), you are trying to echo $text, which you are not passing to the view. Change it to $css, which you ARE passing |
Welcome Guest, Not a member yet? Register Sign In |