本文整理汇总了PHP中Frontend::css方法的典型用法代码示例。如果您正苦于以下问题:PHP Frontend::css方法的具体用法?PHP Frontend::css怎么用?PHP Frontend::css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Frontend
的用法示例。
在下文中一共展示了Frontend::css方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadAssets
/**
* loadAssets
*
* @return void
*/
protected function loadAssets()
{
\Frontend::css(['assets/vendor/bootstrap/css/bootstrap.css', 'assets/common/css/form.css', 'assets/member/auth.css'])->load();
\Frontend::js('assets/vendor/bootstrap/js/bootstrap.js')->min('assets/vendor/bootstrap/js/bootstrap.min.js')->appendTo('head')->load();
}
示例2: route
protected function route()
{
// implement code
Route::settings(self::getId(), function () {
Route::get('/', ['as' => 'manage.openseminar_1212.index', 'uses' => 'ManagerController@index']);
Route::post('/', ['as' => 'manage.openseminar_1212.updateConfig', 'uses' => 'ManagerController@updateConfig']);
Route::get('/pointLog', ['as' => 'manage.openseminar_1212.point_log', 'uses' => 'ManagerController@pointLog']);
}, ['namespace' => 'Akasima\\OpenSeminar\\Controller']);
Route::fixed($this->getId(), function () {
Route::get('/', ['as' => 'openseminar_1212::index', 'uses' => function (Request $request) {
$title = 'Open seminar 2015-12-12';
// set browser title
Frontend::title($title);
// load css file
Frontend::css($this->asset('assets/style.css'))->load();
// output
return Presenter::make('index', ['title' => $title]);
}]);
});
}