[eluser]Ajaxian64[/eluser]
Hello,
I would like to do something very basic.
Suppose I have 2 controllers, and 2 associated models
I have a view, in which controller 1 send its data (coming from model1), but in a part of the view I have to load also some data which are coming from model 2
typically this situation takes place on blog system where when you edit a post you have mapped on the same view, the list of categories.
I think that view combines data from Post model and data from category model.
Question is: how can handle this with CI ?
the view is displayed by controller1 but inside view data shall be retreived from model2
In cakePhp it is the solved by the use of
$sidebar = $this->requestAction(array('plugin'=>null,'controller'=>'Tags','action'=>'getList')) ;
Thanks