Missing argument 1 for Layout::__construct(), called in C:\Xampp\htdocs\system\core\Loader.php on line 950 and defined - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Missing argument 1 for Layout::__construct(), called in C:\Xampp\htdocs\system\core\Loader.php on line 950 and defined (/showthread.php?tid=42778) |
Missing argument 1 for Layout::__construct(), called in C:\Xampp\htdocs\system\core\Loader.php on line 950 and defined - El Forum - 06-19-2011 [eluser]Unknown[/eluser] I have started to create a new library called Layout and I have successfully loaded the library but somehow, it is not passing the arguments correctly and I received the following error message. Code: A PHP Error was encountered Code: A PHP Error was encountered Below are the codes for the constructor. Code: class Layout { Below are the constructor codes for my controller. Code: class Home extends MY_Controller { I appreciate who can help me in this. Thanks. Missing argument 1 for Layout::__construct(), called in C:\Xampp\htdocs\system\core\Loader.php on line 950 and defined - El Forum - 06-19-2011 [eluser]InsiteFX[/eluser] Code: class Layout { InsiteFX Missing argument 1 for Layout::__construct(), called in C:\Xampp\htdocs\system\core\Loader.php on line 950 and defined - El Forum - 06-20-2011 [eluser]Unknown[/eluser] Thanks for replying, InsiteFX but I got the following error code. Code: An Error Was Encountered Even if I follow the user guide, it is still not working. Seems like a bug to me. Any help with this? |