Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/11/2012, 15:25
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Referente a PHP OP

Bueno la idea es, es OOP o no. Hay cosas que no necesariamente es OOP como por ejemplo el archivo index.php de la librería de Zend framework en el directorio de public, es así
Código PHP:
Ver original
  1. <?php
  2. // Define path to application directory
  3. defined('APPLICATION_PATH')
  4.     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  5.  
  6. // Define application environment
  7. defined('APPLICATION_ENV')
  8.     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  9.  
  10. // Ensure library/ is on include_path
  11. set_include_path(implode(PATH_SEPARATOR, array(
  12.     realpath(APPLICATION_PATH . '/../library'),
  13. )));
  14.  
  15. /** Zend_Application */
  16. require_once 'Zend/Application.php';
  17.  
  18. // Create application, bootstrap, and run
  19. $application = new Zend_Application(
  20.     APPLICATION_ENV,
  21.     APPLICATION_PATH . '/configs/application.ini'
  22. );
  23. $application->bootstrap()
  24.             ->run();
Si te fijas está creado en forma estructurada, aunque usa OOP.
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos