示例#1
0
文件: ExtShell.php 项目: dlpc/CakeWX
 /**
  * Activate a theme
  *
  * @param string $theme Name of theme
  * @return boolean
  */
 protected function _activateTheme($theme)
 {
     if ($this->_CroogoTheme->activate($theme)) {
         $this->out(__d('croogo', 'Theme "%s" activated successfully.', $theme));
     } else {
         $this->err(__d('croogo', 'Theme "%s" activation failed.', $theme));
     }
     return true;
 }
示例#2
0
 /**
  * Activate a theme
  *
  * @param string $theme Name of theme
  * @return boolean
  */
 protected function _activateTheme($theme = null)
 {
     if ($r = $this->_CroogoTheme->activate($theme)) {
         if (is_null($theme)) {
             $this->out(__('Theme deactivated successfully.'));
         } else {
             $this->out(__('Theme "%s" activated successfully.', $theme));
         }
     } else {
         $this->err(__('Theme "%s" activation failed.', $theme));
     }
     return true;
 }