mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
script WIP
This commit is contained in:
@@ -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
|
|||||||
$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;
|
||||||
|
|||||||
Reference in New Issue
Block a user