• FICHEIRO: /home/macrogro/library/Goweb/Paginator.php
  • LINHA:    264
  • MENSAGEM: Undefined offset: 2
  •  260.         
  •  261.         $string = trim($_SERVER['REQUEST_URI'], '/');
  •  262.         $parts = explode('/', $string);
  •  263.         
  •  264.         $module = $parts[2];
  •  265.         if (isset($parts[3])) {
  •  266.             $moduleAction = explode('?', $parts[3]);
  •  267.         }
  •  268.
  •  269.         for ($i = $start; $i <= $end; $i++) {

  • FICHEIRO: /home/macrogro/library/Goweb/Paginator.php
  • LINHA:    264
  •  260.         
  •  261.         $string = trim($_SERVER['REQUEST_URI'], '/');
  •  262.         $parts = explode('/', $string);
  •  263.         
  •  264.         $module = $parts[2];
  •  265.         if (isset($parts[3])) {
  •  266.             $moduleAction = explode('?', $parts[3]);
  •  267.         }
  •  268.
  •  269.         for ($i = $start; $i <= $end; $i++) {

  • FICHEIRO: /home/macrogro/views/Generic/paginator.tpl
  • LINHA:    1
  •  1. <?php $links = $paginator->getLinks(); ?>
  •  2. <?php if(count($links) > 1): ?>
  •  3.     <?php /* ?>
  •  4.     <div class="total_rows_pages text-left"><?php echo $paginator->getTotalRows(); ?> <?php echo translate('itens'); ?>&nbsp;/&nbsp;<?php echo $paginator->getTotalPages(); ?> <?php echo translate('p&aacute;ginas'); ?></div>
  •  5.     <?php */ ?>
  •  6.     <div class="paginator col-xs-12">

  • FICHEIRO: /home/macrogro/library/Goweb/View.php
  • LINHA:    49
  •  45.         extract(get_object_vars($this));
  •  46.         if ($this->_useViewStream && $this->useStreamWrapper()) {
  •  47.             include 'zend.view://' . func_get_arg(0);
  •  48.         } else {
  •  49.             include func_get_arg(0);
  •  50.         }
  •  51.     }
  •  52.
  •  53.     /**
  •  54.      * Escapes a value for output in a view script.

  • FICHEIRO: /home/macrogro/library/Zend/View/Abstract.php
  • LINHA:    888
  •  884.         $this->_file = $this->_script($name);
  •  885.         unset($name); // remove $name from local scope
  •  886.
  •  887.         ob_start();
  •  888.         $this->_run($this->_file);
  •  889.
  •  890.         return $this->_filter(ob_get_clean()); // filter output
  •  891.     }
  •  892.
  •  893.     /**

  • FICHEIRO: /home/macrogro/application/Catalogo/GenericController.php
  • LINHA:    580
  •  576.                 $paginator = new Goweb_Paginator($this->_getLinkStart().$url.($this->_getParam('nitens')?'/nitens/'.$this->_getParam('nitens'):'').'/page', $nprods, $page, $rows, $this->_moduleConfig->paginator->links_per_page);
  •  577.     
  •  578.             $this->view->paginator = $paginator;
  •  579.             $this->view->setViewsPath(GENERIC_VIEWS_PATH);
  •  580.             $this->view->paginator_output = $this->view->render('paginator.tpl');
  •  581.             
  •  582.         }
  •  583.         
  •  584.         $this->view->setViewsPath(VIEWS_PATH . DIRECTORY_SEPARATOR . 'Catalogo');
  •  585.         

  • FICHEIRO: /home/macrogro/application/Catalogo/GenericController.php
  • LINHA:    418
  •  414.             $translate = Zend_Controller_Router_Route::getDefaultTranslator();
  •  415.             if(is_numeric(strpos($pathInfo, ($translate ? $translate->_('list') : 'list') . '/categoria_id')) && $this->_categoriaModel->find($categoriaId) && $this->_categoriaModel->url)
  •  416.                 return $this->_redirect($sub.$this->_categoriaModel->url.($palavra ? '/palavra/' . $palavra : '').($nitens ? '/nitens/' . $nitens : '').($page ? '/page/' . $page : ''), array('code' => 301));
  •  417.         }
  •  418.         return $this->listProdutosAction();
  •  419.     }
  •  420.
  •  421.     public function listProdutosAction() {
  •  422.
  •  423.         $cmsModel = Goweb::getModelInstance('Cms_Model_Pagina', 'db', false);

  • FICHEIRO: /home/macrogro/application/Catalogo/GenericController.php
  • LINHA:    366
  •  362.         elseif($pathInfo && ($this->_produtoModel->findBy('url', $pathInfo) || $this->_produtoModel->findBy('url', substr($pathInfo, 1)))) {
  •  363.             $this->_setParam('id', $this->_produtoModel->id);
  •  364.             return $this->detailAction();
  •  365.         }
  •  366.         return $this->listAction();
  •  367.     }
  •  368.     
  •  369.     public function listAction() {
  •  370.
  •  371.         $filtros = array('1', '2', '3', '4', '5');

  • FICHEIRO: /home/macrogro/library/Goweb/Controller/Action.php
  • LINHA:    186
  •  182.                  */
  •  183.                 /*if ($this->getInvokeArg('useCaseSensitiveActions')) {
  •  184.                     trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
  •  185.                 }*/
  •  186.                 $this->$action();
  •  187.             } else {
  •  188.                 $this->__call($action, array());
  •  189.             }
  •  190.             $this->postDispatch();
  •  191.         }

  • FICHEIRO: /home/macrogro/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/macrogro/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/macrogro/library/Goweb/Application.php
  • LINHA:    449
  •  445.     }
  •  446.
  •  447.     public function runApp(){
  •  448.         $frontController = Zend_Controller_Front::getInstance();
  •  449.         $frontController->dispatch();
  •  450.     }
  •  451. }

  • FICHEIRO: /home/macrogro/public_html/index.php
  • LINHA:    62
  •  58. $application->initSession('_FRONT', true);
  •  59. $application->initPainel();
  •  60. $application->initLanguage(isset($_GET['lang']) ? $_GET['lang'] : null, true, false);
  •  61. $application->initLanguageAdmin(isset($_GET['lang']) ? $_GET['lang'] : null, true, true);
  •  62. $application->runApp();
  •  63.
  •  64. /**
  •  65.  * Efectua a traducao de uma string.
  •  66.  */
  •  67. function translate()