本文整理汇总了PHP中Assets::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::__construct方法的具体用法?PHP Assets::__construct怎么用?PHP Assets::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::__construct方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct($base_url, Router $router, Config $config, $default_version = '')
{
$this->router = $router;
$this->config = $config;
parent::__construct($base_url, $default_version);
$this->add('bootstrap', $router->admin_url('/core/theme/asset/bootstrap/core/css/bootstrap.min.css'), array(), '2.2.1');
$this->add('bootstrap-responsive', $router->admin_url('/core/theme/asset/bootstrap/core/css/bootstrap-responsive.min.css'), array('bootstrap'), '2.2.1');
$this->add('bootstrap-datepicker', $router->admin_url('/core/theme/asset/bootstrap/datepicker/css/datepicker.css'), array('bootstrap'));
$this->add('bootstrap-wysihtml5', $router->admin_url('/core/theme/asset/bootstrap/wysihtml5/css/bootstrap-wysihtml5.css'), array('bootstrap'));
$this->add('jquery-fileupload', $router->admin_url('/core/theme/asset/css/jquery.fileupload-ui.css'), array(), '6.10');
}
示例2: array
function __construct($base_url, Router $router, Config $config, $default_version = '')
{
$this->router = $router;
$this->config = $config;
parent::__construct($base_url, $default_version);
$min = $this->config->debug ? '' : '.min';
$this->add('wysihtml5', $router->admin_url('/core/theme/asset/bootstrap/wysihtml5/js/wysihtml5' . $min . '.js'), array(), '0.3.0');
$this->add('jquery', $router->admin_url('/core/theme/asset/js/jquery' . $min . '.js'), array(), '1.10.2');
$this->add('jquery-ui-widget', $router->admin_url('/core/theme/asset/js/jquery.ui.widget' . $min . '.js'), array('jquery'), '1.10.3');
$this->add('jquery-iframe-transport', $router->admin_url('/core/theme/asset/js/jquery.iframe-transport' . $min . '.js'), array('jquery'), '1.7');
$this->add('jquery-fileupload', $router->admin_url('/core/theme/asset/js/jquery.fileupload' . $min . '.js'), array('jquery'), '5.32.2');
$this->add('bootstrap', $router->admin_url('/core/theme/asset/bootstrap/core/js/bootstrap' . $min . '.js'), array(), '2.3.2');
$this->add('bootstrap-datepicker', $router->admin_url('/core/theme/asset/bootstrap/datepicker/js/bootstrap-datepicker' . $min . '.js'), array('bootstrap'), '2013-03-12');
$this->add('bootstrap-wysihtml5', $router->admin_url('/core/theme/asset/bootstrap/wysihtml5/js/bootstrap-wysihtml5' . $min . '.js'), array('bootstrap'), '2013-04-29');
$this->add('md5', $router->admin_url('/core/theme/asset/js/md5' . $min . '.js'), array());
}