yezihack
- yezihack 回复了话题 yii框架入门,总是出错
如果用cmd与main.php配置无关的。只与console.php配置有关
- yezihack 回复了话题 yii框架入门,总是出错
找到config 文件再找到console.php文件,将里的配置写正确:如下
// This is the configuration for yiic console application. // Any writable CConsoleApplication properties can be configured here. return array( 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=>'My Console Application', // application components 'components'=>array( 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=test', 'emulatePrepare' => true, 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'tablePrefix' => 'tbl_', 'enableParamLogging' => YII_DEBUG,//供debug使用 'enableProfiling' => YII_DEBUG,//供debug使用 ), ), );
- yezihack 回复了话题 widget怎么用,大神在哪?
结贴,希望跟大家分享
- yezihack 回复了话题 widget怎么用,大神在哪?
研究了一下,看完这贴基本明白啦
http://kb.cnblogs.com/a/2286319/ widget使用 - yezihack 发布了话题widget怎么用,大神在哪?
// change the following paths if necessary $yii=dirname(__FILE__).'/../framework/yii.php'; $config=dirname(__FILE__).'/protected/config/main.php'; // remove the following lines when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); // specify how many levels of call stack should be shown in each log message defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); require_once($yii); Yii::createWebApplication($config)->run();
- yezihack 发布了话题rules 解释一下
学习YII,路过