在main.php 里面配置 return array( 'theme'=>'myTheme, ); 要使用theme里面的资源的话,比如说images, js, css,用以下方法: Yii::app()->theme->baseUrl."/images/FileName.gif"; Yii::app()...
{ 超级计算机囧囧囧 }
在main.php 里面配置 return array( 'theme'=>'myTheme, ); 要使用theme里面的资源的话,比如说images, js, css,用以下方法: Yii::app()->theme->baseUrl."/images/FileName.gif"; Yii::app()...
Components的方法 引入以及定义: 在config.php文件里面 'components'=>array( 'helloword'=>array( 'class'=>'ext.helloword.HellowordClass', 'property1′=>'...
近期评论