- FICHEIRO: /home/sopequeninos/library/Zend/Db/Table/Abstract.php
- LINHA: 839
- MENSAGEM: Failed saving metadata to metadataCache
- 835. // Fetch metadata from the adapter's describeTable() method
- 836. $metadata = $this->_db->describeTable($this->_name, $this->_schema);
- 837. // If $this has a metadata cache, then cache the metadata
- 838. if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) {
- 839. trigger_error('Failed saving metadata to metadataCache', E_USER_NOTICE);
- 840. }
- 841. }
- 842.
- 843. // Assign the metadata to $this
- 844. $this->_metadata = $metadata;
- FICHEIRO: /home/sopequeninos/library/Zend/Db/Table/Abstract.php
- LINHA: 839
- 835. // Fetch metadata from the adapter's describeTable() method
- 836. $metadata = $this->_db->describeTable($this->_name, $this->_schema);
- 837. // If $this has a metadata cache, then cache the metadata
- 838. if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) {
- 839. trigger_error('Failed saving metadata to metadataCache', E_USER_NOTICE);
- 840. }
- 841. }
- 842.
- 843. // Assign the metadata to $this
- 844. $this->_metadata = $metadata;
- FICHEIRO: /home/sopequeninos/library/Goweb/Db/Model.php
- LINHA: 667
- 663. * @param string Coluna do count
- 664. * @return int Número de linhas resultante da query
- 665. */
- 666. public function count($col = '*') {
- 667. $this->_setupMetadata();
- 668. $rowCount = clone $this->_select;
- 669. // adiciona as campos das chaves estrangeiras
- 670. if ($this->_loadForeigns && $col != '*') {
- 671. $rowCount->from($this->_table, $this->_table . '.' .$col);
- 672. foreach ($this->_foreigns as $col => $model) {
- FICHEIRO: /home/sopequeninos/application/Cms/Controller.php
- LINHA: 1637
- 1633. $marcasModel = Goweb::getModelInstance('Catalogo_Model_Marcas', 'db', false);
- 1634. $marcasModel->where($marcasModel->getTableName() . '.activo=?', '1');
- 1635. $marcasModel->order(array('ordem','titulo'));
- 1636.
- 1637. $total_filhos = $marcasModel->count();
- 1638.
- 1639. $filhos = $marcasModel->fetchAll();
- 1640.
- 1641. if($filhos) {
- 1642. $html .= '<li class="menu-dropdown-icon marcas-menu"><a class="link-match-height no-link'.$first_level.'" href="#">Marcas</a>';
- FICHEIRO: /home/sopequeninos/application/Cms/Controller.php
- LINHA: 1507
- 1503. }
- 1504.
- 1505. $parents = $this->_getAllParents($id);
- 1506.
- 1507. $this->view->menu = $this->_getListHeaderMegaMenu($menus, null, $pai_id, $id, 1, $parents, 1);
- 1508.
- 1509. $this->view->array_menus_parallax = $this->_array_parallax;
- 1510.
- 1511. if ($this->_directRequest) { // significa que foi chamado directamente.
- 1512. Goweb::loadClass('Cms_Controller', APPLICATION_PATH);
- FICHEIRO: /home/sopequeninos/library/Goweb/Controller/Action.php
- LINHA: 276
- 272. */
- 273. /*if ($this->getInvokeArg('useCaseSensitiveActions')) {
- 274. trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
- 275. }*/
- 276. $this->$action();
- 277. } else {
- 278. $this->__call($action, array());
- 279. }
- 280. $this->postDispatch();
- 281. }
- FICHEIRO: /home/sopequeninos/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/sopequeninos/library/Zend/View/Helper/Action.php
- LINHA: 135
- 131. ->setControllerName($controller)
- 132. ->setActionName($action)
- 133. ->setDispatched(true);
- 134.
- 135. $this->dispatcher->dispatch($this->request, $this->response);
- 136.
- 137. // reset the viewRenderer object to it's original state
- 138. Zend_Controller_Action_HelperBroker::addHelper($viewRendererObj);
- 139.
- 140.
- FICHEIRO: /home/sopequeninos/library/Goweb/View/Helper/Component.php
- LINHA: 56
- 52. $params['directRequest'] = false;
- 53.
- 54. //$controllerName = $this->_formatControllerName($controller);
- 55. //$actionName = $this->_formatActionName($action);
- 56. $return = $this->action($action, $controller, null, $params);
- 57. //goweb::dump($return);
- 58. //exit();
- 59. return $return;
- 60. }
- 61. }
- FICHEIRO: /home/sopequeninos/library/Zend/View/Abstract.php
- LINHA: 349
- 345.
- 346. // call the helper method
- 347. return call_user_func_array(
- 348. array($helper, $name),
- 349. $args
- 350. );
- 351. }
- 352.
- 353. /**
- 354. * Given a base path, sets the script, helper, and filter paths relative to it
- FICHEIRO: /home/sopequeninos/views/Cms/header.tpl
- LINHA: 80
- 76. <div class="clearfix"></div>
- 77. <div role="navigation" class="navbar navbar-default">
- 78. <nav id="menuheader" class="menu-container">
- 79. <div class="menu">
- 80. <?php echo $this->component('/cms/megaMenuHeader/pai_id/29/id_selected/'.$id); ?>
- 81. <?php //echo $this->component('/cms/menuHeader/pai_id/29/id_selected/'.$id); ?>
- 82. </div>
- 83. </nav>
- 84. </div>
- 85. <?php echo $this->component('/utilizadores/loginBlock/'); ?>
- FICHEIRO: /home/sopequeninos/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/sopequeninos/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/sopequeninos/library/Zend/View/Helper/Partial.php
- LINHA: 109
- 105. }
- 106. }
- 107. }
- 108.
- 109. return $view->render($name);
- 110. }
- 111.
- 112. /**
- 113. * Clone the current View
- 114. *
- FICHEIRO: /home/sopequeninos/library/Zend/View/Abstract.php
- LINHA: 349
- 345.
- 346. // call the helper method
- 347. return call_user_func_array(
- 348. array($helper, $name),
- 349. $args
- 350. );
- 351. }
- 352.
- 353. /**
- 354. * Given a base path, sets the script, helper, and filter paths relative to it
- FICHEIRO: /home/sopequeninos/views/catalogo.tpl
- LINHA: 27
- 23. <?php echo $this->partial('Cms/cookies.tpl'); ?>
- 24. <?php echo $this->partial('Cms/modal-box-generica.tpl'); ?>
- 25. <?php echo $this->partial('Cms/ajax-loader.tpl'); ?>
- 26. <div class="container">
- 27. <?php echo $this->partial('Cms/header.tpl',array('id' => $id)); ?>
- 28. </div>
- 29. <div class="clearfix"></div>
- 30. <?php /* if(isset($titulo_principal) && $titulo_principal){ ?>
- 31. <h1><?php echo $titulo_principal; ?></h1>
- 32. <?php if(isset($subtitulo) && $subtitulo){ ?>
- FICHEIRO: /home/sopequeninos/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/sopequeninos/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/sopequeninos/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 912
- 908. $name = $this->getResponseSegment();
- 909. }
- 910.
- 911. $this->getResponse()->appendBody(
- 912. $this->view->render($script),
- 913. $name
- 914. );
- 915.
- 916. $this->setNoRender();
- 917. }
- FICHEIRO: /home/sopequeninos/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 933
- 929. public function render($action = null, $name = null, $noController = null)
- 930. {
- 931. $this->setRender($action, $name, $noController);
- 932. $path = $this->getViewScript();
- 933. $this->renderScript($path, $name);
- 934. }
- 935.
- 936. /**
- 937. * Render a script based on specification variables
- 938. *
- FICHEIRO: /home/sopequeninos/library/Zend/Controller/Action/Helper/ViewRenderer.php
- LINHA: 972
- 968. */
- 969. public function postDispatch()
- 970. {
- 971. if ($this->_shouldRender()) {
- 972. $this->render();
- 973. }
- 974. }
- 975.
- 976. /**
- 977. * Should the ViewRenderer render a view script?
- FICHEIRO: /home/sopequeninos/library/Zend/Controller/Action/HelperBroker.php
- LINHA: 277
- 273. */
- 274. public function notifyPostDispatch()
- 275. {
- 276. foreach (self::getStack() as $helper) {
- 277. $helper->postDispatch();
- 278. }
- 279. }
- 280.
- 281. /**
- 282. * getHelper() - get helper by name
- FICHEIRO: /home/sopequeninos/library/Goweb/Controller/Action.php
- LINHA: 286
- 282.
- 283. // whats actually important here is that this action controller is
- 284. // shutting down, regardless of dispatching; notify the helpers of this
- 285. // state
- 286. $this->_helper->notifyPostDispatch();
- 287. }
- 288.
- 289. /**
- 290. * Obter Caracteres especiais usados em windows
- 291. *
- FICHEIRO: /home/sopequeninos/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/sopequeninos/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/sopequeninos/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/sopequeninos/public_html/index.php
- LINHA: 55
- 51. $application->initPainel();
- 52. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
- 53. $application->initLanguage($lang, true, false);
- 54. $application->initLanguageAdmin($lang, true, true);
- 55. $application->runApp();
- 56.
- 57.
- 58. /**
- 59. * Efectua a traducao de uma string.
- 60. */