Commit 6f11f9e3 by Qiang Xue

script WIP

parent df94d6aa
...@@ -17,7 +17,32 @@ class ViewContent extends Component ...@@ -17,7 +17,32 @@ class ViewContent extends Component
const POS_BEGIN = 2; const POS_BEGIN = 2;
const POS_END = 3; const POS_END = 3;
public $packages; /**
* @var array
*
* Each asset bundle should be declared with the following structure:
*
* ~~~
* array(
* 'basePath' => '...',
* 'baseUrl' => '...', // if missing, the bundle will be published to the "www/assets" folder
* 'js' => array(
* 'js/main.js',
* 'js/menu.js',
* 'js/base.js' => self::POS_HEAD,
* 'css' => array(
* 'css/main.css',
* 'css/menu.css',
* ),
* 'depends' => array(
* 'jquery',
* 'yii',
* 'yii/treeview',
* ),
* )
* ~~~
*/
public $bundles;
public $title; public $title;
public $metaTags; public $metaTags;
...@@ -43,6 +68,11 @@ class ViewContent extends Component ...@@ -43,6 +68,11 @@ class ViewContent extends Component
$this->jsFiles = null; $this->jsFiles = null;
} }
public function registerBundle($name)
{
}
public function getMetaTag($key) public function getMetaTag($key)
{ {
return isset($this->metaTags[$key]) ? $this->metaTags[$key] : null; return isset($this->metaTags[$key]) ? $this->metaTags[$key] : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment