Controller call controller ? |
[eluser]Unknown[/eluser]
I am is newbie at codeigniter my problem is I can't call controller at any controller. if any one have solution tell me what I can do ? and where I can get good tutorial codeigniter or free source code project codeigniter at JQuery. thanks
[eluser]wiredesignz[/eluser]
http://lmgtfy.com/?q=codeigniter control...controller
[eluser]rochellecanale[/eluser]
Why you need to call the other controller? All you need to do is create a controller. And to that controller create a function/method to call the other function inside that controller. You can call controller with the Views. $this->load->view('controllername/method');
[eluser]wiredesignz[/eluser]
[quote author="rochellecanale" date="1348207875"]... You can call controller with the Views. $this->load->view('controllername/method');[/quote] @rochellecanale, I think you're a bit confused about the resources that are available to the view loader.
[eluser]ojcarga[/eluser]
@samsoel read a little bit of MVC man, that would help you understand how CodeIgniter works and also the user guide (http://ellislab.com/codeigniter/user-guide/) is the most powerful resource to learn about CI... I am pretty sure you can not do what @rochellecanale said but if can do it you should not do that way. User a helper for example or a library in case you need some methods to be called from some controllers. |
Welcome Guest, Not a member yet? Register Sign In |