CodeIgniter Forums
How can i initialize a userdefined variable. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How can i initialize a userdefined variable. (/showthread.php?tid=23804)

Pages: 1 2


How can i initialize a userdefined variable. - El Forum - 10-23-2009

[eluser]jinojoseph[/eluser]
I had workedout this code but i am getting this error message,

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Master_model::$action

Filename: controllers/master.php



regards,
Jino


How can i initialize a userdefined variable. - El Forum - 10-23-2009

[eluser]Michael Wales[/eluser]
You're going to have to share some code - we can't write the app for your by proxy here. That error is pretty self-explanatory, you are trying to set the action property on the Master_model class from your controller, yet no action property has been declared.