Welcome Guest, Not a member yet? Register   Sign In
controller extends controller, same for models
#4

[eluser]boltsabre[/eluser]
This might help you:
http://philsturgeon.co.uk/blog/2010/02/C...ing-it-DRY

Else if just wanted a handful of your controllers to extend the user controller, all you have do is include your "user" controller file in the controller/s you want to extend user like this:
Code:
<?php
include_once('path/to/user.php');
lass Social extends User {
   //constructor

}
You can't use functions/code/classes in a file without first including the file!


Messages In This Thread
controller extends controller, same for models - by El Forum - 02-25-2013, 05:44 PM
controller extends controller, same for models - by El Forum - 02-25-2013, 06:33 PM
controller extends controller, same for models - by El Forum - 02-26-2013, 06:21 AM
controller extends controller, same for models - by El Forum - 02-26-2013, 06:36 AM
controller extends controller, same for models - by El Forum - 02-27-2013, 07:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB