Welcome Guest, Not a member yet? Register   Sign In
Accessing functions from external controllers
#4

[eluser]Thorpe Obazee[/eluser]
Code:
// MY_Controller
class MY_Controller extends Controller {

    function MY_Controller()
    {
        parent::Controller();

    }

    function something_else()
    {
         // do something
    }
}
Code:
// controller
class Front extends MY_Controller {

    function Front()
    {
        parent::MY_Controller();
    }

        function do_something()
        {
              $this->something_else();
        }
        
}

$this->something_else() is from the MY_Controller.


Messages In This Thread
Accessing functions from external controllers - by El Forum - 11-08-2009, 07:04 PM
Accessing functions from external controllers - by El Forum - 11-08-2009, 07:25 PM
Accessing functions from external controllers - by El Forum - 11-08-2009, 08:07 PM
Accessing functions from external controllers - by El Forum - 11-08-2009, 08:30 PM
Accessing functions from external controllers - by El Forum - 11-08-2009, 08:48 PM
Accessing functions from external controllers - by El Forum - 11-09-2009, 12:33 AM
Accessing functions from external controllers - by El Forum - 11-09-2009, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB