Пример #1
0
 protected function beforeRender()
 {
     parent::beforeRender();
     $user_id = $this->user->id;
     if ($this->user->isLoggedIn() and $user_id != NULL) {
         $css = $this->baseModel->getCss($user_id);
         $this->template->userCss = $css->style;
     } else {
         $this->template->userCss = 1;
     }
 }