Extending the Controller |
[eluser]heavenquake[/eluser]
[quote author="JasonS" date="1266720843"]Ah ofcourse, Linux has case sensitive file names... which differ's from Windows / Mac which is case insensitive. Any idea how to fork the Controller so that I could have a front controller and an admin controller?[/quote] A simple solution is to have the file called MY_Controller.php, and then just declare Front_Controller and Admin_Controller in that same file. This is PHP4 compatible. Personally I have a pre_system hook that implements magic autoload ( http://php.net/autoload ) and then I just declare the master-controllers in the controllers-dir along with the others. This is not PHP4-compatible. |
Messages In This Thread |
Extending the Controller - by El Forum - 02-20-2010, 04:34 AM
Extending the Controller - by El Forum - 02-20-2010, 05:26 AM
Extending the Controller - by El Forum - 02-20-2010, 02:54 PM
Extending the Controller - by El Forum - 02-20-2010, 04:08 PM
Extending the Controller - by El Forum - 02-20-2010, 05:25 PM
|