dynamic $config array Concept |
[eluser]Jelmer[/eluser]
I'd suggest extending the Controller class as MY_Controller (howto in the user guide, at the bottom on extending native libraries) and doing it like this (requiring far less code): Code: class MY_Controller extends Controller { Or use a hook and implement it as an "post_controller_constructor". The reason you do it after the controller constructor in both cases is because the database class has been autoloaded at that time if you include it in the autoload.php, and there's little reason not to when you need DB access anyway. Or skip the need for a DB query altogether and do it like I explained in this topic. |
Messages In This Thread |
dynamic $config array Concept - by El Forum - 05-08-2010, 12:59 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 01:48 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 04:57 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:09 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:14 PM
dynamic $config array Concept - by El Forum - 05-08-2010, 05:29 PM
dynamic $config array Concept - by El Forum - 05-09-2010, 08:31 PM
dynamic $config array Concept - by El Forum - 05-10-2010, 02:29 AM
dynamic $config array Concept - by El Forum - 05-10-2010, 02:35 AM
dynamic $config array Concept - by El Forum - 05-10-2010, 09:03 AM
|