コード例 #1
0
ファイル: Module.php プロジェクト: thoughtyards/framework
 /**
  * @param string $path the root directory of layout files.
  * @throws CException if the directory does not exist.
  */
 public function setLayoutPath($path)
 {
     if (($this->_layoutPath = realpath($path)) === false || !is_dir($this->_layoutPath)) {
         throw new ThoughtException(Gateway::log("The layout path  '.{$path}.' is not a valid directory."));
     }
 }
コード例 #2
0
 /**
  * @param string $value the directory that contains the command classes.
  * @throws CException if the directory is invalid
  */
 public function setCommandPath($value)
 {
     if (($this->_commandPath = realpath($value)) === false || !is_dir($this->_commandPath)) {
         throw new ThoughtException(Gateway::log("The command path '.{$value}.' is not a valid directory."));
     }
 }