Title: Errors
Keywords:
Description:

Errors



Notice (8): Undefined index: Banner [APP/Model/Banner.php, line 97]Code Context         public function viewBanner($banner) {         $id = $banner['Banner']['id']; $banner = array()Banner::viewBanner() - APP/Model/Banner.php, line 97 Banner::getHorizontalBanner() - APP/Model/Banner.php, line 71 AppController::beforeFilter() - APP/Controller/AppController.php, line 109 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 184 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162 [main] - APP/webroot/index.php, line 110Notice (8): Undefined index: Banner [APP/Model/Banner.php, line 97]Code Context         public function viewBanner($banner) {         $id = $banner['Banner']['id']; $banner = array()Banner::viewBanner() - APP/Model/Banner.php, line 97 Banner::getHorizontalBanner() - APP/Model/Banner.php, line 71 AppController::beforeFilter() - APP/Controller/AppController.php, line 109 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 674 ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 156 ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 94 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 121 [main] - [internal], line ?? Errors Notice (8): Undefined variable: options [APP/View/Elements/menu.ctp, line 18]Code Context            <div class="col-lg-3 col-md-3 dostavka visible-lg visible-md  h70 text-right" id="cart">                 <?php                 if ($this->Options->getValue($options, 'delivery_work') == 1) { $viewFile = '/home/s.webapteka.by/public_html/app/View/Elements/menu.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/news/obnovlen_spisok_samyh_silnyh_allergenov', 'name' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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' ) $code = (int) 500 $url = '/news/obnovlen_spisok_samyh_silnyh_allergenov' $name = 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2' $error = object(PDOException) { errorInfo => array( (int) 0 => '42000', (int) 1 => (int) 1064, (int) 2 => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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' $title = '' $q = '' $city_id = '' $web_id = '' $mnn = '' $optns = array( (int) 0 => '' )include - APP/View/Elements/menu.ctp, line 18 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 264 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 177 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122 [main] - [internal], line ??Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/OptionsHelper.php, line 13]Code Context        }         $result = null;         foreach($options as $option) {$options = null $name = 'delivery_work' $result = nullOptionsHelper::getValue() - APP/View/Helper/OptionsHelper.php, line 13 include - APP/View/Elements/menu.ctp, line 18 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 264 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 177 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122 [main] - [internal], line ?? Лекарства Новости Справочник Медицина МЕНЮ Лекарства Аннотации Доставка Производители Новости Новости Статьи Объявления Справочник Симптомы Термины Анализы Медицина Аптеки Аптечные сети Медучреждения Пользователь Login Войти Notice (8): Undefined variable: options [APP/View/Elements/user.ctp, line 37]Code Context    <div class="row-fluid">         <div class="col-md-12 text-right">             <?php if ($this->Options->getValue($options, 'delivery_work') == 1) {?> $viewFile = '/home/s.webapteka.by/public_html/app/View/Elements/user.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/news/obnovlen_spisok_samyh_silnyh_allergenov', 'name' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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' ) $code = (int) 500 $url = '/news/obnovlen_spisok_samyh_silnyh_allergenov' $name = 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2' $error = object(PDOException) { errorInfo => array( (int) 0 => '42000', (int) 1 => (int) 1064, (int) 2 => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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/user.ctp, line 37 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Elements/menu.ctp, line 99 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 264Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/OptionsHelper.php, line 13]Code Context        }         $result = null;         foreach($options as $option) {$options = null $name = 'delivery_work' $result = nullOptionsHelper::getValue() - APP/View/Helper/OptionsHelper.php, line 13 include - APP/View/Elements/user.ctp, line 37 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Elements/menu.ctp, line 99 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 Поиск по сайту Найти

Аннотации
Доставка
Производители
Новости
Статьи
Объявления
Симптомы
Термины
Анализы
Аптеки
Аптечные сети
Медучреждения Login Войти Notice (8): Undefined variable: options [APP/View/Elements/user.ctp, line 37]Code Context    <div class="row-fluid">         <div class="col-md-12 text-right">             <?php if ($this->Options->getValue($options, 'delivery_work') == 1) {?> $viewFile = '/home/s.webapteka.by/public_html/app/View/Elements/user.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/news/obnovlen_spisok_samyh_silnyh_allergenov', 'name' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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' ) $code = (int) 500 $url = '/news/obnovlen_spisok_samyh_silnyh_allergenov' $name = 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2' $error = object(PDOException) { errorInfo => array( (int) 0 => '42000', (int) 1 => (int) 1064, (int) 2 => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' ) queryString => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2' [protected] code => '42000' [protected] file => '/home/s.webapteka.by/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 460 } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039; DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;&#039; at line 2</p> <p class="notice"> <strong>SQL Query: </strong> INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;; </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.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 460</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">try&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_connection</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_results&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 426</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options&nbsp;</span><span style="color: #007700">+=&nbsp;array(</span><span style="color: #DD0000">'log'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fullDebug</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">microtime</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</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-1" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$cache&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$cached&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;!==&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">,&nbsp;array(),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">))&nbsp;{</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out&nbsp;</span><span style="color: #007700">=&nbsp;array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 539</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$recursive&nbsp;</span><span style="color: #007700">=&nbsp;</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></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">||&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$args</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">'findAllBy'</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">))&nbsp;{</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#">[internal function]</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->query(string)</a> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3284</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-5')">call_user_func_array(array, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$params&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$db&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(&amp;</span><span style="color: #0000BB">$db</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'query'</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 =&gt; object(Mysql) {}, (int) 1 =&gt; &#039;query&#039; ) array( (int) 0 =&gt; &#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039; )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Model/Banner.php line 93</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON&nbsp;DUPLICATE&nbsp;KEY&nbsp;UPDATE </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;views&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">views&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'$now'</span><span style="color: #007700">;</span><span style="color: #DD0000">"; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>&#039;INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE(&#039;2014-07-07 14:04:12&#039;), 1, 0, &#039;2014-07-07 14:04:12&#039;, &#039;2014-07-07 14:04:12&#039;) ON DUPLICATE KEY UPDATE views = views + 1, updated = &#039;2014-07-07 14:04:12&#039;;&#039;</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Model/Banner.php line 98</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-7')">Banner->view(null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$banner</span><span style="color: #007700">)&nbsp;{ </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$banner</span><span style="color: #007700">[</span><span style="color: #DD0000">'Banner'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">view</span><span style="color: #007700">(</span><span style="color: #0000BB">$id</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">} </span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>null</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Model/Banner.php line 71</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-8')">Banner->viewBanner(array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'first'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$options</span><span style="color: #007700">); </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">; </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">viewBanner</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">; </span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/AppController.php line 109</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-9')">Banner->getHorizontalBanner()</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mainBanners&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMainBanners</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$controller&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'banners'</span><span style="color: #007700">)&nbsp;{&nbsp;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$horizontalBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHorizontalBanner</span><span style="color: #007700">();</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$singleBanner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Banner</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSingleBanner</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> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-10')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Event/CakeEventManager.php line 248</a> &rarr; <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">]&nbsp;===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">=&nbsp;</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">],&nbsp;</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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 =&gt; object(NewsController) {}, (int) 1 =&gt; &#039;beforeFilter&#039; ) object(CakeEvent) { data =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Controller/Controller.php line 674</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*&nbsp;@return&nbsp;</span><span style="color: #0000BB">void</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">public&nbsp;function&nbsp;</span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">()&nbsp;{</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">,&nbsp;</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 =&gt; null result =&gt; null [protected] _name =&gt; &#039;Controller.initialize&#039; [protected] _subject =&gt; object(NewsController) {} [protected] _stopped =&gt; false }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 184</a> &rarr; <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">&nbsp;</span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">protected&nbsp;function&nbsp;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller&nbsp;$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeRequest&nbsp;$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CakeResponse&nbsp;$response</span><span style="color: #007700">)&nbsp;{</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$controller</span><span style="color: #007700">-&gt;</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 162</a> &rarr; <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">]))&nbsp;{</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(NewsController) { components =&gt; array( [maximum depth reached] ) uses =&gt; array( [maximum depth reached] ) name =&gt; &#039;News&#039; helpers =&gt; array([maximum depth reached]) request =&gt; object(CakeRequest) {} response =&gt; object(CakeResponse) {} viewPath =&gt; &#039;News&#039; layoutPath =&gt; null viewVars =&gt; array([maximum depth reached]) view =&gt; &#039;view&#039; layout =&gt; &#039;default&#039; autoRender =&gt; true autoLayout =&gt; true Components =&gt; object(ComponentCollection) {} viewClass =&gt; &#039;View&#039; View =&gt; null ext =&gt; &#039;.ctp&#039; plugin =&gt; null cacheAction =&gt; false passedArgs =&gt; array( [maximum depth reached] ) scaffold =&gt; false methods =&gt; array( [maximum depth reached] ) modelClass =&gt; &#039;News&#039; modelKey =&gt; &#039;news&#039; validationErrors =&gt; null Auth =&gt; object(AuthComponent) {} Session =&gt; object(SessionComponent) {} Paginator =&gt; object(PaginatorComponent) {} Cookie =&gt; object(CookieComponent) {} Captcha =&gt; object(CaptchaComponent) {} Banner =&gt; object(Banner) {} [protected] _responseClass =&gt; &#039;CakeResponse&#039; [protected] _mergeParent =&gt; &#039;AppController&#039; [protected] _eventManager =&gt; object(CakeEventManager) {} } object(CakeRequest) { params =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">APP/webroot/index.php line 110</a> &rarr; <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">-&gt;</span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</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 =&gt; array( [maximum depth reached] ) data =&gt; array([maximum depth reached]) query =&gt; array([maximum depth reached]) url =&gt; &#039;news/obnovlen_spisok_samyh_silnyh_allergenov&#039; base =&gt; &#039;&#039; webroot =&gt; &#039;/&#039; here =&gt; &#039;/news/obnovlen_spisok_samyh_silnyh_allergenov&#039; [protected] _detectors =&gt; array( [maximum depth reached] ) [protected] _input =&gt; &#039;&#039; } object(CakeResponse) { [protected] _statusCodes =&gt; array( [maximum depth reached] ) [protected] _mimeTypes =&gt; array( [maximum depth reached] ) [protected] _protocol =&gt; &#039;HTTP/1.1&#039; [protected] _status =&gt; (int) 200 [protected] _contentType =&gt; &#039;text/html&#039; [protected] _headers =&gt; array([maximum depth reached]) [protected] _body =&gt; null [protected] _file =&gt; null [protected] _fileRange =&gt; null [protected] _charset =&gt; &#039;UTF-8&#039; [protected] _cacheDirectives =&gt; array([maximum depth reached]) [protected] _cookies =&gt; 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/user.ctp, line 37 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Elements/menu.ctp, line 173 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 264Warning (2): Invalid argument supplied for foreach() [APP/View/Helper/OptionsHelper.php, line 13]Code Context        }         $result = null;         foreach($options as $option) {$options = null $name = 'delivery_work' $result = nullOptionsHelper::getValue() - APP/View/Helper/OptionsHelper.php, line 13 include - APP/View/Elements/user.ctp, line 37 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Elements/menu.ctp, line 173 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 1191 View::element() - CORE/Cake/View/View.php, line 408 include - APP/View/Layouts/404.ctp, line 25 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 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 275 Найти Поиск лекарств в аптеках Беларуси  Аналог по МНН Аптечная сеть Регион поиска Беларусь Найти

 

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12'' at line 2

SQL Query: INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace CORE/Cake/Model/Datasource/DboSource.php line 460 → PDOStatement->execute(array)         try {             $query = $this->_connection->prepare($sql, $prepareOptions);             $query->setFetchMode(PDO::FETCH_LAZY);             if (!$query->execute($params)) {                 $this->_results = $query; array() CORE/Cake/Model/Datasource/DboSource.php line 426 → DboSource->_execute(string, array)         $options += array('log' => $this->fullDebug);         $t = microtime(true);         $this->_result = $this->_execute($sql, $params); 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' array() CORE/Cake/Model/Datasource/DboSource.php line 666 → DboSource->execute(string, array, array)         if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {             return $cached;         }         if ($result = $this->execute($sql, array(), $params)) {             $out = array(); 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' array() array() CORE/Cake/Model/Datasource/DboSource.php line 539 → DboSource->fetchAll(string)         $recursive = null;         if (count($args) === 1) {             return $this->fetchAll($args[0]);         } elseif (count($args) > 1 && (strpos($args[0], 'findBy') === 0 || strpos($args[0], 'findAllBy') === 0)) { 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' [internal function] → DboSource->query(string) 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' CORE/Cake/Model/Model.php line 3284 → call_user_func_array(array, array)     public function query($sql) {         $params = func_get_args();         $db = $this->getDataSource();         return call_user_func_array(array(&$db, 'query'), $params);     } array( (int) 0 => object(Mysql) {}, (int) 1 => 'query' ) array( (int) 0 => 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' ) APP/Model/Banner.php line 93 → Model->query(string)         ON DUPLICATE KEY UPDATE             views = views + 1,             updated = '$now';";         $this->query($sql);         } 'INSERT INTO wb_banner_statistics (banner_id, date, views, clicks, created, updated) VALUES (, DATE('2014-07-07 14:04:12'), 1, 0, '2014-07-07 14:04:12', '2014-07-07 14:04:12') ON DUPLICATE KEY UPDATE views = views + 1, updated = '2014-07-07 14:04:12';' APP/Model/Banner.php line 98 → Banner->view(null)          public function viewBanner($banner) {         $id = $banner['Banner']['id'];         $this->view($id);     } null APP/Model/Banner.php line 71 → Banner->viewBanner(array)         $options['limit'] = 1;         $data = $this->find('first', $options);         $result = $data;         $this->viewBanner($result);         return $result; array() APP/Controller/AppController.php line 109 → Banner->getHorizontalBanner()             $mainBanners = $this->Banner->getMainBanners();         } else {             if ($controller != 'banners') {                  $horizontalBanner = $this->Banner->getHorizontalBanner();                 $singleBanner = $this->Banner->getSingleBanner(); [internal function] → AppController->beforeFilter(CakeEvent) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(NewsController) {} [protected] _stopped => false } CORE/Cake/Event/CakeEventManager.php line 248 → call_user_func(array, CakeEvent)             if ($listener['passParams'] === true) {                 $result = call_user_func_array($listener['callable'], $event->data);             } else {                 $result = call_user_func($listener['callable'], $event);             } array( (int) 0 => object(NewsController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(NewsController) {} [protected] _stopped => false } CORE/Cake/Controller/Controller.php line 674 → CakeEventManager->dispatch(CakeEvent)  * @return void  */     public function startupProcess() {         $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));         $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this)); object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(NewsController) {} [protected] _stopped => false } CORE/Cake/Routing/Dispatcher.php line 184 → Controller->startupProcess()  */     protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {         $controller->constructClasses();         $controller->startupProcess(); CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(NewsController, CakeRequest, CakeResponse)             ));         }         $response = $this->_invoke($controller, $request, $response);         if (isset($request->params['return'])) { object(NewsController) { components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) name => 'News' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'News' layoutPath => null viewVars => array([maximum depth reached]) view => 'view' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'News' modelKey => 'news' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Paginator => object(PaginatorComponent) {} Cookie => object(CookieComponent) {} Captcha => object(CaptchaComponent) {} Banner => object(Banner) {} [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 => 'news/obnovlen_spisok_samyh_silnyh_allergenov' base => '' webroot => '/' here => '/news/obnovlen_spisok_samyh_silnyh_allergenov' [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]) } APP/webroot/index.php line 110 → Dispatcher->dispatch(CakeRequest, CakeResponse) $Dispatcher->dispatch(     new CakeRequest(),     new CakeResponse() ); object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'news/obnovlen_spisok_samyh_silnyh_allergenov' base => '' webroot => '/' here => '/news/obnovlen_spisok_samyh_silnyh_allergenov' [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]) }