Code Context $this->set('empreendimento', $empreendimento->Empreendimento->find('all', array('joins' => array(array('table' => 'empreendimentos_fotos', 'alias' => 'EmpreendimentosFoto', 'type'=>'LEFT', 'conditions' => 'Empreendimento.id = EmpreendimentosFoto.empreendimento_id')), 'conditions' => " Empreendimento.slug" . " = '" . $this->params['slug'] . "'")));
$imovel = $this->Empreendimento->query("SELECT * FROM empreendimentos WHERE slug = '" . $this->params['slug'] . "' ");
$this->set('cats', $this->Empreendimento->EmpreendimentosCategoria->find('all', array('conditions' => array('EmpreendimentosCategoria.id = ' . $imovel[0]['empreendimentos']['empreendimentos_categoria_id']))));
$empreendimento = object(EmpreendimentosController) {
components => array(
(int) 0 => 'Paginator'
)
paginate => array(
'conditions' => array(
[maximum depth reached]
),
'limit' => (int) 10,
'order' => array(
[maximum depth reached]
)
)
name => 'Empreendimentos'
uses => array(
(int) 0 => true,
(int) 1 => 'Empreendimento'
)
helpers => array()
request => null
response => null
viewPath => 'Empreendimentos'
layoutPath => null
viewVars => array()
view => null
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array()
scaffold => false
methods => array(
(int) 0 => 'index',
(int) 1 => 'interna',
(int) 2 => 'biz_getRazasByEspecie',
(int) 3 => 'biz_getRazasByEspecie2',
(int) 4 => 'resultado',
(int) 5 => 'biz_index',
(int) 6 => 'biz_view',
(int) 7 => 'biz_add',
(int) 8 => 'atualizaBox',
(int) 9 => 'biz_edit',
(int) 10 => 'biz_delete',
(int) 12 => 'isAuthorized'
)
modelClass => 'Empreendimento'
modelKey => 'empreendimento'
validationErrors => null
Empreendimento => object(Empreendimento) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => null
}
$imovel = array()
EmpreendimentosController::interna() - APP/Controller/EmpreendimentosController.php, line 44
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 191
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108