Notice (8): Undefined variable: menus [APP/View/Elements/header.ctp, line 80]Code Context <ul class="nav navbar-nav navbar-right">
<li><a class="normal" href="<?= $this->Html->url('/') ?>">Accueil</a></li>
<?php foreach ($menus as $m) {
$viewFile = '/home/rgam/public_html/app/View/Elements/header.ctp'
$dataForView = array(
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)',
'enabled' => true,
'code' => (int) 500,
'name' => 'Database connection "Mysql" is missing, or could not be created.',
'url' => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia',
'error' => object(MissingConnectionException) {
[protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.'
[protected] _attributes => array(
[maximum depth reached]
)
[protected] _responseHeaders => null
[protected] message => 'Database connection "Mysql" is missing, or could not be created.'
[protected] code => (int) 500
[protected] file => '/home/rgam/public_html/lib/Cake/Model/Datasource/Database/Mysql.php'
[protected] line => (int) 191
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'name',
(int) 2 => 'message',
(int) 3 => 'url'
),
'domain' => 'casablanca',
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
A Database connection using "Mysql" was missing or unable to connect. <br />
The database server returned this error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3498</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3525</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'pages'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 1365</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">schema</span><span style="color: #007700">(</span><span style="color: #0000BB">$field </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false </span><span style="color: #007700">&& (!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">) || </span><span style="color: #0000BB">$field </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"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">= (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">&& </span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 1457</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->schema()</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (empty(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">)) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">schema</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Media/Model/Behavior/MediaBehavior.php line 22</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->hasField(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'ref = "'</span><span style="color: #007700">.</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">name</span><span style="color: #007700">.</span><span style="color: #DD0000">'"'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'dependent' </span><span style="color: #007700">=> </span><span style="color: #0000BB">true</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">hasField</span><span style="color: #007700">(</span><span style="color: #DD0000">'media_id'</span><span style="color: #007700">)){</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $model</span><span style="color: #007700">-></span><span style="color: #0000BB">belongsTo</span><span style="color: #007700">[</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">] = array(</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'media_id'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/BehaviorCollection.php line 145</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">MediaBehavior->setup(Page, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $config </span><span style="color: #007700">= array();</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">settings</span><span style="color: #007700">[</span><span style="color: #DD0000">'priority'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$priority</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">setup</span><span style="color: #007700">(</span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">getObject</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">modelName</span><span style="color: #007700">), </span><span style="color: #0000BB">$config</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-8" class="cake-code-dump" style="display: none;"><pre>object(Page) {
actsAs => array(
[maximum depth reached]
)
order => array(
[maximum depth reached]
)
belongsTo => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
validate => array(
[maximum depth reached]
)
recursive => (int) -1
useDbConfig => 'default'
useTable => 'pages'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'pages'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Page'
alias => 'Page'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
medias => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Model/BehaviorCollection.php line 66</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">BehaviorCollection->load(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">)) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">BehaviorCollection</span><span style="color: #007700">::</span><span style="color: #0000BB">normalizeObjectArray</span><span style="color: #007700">(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">) as </span><span style="color: #0000BB">$config</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'class'</span><span style="color: #007700">], </span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'settings'</span><span style="color: #007700">]);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'Media.Media'
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Model/Model.php line 755</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">BehaviorCollection->init(string, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_createLinks</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Behaviors</span><span style="color: #007700">-></span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">alias</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">actsAs</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'Page'
array(
'Containable' => null,
'Media.Media' => array(
'extensions' => array(
[maximum depth reached]
),
'path' => 'img/uploads/%f'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Model->__construct(array)</a> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Utility/ClassRegistry.php line 169</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">ReflectionClass->newInstance(array)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">getConstructor</span><span style="color: #007700">()) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $instance </span><span style="color: #007700">= </span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">newInstance</span><span style="color: #007700">(</span><span style="color: #0000BB">$settings</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Model/Model.php line 1058</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">ClassRegistry::init(array)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $model </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'class' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$plugin </span><span style="color: #007700">. </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$assoc</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #0000BB">$assoc</span><span style="color: #007700">} = </span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</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>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Model/Model.php line 867</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Model->_constructLinkedModel(string, string, null)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'ds' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_constructLinkedModel</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #0000BB">$plugin</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>'Page'
'Page'
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 340</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Model->__isset(string)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">}) || !</span><span style="color: #0000BB">is_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">})) {</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$throwErrors</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>'Page'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-16')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 123</a> → <a href="#" onclick="traceToggle(event, 'trace-args-16')">ContainableBehavior->containments(Menu, array)</a> <div id="file-excerpt-16" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">? </span><span style="color: #0000BB">array_pop</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">)</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">: </span><span style="color: #0000BB">array_shift</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $containments </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containments</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">, </span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $map </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containmentsMap</span><span style="color: #007700">(</span><span style="color: #0000BB">$containments</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-16" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'Page' => array(
(int) 0 => 'Thumb',
'limit' => (int) 6,
'order' => array(
[maximum depth reached]
)
),
'SubMenu' => array(
(int) 0 => 'Page'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-17')">ContainableBehavior->beforeFind(Menu, array)</a> <div id="trace-args-17" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'fields' => null,
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-18')">CORE/Cake/Utility/ObjectCollection.php line 128</a> → <a href="#" onclick="traceToggle(event, 'trace-args-18')">call_user_func_array(array, array)</a> <div id="file-excerpt-18" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$list </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$callback</span><span style="color: #007700">), </span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'subject'</span><span style="color: #007700">) + </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 style="color: #007700">if (</span><span style="color: #0000BB">$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'collectReturn'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-18" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ContainableBehavior) {},
(int) 1 => 'beforeFind'
)
array(
'subject' => object(Menu) {},
(int) 0 => array(
'conditions' => array(
[maximum depth reached]
),
'fields' => null,
'joins' => array([maximum depth reached]),
'limit' => null,
'offset' => null,
'order' => array(
[maximum depth reached]
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-19')">ObjectCollection->trigger(CakeEvent)</a> <div id="trace-args-19" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-20')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-20')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-20" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-20" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(BehaviorCollection) {},
(int) 1 => 'trigger'
)
object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-21')">CORE/Cake/Model/Model.php line 2973</a> → <a href="#" onclick="traceToggle(event, 'trace-args-21')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-21" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true </span><span style="color: #007700">|| </span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #DD0000">'before'</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $event </span><span style="color: #007700">= new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Model.beforeFind'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">, array(</span><span style="color: #0000BB">$query</span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">break</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">breakOn</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">modParams</span><span style="color: #007700">) = array(</span><span style="color: #0000BB">true</span><span style="color: #007700">, array(</span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-21" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-22')">CORE/Cake/Model/Model.php line 2888</a> → <a href="#" onclick="traceToggle(event, 'trace-args-22')">Model->buildQuery(string, array)</a> <div id="file-excerpt-22" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">findQueryType </span><span style="color: #007700">= </span><span style="color: #0000BB">$type</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">id </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getID</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"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">buildQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query </span><span style="color: #007700">=== </span><span style="color: #0000BB">null</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-22" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-23')">APP/Controller/AppController.php line 50</a> → <a href="#" onclick="traceToggle(event, 'trace-args-23')">Model->find(string, array)</a> <div id="file-excerpt-23" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">layout </span><span style="color: #007700">= </span><span style="color: #DD0000">"admin"</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">loadModel</span><span style="color: #007700">(</span><span style="color: #DD0000">'Menu'</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Menu.type'</span><span style="color: #007700">=></span><span style="color: #DD0000">'header'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Menu.domain'</span><span style="color: #007700">=></span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">domain</span><span style="color: #007700">), </span><span style="color: #DD0000">'contain'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">, </span><span style="color: #DD0000">'limit'</span><span style="color: #007700">=></span><span style="color: #0000BB">6</span><span style="color: #007700">, </span><span style="color: #DD0000">'order'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page.date_page'</span><span style="color: #007700">=></span><span style="color: #DD0000">'desc'</span><span style="color: #007700">)), </span><span style="color: #DD0000">'SubMenu'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">))));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'menus'</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-23" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-24')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-24" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-25')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-25')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-25" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-25" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(PagesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-26')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-26')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-26" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-26" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-27')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-27')">Controller->startupProcess()</a> <div id="file-excerpt-27" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-27" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-28')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-28')">Dispatcher->_invoke(PagesController, CakeRequest)</a> <div id="file-excerpt-28" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-28" class="cake-code-dump" style="display: none;"><pre>object(PagesController) {
roles => array(
[maximum depth reached]
)
auth => null
domain => 'casablanca'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
name => 'Pages'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'single'
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 => 'Page'
modelKey => 'page'
validationErrors => null
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Paginator => object(PaginatorComponent) {}
Auth => object(AuthComponent) {}
Menu => object(Menu) {}
[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 => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-29')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-29')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-29" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-29" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display === 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'Mysql'
$message = 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
$enabled = true
$code = (int) 500
$name = 'Database connection "Mysql" is missing, or could not be created.'
$url = '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
$error = object(MissingConnectionException) {
[protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.'
[protected] _attributes => array(
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)',
'enabled' => true
)
[protected] _responseHeaders => null
[protected] message => 'Database connection "Mysql" is missing, or could not be created.'
[protected] code => (int) 500
[protected] file => '/home/rgam/public_html/lib/Cake/Model/Datasource/Database/Mysql.php'
[protected] line => (int) 191
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'name',
(int) 2 => 'message',
(int) 3 => 'url'
)
$domain = 'casablanca'
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
A Database connection using "Mysql" was missing or unable to connect. <br />
The database server returned this error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3498</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3525</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'pages'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 1365</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">schema</span><span style="color: #007700">(</span><span style="color: #0000BB">$field </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false </span><span style="color: #007700">&& (!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">) || </span><span style="color: #0000BB">$field </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"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">= (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">&& </span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 1457</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->schema()</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (empty(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">)) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">schema</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Media/Model/Behavior/MediaBehavior.php line 22</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->hasField(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'ref = "'</span><span style="color: #007700">.</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">name</span><span style="color: #007700">.</span><span style="color: #DD0000">'"'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'dependent' </span><span style="color: #007700">=> </span><span style="color: #0000BB">true</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">hasField</span><span style="color: #007700">(</span><span style="color: #DD0000">'media_id'</span><span style="color: #007700">)){</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $model</span><span style="color: #007700">-></span><span style="color: #0000BB">belongsTo</span><span style="color: #007700">[</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">] = array(</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'media_id'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/BehaviorCollection.php line 145</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">MediaBehavior->setup(Page, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $config </span><span style="color: #007700">= array();</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">settings</span><span style="color: #007700">[</span><span style="color: #DD0000">'priority'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$priority</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">setup</span><span style="color: #007700">(</span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">getObject</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">modelName</span><span style="color: #007700">), </span><span style="color: #0000BB">$config</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-8" class="cake-code-dump" style="display: none;"><pre>object(Page) {
actsAs => array(
[maximum depth reached]
)
order => array(
[maximum depth reached]
)
belongsTo => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
validate => array(
[maximum depth reached]
)
recursive => (int) -1
useDbConfig => 'default'
useTable => 'pages'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'pages'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Page'
alias => 'Page'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
medias => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Model/BehaviorCollection.php line 66</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">BehaviorCollection->load(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">)) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">BehaviorCollection</span><span style="color: #007700">::</span><span style="color: #0000BB">normalizeObjectArray</span><span style="color: #007700">(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">) as </span><span style="color: #0000BB">$config</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'class'</span><span style="color: #007700">], </span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'settings'</span><span style="color: #007700">]);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'Media.Media'
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Model/Model.php line 755</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">BehaviorCollection->init(string, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_createLinks</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Behaviors</span><span style="color: #007700">-></span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">alias</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">actsAs</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'Page'
array(
'Containable' => null,
'Media.Media' => array(
'extensions' => array(
[maximum depth reached]
),
'path' => 'img/uploads/%f'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Model->__construct(array)</a> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Utility/ClassRegistry.php line 169</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">ReflectionClass->newInstance(array)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">getConstructor</span><span style="color: #007700">()) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $instance </span><span style="color: #007700">= </span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">newInstance</span><span style="color: #007700">(</span><span style="color: #0000BB">$settings</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Model/Model.php line 1058</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">ClassRegistry::init(array)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $model </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'class' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$plugin </span><span style="color: #007700">. </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$assoc</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #0000BB">$assoc</span><span style="color: #007700">} = </span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</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>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Model/Model.php line 867</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Model->_constructLinkedModel(string, string, null)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'ds' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_constructLinkedModel</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #0000BB">$plugin</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>'Page'
'Page'
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 340</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Model->__isset(string)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">}) || !</span><span style="color: #0000BB">is_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">})) {</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$throwErrors</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>'Page'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-16')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 123</a> → <a href="#" onclick="traceToggle(event, 'trace-args-16')">ContainableBehavior->containments(Menu, array)</a> <div id="file-excerpt-16" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">? </span><span style="color: #0000BB">array_pop</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">)</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">: </span><span style="color: #0000BB">array_shift</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $containments </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containments</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">, </span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $map </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containmentsMap</span><span style="color: #007700">(</span><span style="color: #0000BB">$containments</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-16" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'Page' => array(
(int) 0 => 'Thumb',
'limit' => (int) 6,
'order' => array(
[maximum depth reached]
)
),
'SubMenu' => array(
(int) 0 => 'Page'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-17')">ContainableBehavior->beforeFind(Menu, array)</a> <div id="trace-args-17" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'fields' => null,
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-18')">CORE/Cake/Utility/ObjectCollection.php line 128</a> → <a href="#" onclick="traceToggle(event, 'trace-args-18')">call_user_func_array(array, array)</a> <div id="file-excerpt-18" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$list </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$callback</span><span style="color: #007700">), </span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'subject'</span><span style="color: #007700">) + </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 style="color: #007700">if (</span><span style="color: #0000BB">$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'collectReturn'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-18" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ContainableBehavior) {},
(int) 1 => 'beforeFind'
)
array(
'subject' => object(Menu) {},
(int) 0 => array(
'conditions' => array(
[maximum depth reached]
),
'fields' => null,
'joins' => array([maximum depth reached]),
'limit' => null,
'offset' => null,
'order' => array(
[maximum depth reached]
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-19')">ObjectCollection->trigger(CakeEvent)</a> <div id="trace-args-19" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-20')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-20')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-20" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-20" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(BehaviorCollection) {},
(int) 1 => 'trigger'
)
object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-21')">CORE/Cake/Model/Model.php line 2973</a> → <a href="#" onclick="traceToggle(event, 'trace-args-21')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-21" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true </span><span style="color: #007700">|| </span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #DD0000">'before'</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $event </span><span style="color: #007700">= new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Model.beforeFind'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">, array(</span><span style="color: #0000BB">$query</span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">break</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">breakOn</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">modParams</span><span style="color: #007700">) = array(</span><span style="color: #0000BB">true</span><span style="color: #007700">, array(</span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-21" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-22')">CORE/Cake/Model/Model.php line 2888</a> → <a href="#" onclick="traceToggle(event, 'trace-args-22')">Model->buildQuery(string, array)</a> <div id="file-excerpt-22" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">findQueryType </span><span style="color: #007700">= </span><span style="color: #0000BB">$type</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">id </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getID</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"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">buildQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query </span><span style="color: #007700">=== </span><span style="color: #0000BB">null</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-22" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-23')">APP/Controller/AppController.php line 50</a> → <a href="#" onclick="traceToggle(event, 'trace-args-23')">Model->find(string, array)</a> <div id="file-excerpt-23" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">layout </span><span style="color: #007700">= </span><span style="color: #DD0000">"admin"</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">loadModel</span><span style="color: #007700">(</span><span style="color: #DD0000">'Menu'</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Menu.type'</span><span style="color: #007700">=></span><span style="color: #DD0000">'header'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Menu.domain'</span><span style="color: #007700">=></span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">domain</span><span style="color: #007700">), </span><span style="color: #DD0000">'contain'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">, </span><span style="color: #DD0000">'limit'</span><span style="color: #007700">=></span><span style="color: #0000BB">6</span><span style="color: #007700">, </span><span style="color: #DD0000">'order'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page.date_page'</span><span style="color: #007700">=></span><span style="color: #DD0000">'desc'</span><span style="color: #007700">)), </span><span style="color: #DD0000">'SubMenu'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">))));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'menus'</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-23" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-24')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-24" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-25')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-25')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-25" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-25" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(PagesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-26')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-26')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-26" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-26" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-27')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-27')">Controller->startupProcess()</a> <div id="file-excerpt-27" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-27" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-28')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-28')">Dispatcher->_invoke(PagesController, CakeRequest)</a> <div id="file-excerpt-28" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-28" class="cake-code-dump" style="display: none;"><pre>object(PagesController) {
roles => array(
[maximum depth reached]
)
auth => null
domain => 'casablanca'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
name => 'Pages'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'single'
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 => 'Page'
modelKey => 'page'
validationErrors => null
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Paginator => object(PaginatorComponent) {}
Auth => object(AuthComponent) {}
Menu => object(Menu) {}
[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 => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-29')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-29')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-29" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-29" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display === 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors'
include - APP/View/Elements/header.ctp, line 80
View::_evaluate() - CORE/Cake/View/View.php, line 948
View::_render() - CORE/Cake/View/View.php, line 910
View::_renderElement() - CORE/Cake/View/View.php, line 1213
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/default.ctp, line 43
View::_evaluate() - CORE/Cake/View/View.php, line 948
View::_render() - CORE/Cake/View/View.php, line 910
View::renderLayout() - CORE/Cake/View/View.php, line 542
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 954
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119
[main] - [internal], line ??
Warning (2): Invalid argument supplied for foreach() [APP/View/Elements/header.ctp, line 80]Code Context <ul class="nav navbar-nav navbar-right">
<li><a class="normal" href="<?= $this->Html->url('/') ?>">Accueil</a></li>
<?php foreach ($menus as $m) {
$viewFile = '/home/rgam/public_html/app/View/Elements/header.ctp'
$dataForView = array(
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)',
'enabled' => true,
'code' => (int) 500,
'name' => 'Database connection "Mysql" is missing, or could not be created.',
'url' => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia',
'error' => object(MissingConnectionException) {
[protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.'
[protected] _attributes => array(
[maximum depth reached]
)
[protected] _responseHeaders => null
[protected] message => 'Database connection "Mysql" is missing, or could not be created.'
[protected] code => (int) 500
[protected] file => '/home/rgam/public_html/lib/Cake/Model/Datasource/Database/Mysql.php'
[protected] line => (int) 191
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'name',
(int) 2 => 'message',
(int) 3 => 'url'
),
'domain' => 'casablanca',
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
A Database connection using "Mysql" was missing or unable to connect. <br />
The database server returned this error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3498</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3525</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'pages'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 1365</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">schema</span><span style="color: #007700">(</span><span style="color: #0000BB">$field </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false </span><span style="color: #007700">&& (!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">) || </span><span style="color: #0000BB">$field </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"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">= (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">&& </span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 1457</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->schema()</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (empty(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">)) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">schema</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Media/Model/Behavior/MediaBehavior.php line 22</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->hasField(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'ref = "'</span><span style="color: #007700">.</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">name</span><span style="color: #007700">.</span><span style="color: #DD0000">'"'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'dependent' </span><span style="color: #007700">=> </span><span style="color: #0000BB">true</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">hasField</span><span style="color: #007700">(</span><span style="color: #DD0000">'media_id'</span><span style="color: #007700">)){</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $model</span><span style="color: #007700">-></span><span style="color: #0000BB">belongsTo</span><span style="color: #007700">[</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">] = array(</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'media_id'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/BehaviorCollection.php line 145</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">MediaBehavior->setup(Page, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $config </span><span style="color: #007700">= array();</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">settings</span><span style="color: #007700">[</span><span style="color: #DD0000">'priority'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$priority</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">setup</span><span style="color: #007700">(</span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">getObject</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">modelName</span><span style="color: #007700">), </span><span style="color: #0000BB">$config</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-8" class="cake-code-dump" style="display: none;"><pre>object(Page) {
actsAs => array(
[maximum depth reached]
)
order => array(
[maximum depth reached]
)
belongsTo => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
validate => array(
[maximum depth reached]
)
recursive => (int) -1
useDbConfig => 'default'
useTable => 'pages'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'pages'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Page'
alias => 'Page'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
medias => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Model/BehaviorCollection.php line 66</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">BehaviorCollection->load(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">)) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">BehaviorCollection</span><span style="color: #007700">::</span><span style="color: #0000BB">normalizeObjectArray</span><span style="color: #007700">(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">) as </span><span style="color: #0000BB">$config</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'class'</span><span style="color: #007700">], </span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'settings'</span><span style="color: #007700">]);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'Media.Media'
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Model/Model.php line 755</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">BehaviorCollection->init(string, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_createLinks</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Behaviors</span><span style="color: #007700">-></span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">alias</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">actsAs</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'Page'
array(
'Containable' => null,
'Media.Media' => array(
'extensions' => array(
[maximum depth reached]
),
'path' => 'img/uploads/%f'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Model->__construct(array)</a> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Utility/ClassRegistry.php line 169</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">ReflectionClass->newInstance(array)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">getConstructor</span><span style="color: #007700">()) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $instance </span><span style="color: #007700">= </span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">newInstance</span><span style="color: #007700">(</span><span style="color: #0000BB">$settings</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Model/Model.php line 1058</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">ClassRegistry::init(array)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $model </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'class' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$plugin </span><span style="color: #007700">. </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$assoc</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #0000BB">$assoc</span><span style="color: #007700">} = </span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</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>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Model/Model.php line 867</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Model->_constructLinkedModel(string, string, null)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'ds' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_constructLinkedModel</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #0000BB">$plugin</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>'Page'
'Page'
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 340</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Model->__isset(string)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">}) || !</span><span style="color: #0000BB">is_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">})) {</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$throwErrors</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>'Page'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-16')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 123</a> → <a href="#" onclick="traceToggle(event, 'trace-args-16')">ContainableBehavior->containments(Menu, array)</a> <div id="file-excerpt-16" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">? </span><span style="color: #0000BB">array_pop</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">)</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">: </span><span style="color: #0000BB">array_shift</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $containments </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containments</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">, </span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $map </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containmentsMap</span><span style="color: #007700">(</span><span style="color: #0000BB">$containments</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-16" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'Page' => array(
(int) 0 => 'Thumb',
'limit' => (int) 6,
'order' => array(
[maximum depth reached]
)
),
'SubMenu' => array(
(int) 0 => 'Page'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-17')">ContainableBehavior->beforeFind(Menu, array)</a> <div id="trace-args-17" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'fields' => null,
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-18')">CORE/Cake/Utility/ObjectCollection.php line 128</a> → <a href="#" onclick="traceToggle(event, 'trace-args-18')">call_user_func_array(array, array)</a> <div id="file-excerpt-18" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$list </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$callback</span><span style="color: #007700">), </span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'subject'</span><span style="color: #007700">) + </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 style="color: #007700">if (</span><span style="color: #0000BB">$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'collectReturn'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-18" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ContainableBehavior) {},
(int) 1 => 'beforeFind'
)
array(
'subject' => object(Menu) {},
(int) 0 => array(
'conditions' => array(
[maximum depth reached]
),
'fields' => null,
'joins' => array([maximum depth reached]),
'limit' => null,
'offset' => null,
'order' => array(
[maximum depth reached]
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-19')">ObjectCollection->trigger(CakeEvent)</a> <div id="trace-args-19" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-20')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-20')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-20" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-20" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(BehaviorCollection) {},
(int) 1 => 'trigger'
)
object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-21')">CORE/Cake/Model/Model.php line 2973</a> → <a href="#" onclick="traceToggle(event, 'trace-args-21')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-21" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true </span><span style="color: #007700">|| </span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #DD0000">'before'</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $event </span><span style="color: #007700">= new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Model.beforeFind'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">, array(</span><span style="color: #0000BB">$query</span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">break</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">breakOn</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">modParams</span><span style="color: #007700">) = array(</span><span style="color: #0000BB">true</span><span style="color: #007700">, array(</span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-21" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-22')">CORE/Cake/Model/Model.php line 2888</a> → <a href="#" onclick="traceToggle(event, 'trace-args-22')">Model->buildQuery(string, array)</a> <div id="file-excerpt-22" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">findQueryType </span><span style="color: #007700">= </span><span style="color: #0000BB">$type</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">id </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getID</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"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">buildQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query </span><span style="color: #007700">=== </span><span style="color: #0000BB">null</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-22" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-23')">APP/Controller/AppController.php line 50</a> → <a href="#" onclick="traceToggle(event, 'trace-args-23')">Model->find(string, array)</a> <div id="file-excerpt-23" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">layout </span><span style="color: #007700">= </span><span style="color: #DD0000">"admin"</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">loadModel</span><span style="color: #007700">(</span><span style="color: #DD0000">'Menu'</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Menu.type'</span><span style="color: #007700">=></span><span style="color: #DD0000">'header'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Menu.domain'</span><span style="color: #007700">=></span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">domain</span><span style="color: #007700">), </span><span style="color: #DD0000">'contain'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">, </span><span style="color: #DD0000">'limit'</span><span style="color: #007700">=></span><span style="color: #0000BB">6</span><span style="color: #007700">, </span><span style="color: #DD0000">'order'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page.date_page'</span><span style="color: #007700">=></span><span style="color: #DD0000">'desc'</span><span style="color: #007700">)), </span><span style="color: #DD0000">'SubMenu'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">))));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'menus'</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-23" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-24')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-24" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-25')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-25')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-25" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-25" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(PagesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-26')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-26')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-26" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-26" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-27')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-27')">Controller->startupProcess()</a> <div id="file-excerpt-27" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-27" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-28')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-28')">Dispatcher->_invoke(PagesController, CakeRequest)</a> <div id="file-excerpt-28" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-28" class="cake-code-dump" style="display: none;"><pre>object(PagesController) {
roles => array(
[maximum depth reached]
)
auth => null
domain => 'casablanca'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
name => 'Pages'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'single'
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 => 'Page'
modelKey => 'page'
validationErrors => null
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Paginator => object(PaginatorComponent) {}
Auth => object(AuthComponent) {}
Menu => object(Menu) {}
[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 => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-29')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-29')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-29" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-29" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display === 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$class = 'Mysql'
$message = 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
$enabled = true
$code = (int) 500
$name = 'Database connection "Mysql" is missing, or could not be created.'
$url = '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
$error = object(MissingConnectionException) {
[protected] _messageTemplate => 'Database connection "%s" is missing, or could not be created.'
[protected] _attributes => array(
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)',
'enabled' => true
)
[protected] _responseHeaders => null
[protected] message => 'Database connection "Mysql" is missing, or could not be created.'
[protected] code => (int) 500
[protected] file => '/home/rgam/public_html/lib/Cake/Model/Datasource/Database/Mysql.php'
[protected] line => (int) 191
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'name',
(int) 2 => 'message',
(int) 3 => 'url'
)
$domain = 'casablanca'
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
A Database connection using "Mysql" was missing or unable to connect. <br />
The database server returned this error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$autoConnect</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">connect</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 105</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'message' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'Datasource is not found in Model/Datasource package.'</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">] = new </span><span style="color: #0000BB">$class</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$config</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">});</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> self</span><span style="color: #007700">::</span><span style="color: #0000BB">$_dataSources</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]-></span><span style="color: #0000BB">configKeyName </span><span style="color: #007700">= </span><span style="color: #0000BB">$name</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3498</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig </span><span style="color: #007700">= </span><span style="color: #0000BB">$dataSource</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$oldConfig</span><span style="color: #007700">) && isset(</span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1136</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$tableName</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">ConnectionManager</span><span style="color: #007700">::</span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3525</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">() {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">&& </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_sourceConfigured </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">setSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'pages'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 1365</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">schema</span><span style="color: #007700">(</span><span style="color: #0000BB">$field </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useTable </span><span style="color: #007700">!== </span><span style="color: #0000BB">false </span><span style="color: #007700">&& (!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">) || </span><span style="color: #0000BB">$field </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"> $db </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">= (</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources </span><span style="color: #007700">&& </span><span style="color: #0000BB">$db</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheSources</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 1457</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->schema()</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (empty(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_schema</span><span style="color: #007700">)) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">schema</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Media/Model/Behavior/MediaBehavior.php line 22</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->hasField(string)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #DD0000">'ref = "'</span><span style="color: #007700">.</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">name</span><span style="color: #007700">.</span><span style="color: #DD0000">'"'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'dependent' </span><span style="color: #007700">=> </span><span style="color: #0000BB">true</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if(</span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">hasField</span><span style="color: #007700">(</span><span style="color: #DD0000">'media_id'</span><span style="color: #007700">)){</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $model</span><span style="color: #007700">-></span><span style="color: #0000BB">belongsTo</span><span style="color: #007700">[</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">] = array(</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'media_id'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/BehaviorCollection.php line 145</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">MediaBehavior->setup(Page, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $config </span><span style="color: #007700">= array();</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">settings</span><span style="color: #007700">[</span><span style="color: #DD0000">'priority'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$priority</span><span style="color: #007700">;</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$alias</span><span style="color: #007700">]-></span><span style="color: #0000BB">setup</span><span style="color: #007700">(</span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">getObject</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">modelName</span><span style="color: #007700">), </span><span style="color: #0000BB">$config</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-8" class="cake-code-dump" style="display: none;"><pre>object(Page) {
actsAs => array(
[maximum depth reached]
)
order => array(
[maximum depth reached]
)
belongsTo => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
validate => array(
[maximum depth reached]
)
recursive => (int) -1
useDbConfig => 'default'
useTable => 'pages'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'pages'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Page'
alias => 'Page'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
medias => array(
[maximum depth reached]
)
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => null
[protected] _validator => null
}
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Model/BehaviorCollection.php line 66</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">BehaviorCollection->load(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!empty(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">)) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">BehaviorCollection</span><span style="color: #007700">::</span><span style="color: #0000BB">normalizeObjectArray</span><span style="color: #007700">(</span><span style="color: #0000BB">$behaviors</span><span style="color: #007700">) as </span><span style="color: #0000BB">$config</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">load</span><span style="color: #007700">(</span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'class'</span><span style="color: #007700">], </span><span style="color: #0000BB">$config</span><span style="color: #007700">[</span><span style="color: #DD0000">'settings'</span><span style="color: #007700">]);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'Media.Media'
array(
'extensions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'jpg',
(int) 4 => 'png',
(int) 5 => 'pdf',
(int) 6 => 'zip',
(int) 7 => 'xlsx',
(int) 8 => 'xls',
(int) 9 => 'mp4'
),
'path' => 'img/uploads/%f'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Model/Model.php line 755</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">BehaviorCollection->init(string, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_createLinks</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Behaviors</span><span style="color: #007700">-></span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">alias</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">actsAs</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'Page'
array(
'Containable' => null,
'Media.Media' => array(
'extensions' => array(
[maximum depth reached]
),
'path' => 'img/uploads/%f'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Model->__construct(array)</a> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Utility/ClassRegistry.php line 169</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">ReflectionClass->newInstance(array)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">getConstructor</span><span style="color: #007700">()) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $instance </span><span style="color: #007700">= </span><span style="color: #0000BB">$reflection</span><span style="color: #007700">-></span><span style="color: #0000BB">newInstance</span><span style="color: #007700">(</span><span style="color: #0000BB">$settings</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Model/Model.php line 1058</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">ClassRegistry::init(array)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $model </span><span style="color: #007700">= array(</span><span style="color: #DD0000">'class' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$plugin </span><span style="color: #007700">. </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #DD0000">'alias' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$assoc</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">->{</span><span style="color: #0000BB">$assoc</span><span style="color: #007700">} = </span><span style="color: #0000BB">ClassRegistry</span><span style="color: #007700">::</span><span style="color: #0000BB">init</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</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>array(
'class' => 'Page',
'alias' => 'Page'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">CORE/Cake/Model/Model.php line 867</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Model->_constructLinkedModel(string, string, null)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'ds' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useDbConfig</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_constructLinkedModel</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$className</span><span style="color: #007700">, </span><span style="color: #0000BB">$plugin</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>'Page'
'Page'
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-15')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 340</a> → <a href="#" onclick="traceToggle(event, 'trace-args-15')">Model->__isset(string)</a> <div id="file-excerpt-15" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!isset(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">}) || !</span><span style="color: #0000BB">is_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">->{</span><span style="color: #0000BB">$name</span><span style="color: #007700">})) {</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$throwErrors</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-15" class="cake-code-dump" style="display: none;"><pre>'Page'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-16')">CORE/Cake/Model/Behavior/ContainableBehavior.php line 123</a> → <a href="#" onclick="traceToggle(event, 'trace-args-16')">ContainableBehavior->containments(Menu, array)</a> <div id="file-excerpt-16" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">? </span><span style="color: #0000BB">array_pop</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">)</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">: </span><span style="color: #0000BB">array_shift</span><span style="color: #007700">(</span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $containments </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containments</span><span style="color: #007700">(</span><span style="color: #0000BB">$Model</span><span style="color: #007700">, </span><span style="color: #0000BB">$contain</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $map </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">containmentsMap</span><span style="color: #007700">(</span><span style="color: #0000BB">$containments</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-16" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'Page' => array(
(int) 0 => 'Thumb',
'limit' => (int) 6,
'order' => array(
[maximum depth reached]
)
),
'SubMenu' => array(
(int) 0 => 'Page'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-17')">ContainableBehavior->beforeFind(Menu, array)</a> <div id="trace-args-17" class="cake-code-dump" style="display: none;"><pre>object(Menu) {
hasMany => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
recursive => (int) -1
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'menus'
id => false
data => array([maximum depth reached])
schemaName => null
table => 'menus'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
plugin => null
name => 'Menu'
alias => 'Menu'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array(
[maximum depth reached]
)
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
__safeUpdateMode => false
findMethods => array(
[maximum depth reached]
)
Page => object(Page) {}
SubMenu => object(SubMenu) {}
[protected] _schema => null
[protected] _associationKeys => array(
[maximum depth reached]
)
[protected] _associations => array(
[maximum depth reached]
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'fields' => null,
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-18')">CORE/Cake/Utility/ObjectCollection.php line 128</a> → <a href="#" onclick="traceToggle(event, 'trace-args-18')">call_user_func_array(array, array)</a> <div id="file-excerpt-18" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">foreach (</span><span style="color: #0000BB">$list </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_loaded</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">], </span><span style="color: #0000BB">$callback</span><span style="color: #007700">), </span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'subject'</span><span style="color: #007700">) + </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 style="color: #007700">if (</span><span style="color: #0000BB">$options</span><span style="color: #007700">[</span><span style="color: #DD0000">'collectReturn'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-18" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(ContainableBehavior) {},
(int) 1 => 'beforeFind'
)
array(
'subject' => object(Menu) {},
(int) 0 => array(
'conditions' => array(
[maximum depth reached]
),
'fields' => null,
'joins' => array([maximum depth reached]),
'limit' => null,
'offset' => null,
'order' => array(
[maximum depth reached]
),
'page' => (int) 1,
'group' => null,
'callbacks' => true,
'contain' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-19')">ObjectCollection->trigger(CakeEvent)</a> <div id="trace-args-19" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-20')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-20')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-20" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-20" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(BehaviorCollection) {},
(int) 1 => 'trigger'
)
object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-21')">CORE/Cake/Model/Model.php line 2973</a> → <a href="#" onclick="traceToggle(event, 'trace-args-21')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-21" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true </span><span style="color: #007700">|| </span><span style="color: #0000BB">$query</span><span style="color: #007700">[</span><span style="color: #DD0000">'callbacks'</span><span style="color: #007700">] === </span><span style="color: #DD0000">'before'</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $event </span><span style="color: #007700">= new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Model.beforeFind'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">, array(</span><span style="color: #0000BB">$query</span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">list(</span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">break</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">breakOn</span><span style="color: #007700">, </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">modParams</span><span style="color: #007700">) = array(</span><span style="color: #0000BB">true</span><span style="color: #007700">, array(</span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-21" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => array(
[maximum depth reached]
)
result => null
modParams => (int) 0
breakOn => array(
[maximum depth reached]
)
break => true
[protected] _name => 'Model.beforeFind'
[protected] _subject => object(Menu) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-22')">CORE/Cake/Model/Model.php line 2888</a> → <a href="#" onclick="traceToggle(event, 'trace-args-22')">Model->buildQuery(string, array)</a> <div id="file-excerpt-22" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">findQueryType </span><span style="color: #007700">= </span><span style="color: #0000BB">$type</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">id </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getID</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"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">buildQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$query </span><span style="color: #007700">=== </span><span style="color: #0000BB">null</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-22" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-23')">APP/Controller/AppController.php line 50</a> → <a href="#" onclick="traceToggle(event, 'trace-args-23')">Model->find(string, array)</a> <div id="file-excerpt-23" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">layout </span><span style="color: #007700">= </span><span style="color: #DD0000">"admin"</span><span style="color: #007700">;</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">loadModel</span><span style="color: #007700">(</span><span style="color: #DD0000">'Menu'</span><span style="color: #007700">);</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $menus </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">Menu</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'conditions'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Menu.type'</span><span style="color: #007700">=></span><span style="color: #DD0000">'header'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Menu.domain'</span><span style="color: #007700">=></span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">domain</span><span style="color: #007700">), </span><span style="color: #DD0000">'contain'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Thumb'</span><span style="color: #007700">, </span><span style="color: #DD0000">'limit'</span><span style="color: #007700">=></span><span style="color: #0000BB">6</span><span style="color: #007700">, </span><span style="color: #DD0000">'order'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page.date_page'</span><span style="color: #007700">=></span><span style="color: #DD0000">'desc'</span><span style="color: #007700">)), </span><span style="color: #DD0000">'SubMenu'</span><span style="color: #007700">=>array(</span><span style="color: #DD0000">'Page'</span><span style="color: #007700">))));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #0000BB">compact</span><span style="color: #007700">(</span><span style="color: #DD0000">'menus'</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-23" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Menu.type' => 'header',
'Menu.domain' => 'casablanca'
),
'contain' => array(
'Page' => array(
[maximum depth reached]
),
'SubMenu' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-24')">AppController->beforeFilter(CakeEvent)</a> <div id="trace-args-24" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-25')">CORE/Cake/Event/CakeEventManager.php line 242</a> → <a href="#" onclick="traceToggle(event, 'trace-args-25')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-25" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'passParams'</span><span style="color: #007700">] === </span><span style="color: #0000BB">true</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">-></span><span style="color: #0000BB">data</span><span style="color: #007700">);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">} else {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">call_user_func</span><span style="color: #007700">(</span><span style="color: #0000BB">$listener</span><span style="color: #007700">[</span><span style="color: #DD0000">'callable'</span><span style="color: #007700">], </span><span style="color: #0000BB">$event</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-25" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(PagesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-26')">CORE/Cake/Controller/Controller.php line 674</a> → <a href="#" onclick="traceToggle(event, 'trace-args-26')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-26" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return </span><span style="color: #0000BB">void</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">public function </span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">() {</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.initialize'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">getEventManager</span><span style="color: #007700">()-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(new </span><span style="color: #0000BB">CakeEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">'Controller.startup'</span><span style="color: #007700">, </span><span style="color: #0000BB">$this</span><span style="color: #007700">));</span></span></code></pre></div> <div id="trace-args-26" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
[protected] _name => 'Controller.initialize'
[protected] _subject => object(PagesController) {}
[protected] _stopped => false
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-27')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-27')">Controller->startupProcess()</a> <div id="file-excerpt-27" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">Controller $controller</span><span style="color: #007700">, </span><span style="color: #0000BB">CakeRequest $request</span><span style="color: #007700">) {</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">constructClasses</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-27" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-28')">CORE/Cake/Routing/Dispatcher.php line 165</a> → <a href="#" onclick="traceToggle(event, 'trace-args-28')">Dispatcher->_invoke(PagesController, CakeRequest)</a> <div id="file-excerpt-28" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-28" class="cake-code-dump" style="display: none;"><pre>object(PagesController) {
roles => array(
[maximum depth reached]
)
auth => null
domain => 'casablanca'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
name => 'Pages'
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Pages'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'single'
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 => 'Page'
modelKey => 'page'
validationErrors => null
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Paginator => object(PaginatorComponent) {}
Auth => object(AuthComponent) {}
Menu => object(Menu) {}
[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 => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-29')">APP/webroot/index.php line 108</a> → <a href="#" onclick="traceToggle(event, 'trace-args-29')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-29" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code>
<span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-29" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array([maximum depth reached])
url => 'rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
base => ''
webroot => '/'
here => '/rgam-golf-tour-ii-le-samedi-09-decembre-2023-au-parcours-de-mohammedia'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display === 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors'
include - APP/View/Elements/header.ctp, line 80
View::_evaluate() - CORE/Cake/View/View.php, line 948
View::_render() - CORE/Cake/View/View.php, line 910
View::_renderElement() - CORE/Cake/View/View.php, line 1213
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/default.ctp, line 43
View::_evaluate() - CORE/Cake/View/View.php, line 948
View::_render() - CORE/Cake/View/View.php, line 910
View::renderLayout() - CORE/Cake/View/View.php, line 542
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 954
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 278
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 199
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 119
[main] - [internal], line ??
Réservation