Welcome Guest, Not a member yet? Register   Sign In
Execute a controller function inside other controller function
#2

[eluser]pistolPete[/eluser]
Either search this forum for "HMVC" or use the "traditional" PHP way:

Code:
<?php
require_once('B.php');
class A extends Controller {
   function foo()
   {
      $b = new B();
      $b->bar();
   }
}

You could also turn B into a library.


Messages In This Thread
Execute a controller function inside other controller function - by El Forum - 04-25-2009, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB