index vs. __construct in controller? |
[eluser]TheIgniter[/eluser]
Hi skaterdav, - Classes which have a constructor method call this method on each newly created object - The index method is also called when you execute your controller www.mysite.com/mycontroller/ - In the other hand, when you call a method : www.mysite.com/mycontroller/mymethod, the index method is not called, on the contrary the constructor is called in each method (In each load of the class)... i hope it clear, correct me if i'm wrong. |
Messages In This Thread |
index vs. __construct in controller? - by El Forum - 07-04-2010, 06:14 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 07:13 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 09:24 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 09:51 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 10:39 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 10:55 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 10:56 PM
index vs. __construct in controller? - by El Forum - 07-04-2010, 11:31 PM
index vs. __construct in controller? - by El Forum - 07-05-2010, 12:07 AM
index vs. __construct in controller? - by El Forum - 07-05-2010, 02:28 AM
index vs. __construct in controller? - by El Forum - 07-05-2010, 02:53 AM
index vs. __construct in controller? - by El Forum - 07-05-2010, 03:08 AM
index vs. __construct in controller? - by El Forum - 07-05-2010, 03:14 AM
index vs. __construct in controller? - by El Forum - 07-05-2010, 06:05 AM
index vs. __construct in controller? - by El Forum - 07-13-2010, 03:37 AM
index vs. __construct in controller? - by El Forum - 07-13-2010, 03:49 AM
|