示例#1
0
 protected function getRoutes($all = false)
 {
     if ($all) {
         return parent::getRoutes();
     }
     $routes = wa()->getRouting()->getByApp($this->getAppId());
     $result = array();
     $domain = siteHelper::getDomain();
     if (isset($routes[$domain])) {
         foreach (array_reverse($routes[$domain], true) as $route_id => $route) {
             $route['_id'] = $route_id;
             $route['_domain'] = $domain;
             $route['_url'] = waRouting::getUrlByRoute($route, $domain);
             $route['_url_title'] = $domain . '/' . waRouting::clearUrl($route['url']);
             $result[] = $route;
         }
     }
     return $result;
 }
 public function defaultAction()
 {
     $this->setLayout(new blogDefaultLayout());
     $this->getResponse()->setTitle(_ws('Design'));
     parent::defaultAction();
 }
 protected function getThemesRoutes(&$themes, $routes)
 {
     $routes = parent::getRoutes();
     return parent::getThemesRoutes($themes, $routes);
 }
 public function defaultAction()
 {
     $this->setLayout(new guestbook2BackendLayout());
     parent::defaultAction();
 }