Welcome Guest, Not a member yet? Register   Sign In
Subclassing Controller
#15

[eluser]Mirage[/eluser]
1) They both are constructor methods, being called when an instance of a class is created with the 'new' operator. In PHP4 the constructor must be named the same as the class. So for the 'Controller' class 'Controller()' is the constructor. In PHP5 this was extended and you can use the generic __construct() method name as a constructor.

2) Controller directory. The CI Framework automatically includes Controller (core class) and then MY_Controller (core extension) and then the actual controller from the controllers directory.


Cheers,
-m


Messages In This Thread
Subclassing Controller - by El Forum - 06-18-2008, 05:47 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:09 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:10 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:21 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:24 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:27 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:37 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:51 AM
Subclassing Controller - by El Forum - 06-18-2008, 06:59 AM
Subclassing Controller - by El Forum - 09-09-2008, 06:06 PM
Subclassing Controller - by El Forum - 09-10-2008, 03:01 AM
Subclassing Controller - by El Forum - 09-10-2008, 05:37 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:07 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:13 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:19 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:32 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:40 AM
Subclassing Controller - by El Forum - 09-10-2008, 07:47 AM
Subclassing Controller - by El Forum - 09-10-2008, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB