- FICHEIRO: /home/jordao/application/Catalogo/Controller.php
- LINHA: 148
- MENSAGEM: Trying to get property of non-object
- 144. $this->_produtoModel->order(array('ordem', 'titulo'));
- 145. $this->_produtoModel->limitPage($paginator->getPage(), $this->_moduleConfig->paginator->rows_per_page);
- 146. $this->view->produtos = $this->_produtoModel->fetchAll(array('id', 'titulo', 'subtitulo', 'url', 'descricao', 'iconologia', 'imagem'));
- 147.
- 148. $this->view->breadcrumb = '<a href="/">'.translate('Home').'</a>'.($categoria->pai_id?$this->_caminho('0', $categoria->pai_id):' > <span class="last">'.$categoria->titulo.'</span>');
- 149.
- 150. if ($this->_directRequest) {
- 151. Goweb::loadClass('Cms_Controller', APPLICATION_PATH);
- 152. Cms_Controller::renderOutput($this->view,
- 153. 'list.tpl',
- FICHEIRO: /home/jordao/application/Catalogo/Controller.php
- LINHA: 148
- 144. $this->_produtoModel->order(array('ordem', 'titulo'));
- 145. $this->_produtoModel->limitPage($paginator->getPage(), $this->_moduleConfig->paginator->rows_per_page);
- 146. $this->view->produtos = $this->_produtoModel->fetchAll(array('id', 'titulo', 'subtitulo', 'url', 'descricao', 'iconologia', 'imagem'));
- 147.
- 148. $this->view->breadcrumb = '<a href="/">'.translate('Home').'</a>'.($categoria->pai_id?$this->_caminho('0', $categoria->pai_id):' > <span class="last">'.$categoria->titulo.'</span>');
- 149.
- 150. if ($this->_directRequest) {
- 151. Goweb::loadClass('Cms_Controller', APPLICATION_PATH);
- 152. Cms_Controller::renderOutput($this->view,
- 153. 'list.tpl',
- FICHEIRO: /home/jordao/application/Catalogo/GenericController.php
- LINHA: 72
- 68. return $this->listCategoriasAction($categoriaId);
- 69. else
- 70. return $this->listProdutosAction();
- 71. }
- 72. return $this->listProdutosAction();
- 73. }
- 74.
- 75. public function listProdutosAction() {
- 76.
- 77. $cmsModel = Goweb::getModelInstance('Cms_Model_Pagina', 'db', false);
- FICHEIRO: /home/jordao/library/Goweb/Controller/Action.php
- LINHA: 179
- 175. if (null === $this->_classMethods) {
- 176. $this->_classMethods = get_class_methods($this);
- 177. }
- 178. if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
- 179. $this->$action();
- 180. } else {
- 181. $this->__call($action, array());
- 182. }
- 183. $this->postDispatch();
- 184. }
- FICHEIRO: /home/jordao/library/Zend/Controller/Dispatcher/Standard.php
- LINHA: 308
- 304. ob_start();
- 305. }
- 306.
- 307. try {
- 308. $controller->dispatch($action);
- 309. } catch (Exception $e) {
- 310. // Clean output buffer on error
- 311. $curObLevel = ob_get_level();
- 312. if ($curObLevel > $obLevel) {
- 313. do {
- FICHEIRO: /home/jordao/library/Zend/Controller/Front.php
- LINHA: 954
- 950. /**
- 951. * Dispatch request
- 952. */
- 953. try {
- 954. $dispatcher->dispatch($this->_request, $this->_response);
- 955. } catch (Exception $e) {
- 956. if ($this->throwExceptions()) {
- 957. throw $e;
- 958. }
- 959. $this->_response->setException($e);
- FICHEIRO: /home/jordao/library/Goweb/Application.php
- LINHA: 397
- 393. }
- 394.
- 395. public function runApp(){
- 396. $frontController = Zend_Controller_Front::getInstance();
- 397. $frontController->dispatch();
- 398. }
- 399. }
- FICHEIRO: /home/jordao/public_html/index.php
- LINHA: 39
- 35. $application->initPainel();
- 36. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
- 37. $application->initLanguage($lang, true, false);
- 38. $application->initLanguageAdmin($lang, true, true);
- 39. $application->runApp();
- 40. function translate() {
- 41. static $translator = null;
- 42. if (is_null($translator)) {
- 43. if (!Goweb::isRegistered('translator')){
- 44. return '';