Welcome Guest, Not a member yet? Register   Sign In
Beginner's Question: Can I instantiate a controller from within a controller to access member functions?
#1

[eluser]Unknown[/eluser]
Hey CI,

Basically I was wondering if it would be better to create a helper for this functionality or dig to find out if the following is possible:

Code:
class Index extends Controller{

       var $persist = array();

       function __construct()
       {
              parent::Controller();
              $persist['item'] = $this->mycontroller->myfunction();
       }

Thanks for your help


Messages In This Thread
Beginner's Question: Can I instantiate a controller from within a controller to access member functions? - by El Forum - 01-12-2010, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB