Code Context
<?php
print_r($this->assign('title', $post['Post']['title'] . ' - Ricardo Jorge Pinto'));
$viewFile = '/home/ricardoj/public_html/app/View/Layouts/post.ctp'
$dataForView = array(
'postsCount' => (int) 0,
'posts' => array(),
'content_for_layout' => '
<div>
<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-trace').style.display = (document.getElementById('cakeErr600e546375601-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined offset: 0 [<b>APP/View/Posts/tema.ctp</b>, line <b>16</b>]<div id="cakeErr600e546375601-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-code').style.display = (document.getElementById('cakeErr600e546375601-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-context').style.display = (document.getElementById('cakeErr600e546375601-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr600e546375601-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $randomPost </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">$posts</span><span style="color: #007700">)-</span><span style="color: #0000BB">1</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $randomPost </span><span style="color: #007700">= </span><span style="color: #0000BB">$posts</span><span style="color: #007700">[</span><span style="color: #0000BB">$randomPost</span><span style="color: #007700">];</span></span></code></span></pre><pre id="cakeErr600e546375601-context" class="cake-context" style="display: none;">$viewFile = '/home/ricardoj/public_html/app/View/Posts/tema.ctp'
$dataForView = array(
'postsCount' => (int) 0,
'posts' => array()
)
$postsCount = (int) 0
$posts = array()
$randomPost = (int) 0</pre><pre class="stack-trace">include - APP/View/Posts/tema.ctp, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 960
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118</pre></div></pre>
<div class="header_img" style="background: url('http://img.youtube.com/vi//0.jpg') no-repeat center center; background-size: cover;position: relative;">
<div class="container">
<h1 style="color: #FFF; position: absolute; bottom: 0; margin-left: 15px;"></h1>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-container" style="padding: 40px 0;" >
</div>
</div>
</div>',
'scripts_for_layout' => '',
'title_for_layout' => 'Posts'
)
$postsCount = (int) 0
$posts = array()
$content_for_layout = '
<div>
<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-trace').style.display = (document.getElementById('cakeErr600e546375601-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined offset: 0 [<b>APP/View/Posts/tema.ctp</b>, line <b>16</b>]<div id="cakeErr600e546375601-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-code').style.display = (document.getElementById('cakeErr600e546375601-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr600e546375601-context').style.display = (document.getElementById('cakeErr600e546375601-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr600e546375601-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> <span style="color: #0000BB"><?php</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $randomPost </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">$posts</span><span style="color: #007700">)-</span><span style="color: #0000BB">1</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $randomPost </span><span style="color: #007700">= </span><span style="color: #0000BB">$posts</span><span style="color: #007700">[</span><span style="color: #0000BB">$randomPost</span><span style="color: #007700">];</span></span></code></span></pre><pre id="cakeErr600e546375601-context" class="cake-context" style="display: none;">$viewFile = '/home/ricardoj/public_html/app/View/Posts/tema.ctp'
$dataForView = array(
'postsCount' => (int) 0,
'posts' => array()
)
$postsCount = (int) 0
$posts = array()
$randomPost = (int) 0</pre><pre class="stack-trace">include - APP/View/Posts/tema.ctp, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 960
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118</pre></div></pre>
<div class="header_img" style="background: url('http://img.youtube.com/vi//0.jpg') no-repeat center center; background-size: cover;position: relative;">
<div class="container">
<h1 style="color: #FFF; position: absolute; bottom: 0; margin-left: 15px;"></h1>
</div>
</div>
<div class="container">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 col-container" style="padding: 40px 0;" >
</div>
</div>
</div>'
$scripts_for_layout = ''
$title_for_layout = 'Posts'
$cakeDescription = 'CakePHP: the rapid development php framework'
$cakeVersion = 'CakePHP 2.6.7'
include - APP/View/Layouts/post.ctp, line 113
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 960
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118