本文整理匯總了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());
}