Code: Select all
500 - View not found
Code: Select all
View not found [name, type, prefix]: frontpage,html,callistoView
In the component.php-file I have this:
Code: Select all
$controller->registerDefaultTask('display');
Code: Select all
function display () {
$document =& JFactory::getDocument();
$viewName = JRequest::getVar('view','events');
$viewType = $document->getType();
$view = &$this->getView($viewName, $viewType);
$model = &$this->getModel('default' );
if (!JError::isError( $model )) {
$view->setModel( $model, true );
}
$view->setLayout("default");
$view->display();
}
My save function looks like this:
Code: Select all
function save () {
$option = JRequest::getCmd('option');
$itemid = JRequest::getCmd('itemid');
$post = JRequest::get('post');
$row =& JTable::getInstance('Callisto', 'Table');
if (!$row->bind($post)) {
return JError::raiseWarning(500, $row->getError());
}
if (!$row->store()) {
return JError::raiseWarning(500, $row->getError());
}
$this->setRedirect('index.php?option=' . $option . '&itemid=' . $itemid);
$this->setMessage('Händelse inlagd');
}
Could someone help figure out whats wrong?
(The most annoying part is that I want to believe that it has worked before with SEF-urls but something has change I can for my life not figure out what.)