Sources
This commit is contained in:
parent
854c5b6e7e
commit
0c03d2498b
3400 changed files with 853482 additions and 0 deletions
34
src/protected/installer/InstallerModule.php
Normal file
34
src/protected/installer/InstallerModule.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
class InstallerModule extends CWebModule
|
||||
{
|
||||
private $_assetsUrl;
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
Yii::setPathOfAlias('installer', dirname(__FILE__));
|
||||
|
||||
Yii::app()->setComponents(array(
|
||||
'errorHandler'=>array(
|
||||
'class'=>'CErrorHandler',
|
||||
'errorAction'=>parent::getId().'/default/error',
|
||||
),
|
||||
'widgetFactory' => array(
|
||||
'class'=>'CWidgetFactory',
|
||||
'widgets' => array()
|
||||
)
|
||||
), false);
|
||||
}
|
||||
|
||||
public function getAssetsUrl()
|
||||
{
|
||||
if($this->_assetsUrl===null)
|
||||
$this->_assetsUrl=Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('installer.assets'));
|
||||
return $this->_assetsUrl;
|
||||
}
|
||||
|
||||
public function setAssetsUrl($value)
|
||||
{
|
||||
$this->_assetsUrl=$value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue