framework/cli/commands/WebAppCommand.php
public function generateYiic($source,$params)
	{
		$content=file_get_contents($source);
		$yiic=realpath(dirname(__FILE__).'/../../yiic.php');
		$yiic=$this->getRelativePath($yiic,$this->_rootPath.DIRECTORY_SEPARATOR.'protected'.DIRECTORY_SEPARATOR.'yiic.php');
		$yiic=str_replace('\\','\\\\',$yiic);
		return preg_replace('/\$yiic\s*=(.*?);/',"\$yiic=$yiic;",$content);
	}
public function generateYiic($source,$params)
	{
		$content=file_get_contents($source);
		$yiic=realpath(dirname(__FILE__).'/../../yiic.php');
		$yiic=$this->getRelativePath($yiic,$this->_rootPath.DIRECTORY_SEPARATOR.'protected'.DIRECTORY_SEPARATOR.'yiic.php');
		$yiic=str_replace('\\','\\\\',$yiic);
		return preg_replace('/\$yiic\s*=(.*?);/',"\$yiic=$yiic;",$content);
	}
public function generateYiic ( $ source , $ params ) { $ content = file_get_contents ( $ source ) ; $ yiic = realpath ( dirname ( __FILE__ ) . '/../../yiic.php' ) ; $ yiic = $ this -> getRelativePath ( $ yiic , $ this -> _rootPath . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'yiic.php' ) ; $ yiic = str_replace ( '\\' , '\\\\' , $ yiic ) ; return preg_replace ( '/\$yiic\s*=(.*?);/' , "\$yiic=$yiic;" , $ content ) ; }
Inserts path to framework's yiic.php into application's yiic.php

@param string $source source file path
@param array $params
@return string modified source file content
Inserts path to framework s yiic . php into application s yiic . php