Menu
Notice (8): Undefined variable: globalMenu [APP/View/Elements/Layouts/header.ctp, line 44]Code Context</span>
<div class="container">
<?php echo $this->Menu->menuHome($globalMenu, $name = 'Menu', $class = '', $before = '<ul class="menu">', $after = '</ul>', $separatorBefore = '', $separatorAfter =''); ?>
$viewFile = '/home/nhavuontg/domains/nhavuontaigia.com/public_html/app/View/Elements/Layouts/header.ctp' $dataForView = array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true, 'code' => (int) 500, 'name' => 'Database connection "Mysql" is missing, or could not be created.', 'url' => '/san-pham/bo-dung-cu-trong-rau-tai-nha.html', 'error' => object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( [maximum depth reached] ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/nhavuontg/domains/nhavuontaigia.com/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 191 }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'name', (int) 2 => 'message', (int) 3 => 'url' ), 'content_for_layout' => '<h2>Missing Database Connection</h2> <p class="error"> <strong>Error: </strong> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 243</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array( 'password' => '*****', 'login' => '*****', 'host' => '*****', 'database' => '*****', 'prefix' => '*****', 'datasource' => 'Database/Mysql', 'persistent' => false, 'encoding' => 'utf8' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3524</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3551</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'menus_groups'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2947</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2919</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'first' array( 'conditions' => array( 'alias' => 'main-menu' ), 'fields' => null, 'joins' => array(), 'limit' => (int) 1, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 68</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #0000BB">$menuGroup</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $group </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">MenusGroup</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> array(</span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$menuGroup</span><span style="color: #007700">)));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'first' array( 'conditions' => array( 'alias' => 'main-menu' ) )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/AppController.php line 62</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->menu(string)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $appConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">appConfig</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> Configure</span><span style="color: #007700">::</span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #DD0000">'setting'</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">//$this->menus = $this->menu($menuGroup);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $globalMenu </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #DD0000">'main-menu'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $globalMenuFooter </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #DD0000">'menu-footer'</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'main-menu'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/ProductsCategoriesController.php line 14</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">AppController->beforeFilter()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">class </span><span style="color: #0000BB">ProductsCategoriesController </span><span style="color: #007700">extends </span><span style="color: #0000BB">AppController </span><span style="color: #007700">{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> parent</span><span style="color: #007700">::</span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ProductsCategoriesController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductsCategoriesController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 659</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Controller->startupProcess()</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Routing/Dispatcher.php line 137</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(ProductsCategoriesController, CakeRequest)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(ProductsCategoriesController) { uses => array( [maximum depth reached] ) helper => array( [maximum depth reached] ) menu => array([maximum depth reached]) appConfig => array( [maximum depth reached] ) name => 'ProductsCategories' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'ProductsCategories' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} components => array( [maximum depth reached] ) viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array([maximum depth reached]) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'ProductsCategory' modelKey => 'products_category' validationErrors => null Session => object(SessionComponent) {} MenusGroup => object(MenusGroup) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'san-pham/bo-dung-cu-trong-rau-tai-nha.html' base => '' webroot => '/' here => '/san-pham/bo-dung-cu-trong-rau-tai-nha.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 93</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'san-pham/bo-dung-cu-trong-rau-tai-nha.html' base => '' webroot => '/' here => '/san-pham/bo-dung-cu-trong-rau-tai-nha.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display === 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Errors' ) $class = 'Mysql' $message = 'SQLSTATE[HY000] [2002] Connection refused' $enabled = true $code = (int) 500 $name = 'Database connection "Mysql" is missing, or could not be created.' $url = '/san-pham/bo-dung-cu-trong-rau-tai-nha.html' $error = object(MissingConnectionException) { [protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.' [protected] _attributes => array( 'class' => 'Mysql', 'message' => 'SQLSTATE[HY000] [2002] Connection refused', 'enabled' => true ) [protected] _responseHeaders => null [protected] message => 'Database connection "Mysql" is missing, or could not be created.' [protected] code => (int) 500 [protected] file => '/home/nhavuontg/domains/nhavuontaigia.com/public_html/lib/Cake/Model/Datasource/Database/Mysql.php' [protected] line => (int) 191 } $_serialize = array( (int) 0 => 'code', (int) 1 => 'name', (int) 2 => 'message', (int) 3 => 'url' ) $content_for_layout = '<h2>Missing Database Connection</h2> <p class="error"> <strong>Error: </strong> A Database connection using "Mysql" was missing or unable to connect. <br /> The database server returned this error: SQLSTATE[HY000] [2002] Connection refused</p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 243</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array( 'password' => '*****', 'login' => '*****', 'host' => '*****', 'database' => '*****', 'prefix' => '*****', 'datasource' => 'Database/Mysql', 'persistent' => false, 'encoding' => 'utf8' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3524</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3551</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'menus_groups'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2947</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2919</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'first' array( 'conditions' => array( 'alias' => 'main-menu' ), 'fields' => null, 'joins' => array(), 'limit' => (int) 1, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 68</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #0000BB">$menuGroup</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $group </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">MenusGroup</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> array(</span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$menuGroup</span><span style="color: #007700">)));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'first' array( 'conditions' => array( 'alias' => 'main-menu' ) )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/AppController.php line 62</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->menu(string)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $appConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">appConfig</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> Configure</span><span style="color: #007700">::</span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #DD0000">'setting'</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #FF8000">//$this->menus = $this->menu($menuGroup);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $globalMenu </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #DD0000">'main-menu'</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $globalMenuFooter </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">menu</span><span style="color: #007700">(</span><span style="color: #DD0000">'menu-footer'</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'main-menu'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/ProductsCategoriesController.php line 14</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">AppController->beforeFilter()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">class </span><span style="color: #0000BB">ProductsCategoriesController </span><span style="color: #007700">extends </span><span style="color: #0000BB">AppController </span><span style="color: #007700">{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> parent</span><span style="color: #007700">::</span><span style="color: #0000BB">beforeFilter</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ProductsCategoriesController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductsCategoriesController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 659</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ProductsCategoriesController) {} [protected] _stopped => false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Controller->startupProcess()</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Routing/Dispatcher.php line 137</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(ProductsCategoriesController, CakeRequest)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(ProductsCategoriesController) { uses => array( [maximum depth reached] ) helper => array( [maximum depth reached] ) menu => array([maximum depth reached]) appConfig => array( [maximum depth reached] ) name => 'ProductsCategories' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'ProductsCategories' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} components => array( [maximum depth reached] ) viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array([maximum depth reached]) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'ProductsCategory' modelKey => 'products_category' validationErrors => null Session => object(SessionComponent) {} MenusGroup => object(MenusGroup) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'san-pham/bo-dung-cu-trong-rau-tai-nha.html' base => '' webroot => '/' here => '/san-pham/bo-dung-cu-trong-rau-tai-nha.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 93</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'san-pham/bo-dung-cu-trong-rau-tai-nha.html' base => '' webroot => '/' here => '/san-pham/bo-dung-cu-trong-rau-tai-nha.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display === 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ' $scripts_for_layout = '' $title_for_layout = 'Errors'include - APP/View/Elements/Layouts/header.ctp, line 44 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::_renderElement() - CORE/Cake/View/View.php, line 1196 View::element() - CORE/Cake/View/View.php, line 401 include - APP/View/Layouts/default.ctp, line 69 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::renderLayout() - CORE/Cake/View/View.php, line 525 View::render() - CORE/Cake/View/View.php, line 462 Controller::render() - CORE/Cake/Controller/Controller.php, line 939 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119 [main] - [internal], line ??
Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/MenuHelper.php, line 59]Code Contextpublic function menuHome($menus = null, $name = null, $class = null, $before = null, $after = null, $separatorBefore = null, $separatorAfter =null) {
global $homeArray;
foreach ($menus as $key => $menu) {
$menus = null $name = 'Menu' $class = '' $before = '<ul class="menu">' $after = '</ul>' $separatorBefore = '' $separatorAfter = '' $homeArray = nullMenuHelper::menuHome() - APP/View/Helper/MenuHelper.php, line 59 include - APP/View/Elements/Layouts/header.ctp, line 44 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::_renderElement() - CORE/Cake/View/View.php, line 1196 View::element() - CORE/Cake/View/View.php, line 401 include - APP/View/Layouts/default.ctp, line 69 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::renderLayout() - CORE/Cake/View/View.php, line 525 View::render() - CORE/Cake/View/View.php, line 462 Controller::render() - CORE/Cake/Controller/Controller.php, line 939 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119 [main] - [internal], line ??
Notice (8): Undefined variable: aryLevel [APP/View/Helper/MenuHelper.php, line 62]Code Context$aryLevel[$menu[$name]['parent_id']][] = $menu;
}
$menu = $this->getmutilMenuHome(0, $name , $aryLevel, $separatorBefore, $separatorAfter);
$menus = null $name = 'Menu' $class = '' $before = '<ul class="menu">' $after = '</ul>' $separatorBefore = '' $separatorAfter = '' $homeArray = nullMenuHelper::menuHome() - APP/View/Helper/MenuHelper.php, line 62 include - APP/View/Elements/Layouts/header.ctp, line 44 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::_renderElement() - CORE/Cake/View/View.php, line 1196 View::element() - CORE/Cake/View/View.php, line 401 include - APP/View/Layouts/default.ctp, line 69 View::_evaluate() - CORE/Cake/View/View.php, line 931 View::_render() - CORE/Cake/View/View.php, line 893 View::renderLayout() - CORE/Cake/View/View.php, line 525 View::render() - CORE/Cake/View/View.php, line 462 Controller::render() - CORE/Cake/Controller/Controller.php, line 939 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278 ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119 [main] - [internal], line ??