Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.85 KB | None | 0 0
  1. --- index.php   2011-02-06 23:08:26.000000000 -0200
  2. +++ index.new.php   2011-02-09 00:09:33.433891000 -0200
  3. @@ -14,7 +14,7 @@
  4.  
  5.  
  6.  ## DEFININDO CAMINHO PARA INCLUDE ##
  7. -    set_include_path('/var/www/dexdev/sites/dexdev/library'.PATH_SEPARATOR.get_include_path());
  8. +//    set_include_path('/var/www/dexdev/sites/dexdev/library'.PATH_SEPARATOR.get_include_path());
  9.  
  10.      // Adiciona o autoloader do Zend Framework
  11.  
  12. @@ -26,12 +26,12 @@
  13.      
  14.  ## INSTANCIANDO O CONTROLER ##
  15.      Zend_Loader::loadClass( 'Zend_Controller_Front' );
  16. -    Zend_Registry::set( 'view', $view );
  17.      
  18.  
  19.  ## VIEW
  20.     $view = new Zend_View();
  21. -   $view->setScriptPath('');                        
  22. +    Zend_Registry::set( 'view', $view );
  23. +   $view->setScriptPath('');
  24.  
  25.  ##includes##
  26.      $view->header     = '/var/www/dexdev/sistemas/compracoletiva/includes/header.html';
  27. @@ -46,11 +46,11 @@
  28.      $Controlador = Zend_Controller_Front::getInstance();
  29.      $Controlador->throwExceptions(true);
  30.      $Controlador->addModuleDirectory('application');
  31. -    $Controlador->setBaseUrl('/');
  32. +//    $Controlador->setBaseUrl('/');
  33.      
  34.      $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
  35. -    $viewRenderer->setViewBasePathSpec(dirname(__FILE__))
  36. -        ->setViewScriptPathSpec('application/:module/views/scripts/:controller/:action.html')
  37. +    $viewRenderer
  38. +        ->setViewScriptPathSpec(':controller/:action.html')
  39.          ->setViewScriptPathNoControllerSpec(':action.html')
  40.          ->setViewSuffix('html');
  41.      Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
  42. @@ -72,8 +72,7 @@
  43.      }
  44.      catch (Exception $e)
  45.      {
  46. -        echo dirname(__FILE__);
  47. -        echo "<br>";
  48. +        header('Content-type: text/plain');
  49.          echo $e;
  50.          //$_redirector = new Zend_Controller_Action_Helper_Redirector();
  51.          //$url = '/erro';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement