/home/eatlappscp/public_html/framework/web/CAssetManager.php(138)
126 } 127 128 /** 129 * Sets the root directory storing published asset files. 130 * @param string $value the root directory storing published asset files 131 * @throws CException if the base path is invalid 132 */ 133 public function setBasePath($value) 134 { 135 if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath)) 136 $this->_basePath=$basePath; 137 else 138 throw new CException(Yii::t('yii','CAssetManager.basePath "{path}" is invalid. Please make sure the directory exists and is writable by the Web server process.', 139 array('{path}'=>$value))); 140 } 141 142 /** 143 * @return string the base url that the published asset files can be accessed. 144 * Note, the ending slashes are stripped off. Defaults to '/AppBaseUrl/assets'. 145 */ 146 public function getBaseUrl() 147 { 148 if($this->_baseUrl===null) 149 { 150 $request=Yii::app()->getRequest();
#0 |
+
–
/home/eatlappscp/public_html/framework/web/CAssetManager.php(123): CAssetManager->setBasePath("/home/eatlappscp/public_html/weather/assets") 118 public function getBasePath() 119 { 120 if($this->_basePath===null) 121 { 122 $request=Yii::app()->getRequest(); 123 $this->setBasePath(dirname($request->getScriptFile()).DIRECTORY_SEPARATOR.self::DEFAULT_BASEPATH); 124 } 125 return $this->_basePath; 126 } 127 128 /** |
#1 |
+
–
/home/eatlappscp/public_html/framework/web/CAssetManager.php(217): CAssetManager->getBasePath() 212 if(isset($this->_published[$path])) 213 return $this->_published[$path]; 214 elseif(($src=realpath($path))!==false) 215 { 216 $dir=$this->generatePath($src,$hashByName); 217 $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir; 218 if(is_file($src)) 219 { 220 $fileName=basename($src); 221 $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName; 222 |
#2 |
+
–
/home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(532): CAssetManager->publish("/home/eatlappscp/public_html/weather/protected/extensions/bootst...", false, -1, false) 527 if (isset($this->_assetsUrl)) 528 return $this->_assetsUrl; 529 else 530 { 531 $assetsPath = Yii::getPathOfAlias('bootstrap.assets'); 532 $assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, $this->forceCopyAssets); 533 return $this->_assetsUrl = $assetsUrl; 534 } 535 } 536 537 /** |
#3 |
+
–
/home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(211): Bootstrap->getAssetsUrl() 206 * @param string $cssFile the css file name to register 207 * @param string $media the media that the CSS file should be applied to. If empty, it means all media types. 208 */ 209 public function registerAssetCss($cssFile, $media = '') 210 { 211 Yii::app()->getClientScript()->registerCssFile($this->getAssetsUrl() . "/css/{$cssFile}", $media); 212 } 213 214 /** 215 * Registers the core JavaScript. 216 * @since 0.9.8 |
#4 |
+
–
/home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(163): Bootstrap->registerAssetCss("bootstrap.css") 158 /** 159 * Registers the Bootstrap CSS. 160 */ 161 public function registerCoreCss() 162 { 163 $this->registerAssetCss('bootstrap' . (!YII_DEBUG ? '.min' : '') . '.css'); 164 } 165 166 /** 167 * Registers the Bootstrap responsive CSS. 168 * @since 0.9.8 |
#5 |
+
–
/home/eatlappscp/public_html/weather/protected/extensions/bootstrap/components/Bootstrap.php(138): Bootstrap->registerCoreCss() 133 // Prevents the extension from registering scripts and publishing assets when ran from the command line. 134 if (Yii::app() instanceof CConsoleApplication || PHP_SAPI == 'cli') 135 return; 136 137 if ($this->coreCss !== false) 138 $this->registerCoreCss(); 139 140 if ($this->responsiveCss !== false) 141 $this->registerResponsiveCss(); 142 143 if ($this->fontAwesomeCss !== false) |
#6 |
+
–
/home/eatlappscp/public_html/framework/base/CModule.php(387): Bootstrap->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#7 |
+
–
/home/eatlappscp/public_html/framework/base/CModule.php(523): CModule->getComponent("bootstrap") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#8 |
+
–
/home/eatlappscp/public_html/framework/base/CApplication.php(152): CModule->preloadComponents() 147 $this->initSystemHandlers(); 148 $this->registerCoreComponents(); 149 150 $this->configure($config); 151 $this->attachBehaviors($this->behaviors); 152 $this->preloadComponents(); 153 154 $this->init(); 155 } 156 157 |
#9 |
+
–
/home/eatlappscp/public_html/framework/YiiBase.php(125): CApplication->__construct("/home/eatlappscp/public_html/weather/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#10 |
+
–
/home/eatlappscp/public_html/framework/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/home/eatlappscp/public_html/weather/protected/config/main.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#11 |
+
–
/home/eatlappscp/public_html/weather/index.php(12): YiiBase::createWebApplication("/home/eatlappscp/public_html/weather/protected/config/main.php") 07 defined('YII_DEBUG') or define('YII_DEBUG',true); 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 require_once($yii); 12 Yii::createWebApplication($config)->run(); |