示例#1
0
文件: ExtShell.php 项目: dlpc/CakeWX
 /**
  * Activate a plugin
  *
  * @param string $plugin
  * @return boolean
  */
 protected function _activatePlugin($plugin)
 {
     $result = $this->_CroogoPlugin->activate($plugin);
     if ($result === true) {
         $this->out(__d('croogo', 'Plugin "%s" activated successfully.', $plugin));
         return true;
     } elseif (is_string($result)) {
         $this->err($result);
     } else {
         $this->err(__d('croogo', 'Plugin "%s" could not be activated. Please, try again.', $plugin));
     }
     return false;
 }