09-03-2009, 03:04 AM
[eluser]n0xie[/eluser]
[quote author="pyrokinesis" date="1251984496"]
I'm trying to set up a default value that is set in the constructor and passed passed to every view unless overwritten from within the specific controller.
[/quote]
You would be better of just extending the Controller Class. In MY_Controller you set all your default values, and unless overwritten from within your controller, it will use those values. It's easier and cleaner.
http://ellislab.com/codeigniter/user-gui...asses.html
[quote author="pyrokinesis" date="1251984496"]
I'm trying to set up a default value that is set in the constructor and passed passed to every view unless overwritten from within the specific controller.
[/quote]
You would be better of just extending the Controller Class. In MY_Controller you set all your default values, and unless overwritten from within your controller, it will use those values. It's easier and cleaner.
http://ellislab.com/codeigniter/user-gui...asses.html