I am trying to use multiple models in my view. My view is a single items and the models are lists displayed within the view using tabs.
in my controller I added the setModel in the display function
Code: Select all
class ComplianceControllerCompliance extends JControllerForm
{
public function display( $cachable = false, $urlparam = array() )
{
$view = $this->getView( 'myview', 'html' );
$view->setModel( $this->getModel( 'mymodel' ), true );
$view->setModel( $this->getModel( 'content' ) );
$view->display();
}
Code: Select all
$this->content_items = $this->get( 'Items', 'content' );
$this->content_pagination = $this->get( 'Pagination', 'content' );
$this->content_state = $this->get( 'State', 'content' );
Furthermore while debugging and setting my breakpoint in the controllers display function I never get there?!
What am I doing wrong?
Thanks in advance!