Fehler (User)
Navigation: category "main" does not exist.

  1.         if ($alias === null)
  2.             {
  3.             if (is_null($category)) return $this->_TREE;
  4.             if (!isset($this->_TREE[$category])) { trigger_error(__CLASS__.': category "'.$category.'" does not exist.'E_USER_ERROR); return; }
  5.  
  6.             return $this->_TREE[$category];
  7.             }
  8.  
  9.         // Also alias ist there...
  10.         if (!isset($this->_TREENODES[$category])) {    trigger_error(__CLASS__.': category "'.$category.'" does not exist.'E_USER_ERROR); return; }
  11.         if (!isset($this->_TREENODES[$category][$alias])) { trigger_error(__CLASS__.': alias "'.$alias.'" does not exist in category "'.$category.'".'E_USER_ERROR); return; }
  12.         return $this->_TREENODES[$category][$alias];
  13.         }
  14.  
  15.     // get breadcrumb (tree up to actual page)
  16.     public function getBreadcrumb($category)
  17.         {
  18.         // create breadcrumb (linked via references to _TREENODES)
  19.         $this->_createBreadcrumb($this->_NODES);
  20.  
  1.         {
  2.         $this->load('navigation');
  3.  
  4.         // navigation
  5.         $navi $this->navigation->get();
  6.         $this->view->setContent($navi'navi');
  7.  
  8.         // actual page
  9.         $page $this->page->get();
  10.         $navi $this->navigation->get('main'$page['alias']);
  11.         $this->view->setContent($navi'actual');
  12.  
  13.         // breadcrumb
  14.         $breadcrumb $this->navigation->getBreadcrumb('main');
  15.         $this->view->setContent($breadcrumb'breadcrumb');
  16.         }
  17.     }
  18.  
  19. ?>
  1.             {
  2.             include($page_controller_file);
  3.             $controller = new PageController();
  4.             $controller->setup();
  5.             $controller->run();
  6.             }
  7.         else
  8.             {
  9.             $controller = new GlobalController();
  10.             $controller->setup();
  11.             }
  12.  
  13.         /* load view class and render page
  14.         ********************************************************************************************/
  15.         $this->view Factory::getInstance('view');
  16.  
  17.         // Inhalte zuweisen
  18.         $this->view->setContent($this->page->get(), 'page');
  19.         $this->view->setContent($this->language->getContent(), 'language');
  20.         $this->view->setContent($session->get(), 'session');
  1. <?php
  2.  
  3. class Morrow
  4.     {
  5.     public function __construct()
  6.         {
  7.         $this->_run();
  8.         }
  9.  
  10.     public function errorhandler($errno$errstr$errfile$errline)
  11.         {
  12.         // get actual error_reporting
  13.         $error_reporting error_reporting();
  14.  
  15.         // request for @ error-control operator
  16.         if ($error_reporting == 0) return;
  17.  
  18.         // return if error should not get processed
  19.         if (($errno $error_reporting) === 0) return;
  20.  
  1.             {
  2.             // Ist die Instanz denn eine der geforderten Klasse? instanceof
  3.             if ($instance instanceof $classname)
  4.                 return $instance;
  5.             else
  6.                 trigger_error('instance "'.$newclass.'" already defined of class "'.get_class($instance).'"'E_USER_ERROR);
  7.             }
  8.         else
  9.             {
  10.             $instance = new $classname($args);
  11.             return $instance;
  12.             }
  13.         }
  14.     }
  15.  
  16. ?>
  1.     header('Cache-Control: public, max-age=' $filemaxage);
  2.  
  3.     // output content
  4.     echo $output['body'];
  5.     return;
  6.     }
  7.  
  8. /* load framework
  9. ********************************************************************************************/
  10. Factory::getInstance('morrow');
  11.  
  12. ?>
  1. $time_start microtime(true);
  2.  
  3. // include E_STRICT in error_reporting
  4. error_reporting(E_ALL E_STRICT);
  5.  
  6. // set framework path
  7. define ("FW_PATH"dirname(__FILE__).'/');
  8.  
  9. // include starter
  10. require(FW_PATH "_core/_root.php");
  11.  
  12. $time_end microtime(true);
  13. $time $time_end $time_start;
  14.  
  15. //echo 'Time: '.round($time*1000, 2).' ms';
  16.  
  17. ?>