Browse Source

script IWP

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
f228494894
  1. 5
      framework/assets.php
  2. 3
      framework/web/AssetManager.php

5
framework/assets.php

@ -0,0 +1,5 @@
<?php
return array(
'basePath' => __DIR__ . '/web/assets',
);

3
framework/web/AssetManager.php

@ -96,10 +96,11 @@ class AssetManager extends Component
/** /**
* @param string $name * @param string $name
* @param boolean $publish
* @return AssetBundle * @return AssetBundle
* @throws InvalidParamException * @throws InvalidParamException
*/ */
public function getBundle($name) public function getBundle($name, $publish = true)
{ {
if (!isset($this->bundles[$name])) { if (!isset($this->bundles[$name])) {
$manifest = Yii::getAlias("@{$name}/assets.php", false); $manifest = Yii::getAlias("@{$name}/assets.php", false);

Loading…
Cancel
Save