Skip to content

Instantly share code, notes, and snippets.

@adlerdias
Created April 11, 2013 22:06
Show Gist options
  • Save adlerdias/5367585 to your computer and use it in GitHub Desktop.
Save adlerdias/5367585 to your computer and use it in GitHub Desktop.
/**
* @return array action filters
*/
public function filters()
{
return array(
'accessControl', // perform access control for CRUD operations
'postOnly + delete', // we only allow deletion via POST request
array('ext.bootstrap.filters.BootstrapFilter - delete'),
);
}
'components'=>array(
'clientScript' => array(
'packages' => array(
'jquery' => array(
'baseUrl' => 'js/',
'js' => array('jquery-1.8.3.min.js','jquery.livequery.min.js'),
),
'cssMetro'=>array(
'baseUrl' => 'css/',
'css'=>array('metro/metro.css', 'metro/style.css', 'metro/style_default.css', 'metro/style_responsive.css'),
'depends' => array('bootstrap-yii', 'bootstrap', 'jquery-ui-bootstrap', 'bootstrap-notify')
),
),
),
<link rel="stylesheet" type="text/css" href="/yii/desk/css/metro/metro.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/css/metro/style.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/css/metro/style_default.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/css/metro/style_responsive.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/assets/638e7ccd/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/assets/638e7ccd/css/bootstrap-yii.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/assets/638e7ccd/css/jquery-ui-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/assets/638e7ccd/css/bootstrap-notify.css" />
<link rel="stylesheet" type="text/css" href="/yii/desk/assets/638e7ccd/css/bootstrap-image-gallery.min.css" />
<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="pt-br"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<?php Yii::app()->clientScript->registerPackage('cssMetro', CClientScript::POS_END); ?>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment