I need to access an administrator end model from a site controller. What's the best way to do this? I have the following in my site controller:
$this->addModelPath(JPATH_COMPONENT_ADMINISTRATOR.'/models'); ... $view = &$this->getView('MyView', 'html'); $view->setModel($this->getModel('MyAdminModel')); ... $view->display();
$model = $this->getModel('MyAdminModel'); $this->data = $model->get('Items');
in my view, but this seems a bit convoluted. Is there an easier way?