Welcome Guest, Not a member yet? Register   Sign In
call one of the method from another class
#1

[eluser]Uresh Patel[/eluser]
Respected,

I have two controllers.I want to call one of the method from one class.
Below both class are different controller files
E.g:
Code:
class User extends CI_Controller {

             function index(){
                 //code
             }

              function list(){
                   //i want to call class 'Blog.Add' method....
             }
}


  class Blog extends CI_Controller {

         function index(){
            //code
         }

         function Add(){
              //code
         }
}
Please suggest good way to do so ....


Messages In This Thread
call one of the method from another class - by El Forum - 04-21-2013, 09:13 PM
call one of the method from another class - by El Forum - 04-22-2013, 02:53 AM
call one of the method from another class - by El Forum - 04-22-2013, 03:35 AM
call one of the method from another class - by El Forum - 04-22-2013, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB