Welcome Guest, Not a member yet? Register   Sign In
include main app controller only once
#1

[eluser]gerben[/eluser]
Coming from the Cake framework, I find it convenient to create an app-controller for system-wide settings that extends the main CI controller. All my other controllers extend the app controller, rather than the CI controller.

Right now I include my app-controller in every controller that extends it, like so:

Code:
<?php
include("application/app_controller.php");

class SomeController extends AppController {

// etc.

?>

But isn't there an easier way to include this controller in every controller that extends it?


Messages In This Thread
include main app controller only once - by El Forum - 08-24-2007, 09:15 AM
include main app controller only once - by El Forum - 08-24-2007, 10:19 AM
include main app controller only once - by El Forum - 08-24-2007, 10:55 AM
include main app controller only once - by El Forum - 08-24-2007, 11:10 AM
include main app controller only once - by El Forum - 08-24-2007, 11:43 AM
include main app controller only once - by El Forum - 08-24-2007, 11:48 AM
include main app controller only once - by El Forum - 08-24-2007, 12:05 PM
include main app controller only once - by El Forum - 08-24-2007, 02:08 PM
include main app controller only once - by El Forum - 08-24-2007, 03:03 PM
include main app controller only once - by El Forum - 08-24-2007, 04:57 PM
include main app controller only once - by El Forum - 08-24-2007, 05:05 PM
include main app controller only once - by El Forum - 08-24-2007, 05:29 PM
include main app controller only once - by El Forum - 08-24-2007, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB