10 $this->
pageTitle =
'Full Configuration - Yii Debugger';
11 $hl = $this->owner->highlightCode;
13 <div
class=
"default-view">
15 <div
class=
"navbar-inner">
16 <div
class=
"container">
17 <div
class=
"yii2-debug-toolbar-block title">
24 <div
class=
"container-fluid">
25 <div
class=
"row-fluid">
27 <div
id=
"navbar" data-spy=
"affix" data-offset-top=
"60">
28 <ul
class=
"nav nav-pills nav-stacked">
29 <?php
if (is_array($app)): ?>
30 <li><a href=
"#app">Application</a></li>
32 <?php
if (is_array($components)): ?>
33 <li><a href=
"#components">Components</a>
35 <?php
foreach ($components as $id => $component): ?>
36 <?php
if (is_array($component)): ?>
37 <li><a href=
"#components-<?php echo $id; ?>" class=
"<?php echo isset($component['_error_']) ? 'error' : ''; ?>"><?php echo $id; ?></a></li>
43 <?php
if (is_array($modules)): ?>
44 <li><a href=
"#modules">Modules</a>
46 <?php
foreach ($modules as $id => $module): ?>
47 <?php
if (is_array($module)): ?>
48 <li><a href=
"#modules-<?php echo $id; ?>"><?php echo $id; ?></a></li>
54 <?php
if (is_array($params)): ?>
55 <li><a href=
"#params">Params</a></li>
58 </div><!-- #navbar -->
63 <?php
if (is_array($app)): ?>
66 <div
class=
"well well-small src <?php echo $hl ? 'hl' : 'no-hl'; ?>"><?php
67 CVarDumper::dump($app, 10,
$hl);
69 </section><!-- #app -->
72 <?php
if (is_array($components)): ?>
73 <section
id=
"components">
75 <?php
foreach ($components as $id => $component): ?>
76 <?php
if (is_array($component)): ?>
77 <section
id=
"components-<?php echo $id; ?>">
80 <span
class=
"class-name">(<?php echo $component[
'class']; ?>)</span>
82 <?php
if (isset($component[
'_error_'])): ?>
83 <div
class=
"alert alert-error">
84 <strong>Error!</strong>
85 <?php echo $component[
'_error_']; ?>
87 <?php unset($component[
'_error_']); ?>
89 <div
class=
"well well-small src <?php echo $hl ? 'hl' : 'no-hl'; ?>"><?php
90 CVarDumper::dump($component, 5,
$hl);
95 </section><!-- #components -->
98 <?php
if (is_array($modules)): ?>
99 <section
id=
"modules">
101 <?php
foreach ($modules as $id => $module): ?>
102 <?php
if (is_array($module)): ?>
103 <section
id=
"modules-<?php echo $id; ?>">
104 <h3><?php echo $id; ?></h3>
105 <div
class=
"well well-small src <?php echo $hl ? 'hl' : 'no-hl'; ?>"><?php
106 CVarDumper::dump($module, 5,
$hl);
111 </section><!-- #modules -->
114 <?php
if (is_array($params)): ?>
115 <section
id=
"params">
117 <div
class=
"well well-small src <?php echo $hl ? 'hl' : 'no-hl'; ?>"><?php
118 CVarDumper::dump($params, 10,
$hl);
120 </section><!-- #params -->
123 </div><!-- .span12 -->
129 $cs = Yii::app()->getClientScript();
130 $cs->registerScript(__CLASS__ .
'#config', <<<JS
131 $(
'body').scrollspy({target:
'#navbar'}).on(
'activate',
function(e){
132 $(e.target).parents().each(
function(){
133 if (this.tagName ==
'LI') $(
this).addClass(
'active');
134 if (this.
id ==
'navbar')
return false;
139 $cs->registerCss(__CLASS__ .
'#config', <<<CSS
160 -webkit-border-radius: 4px;
161 -moz-border-radius: 4px;
163 text-decoration: none;
165 ul.sub-nav li a.error {
168 ul.sub-nav li a:hover,
169 ul.sub-nav li a:focus {
170 text-decoration: none;
171 background-color: #eeeeee;
173 ul.sub-nav li.active a,
174 ul.sub-nav li.active a:hover,
175 ul.sub-nav li.active a:focus {
176 background-color: #0088cc;
179 ul.sub-nav li.active a.error,
180 ul.sub-nav li.active a.error:hover,
181 ul.sub-nav li.active a.error:focus {
182 background-color: #bd362f;
184 #components .class-name {