/** * Load a panel view * @access private * @param object $layout Layout (panel) name * @return panel JView object */ private function loadPanel($panel, $state) { $view = new WFView(array('name' => $panel, 'layout' => $panel)); // add tab paths foreach ($this->_paths as $path) { $view->addTemplatePath($path); } // assign panel state to view $view->assign('state', (int) $state); return $view; }