Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/09/2011, 16:26
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 10 meses
Puntos: 793
Respuesta: Error al intentar abrir página

Cita:
Iniciado por privatefta Ver Mensaje
amigo tienes que cerrarlo al final con

?>
La etiqueta de cierre en PHP es opcional y entre los estándares de zend dice esto:

Cita:
Para archivos que contengan únicamente código PHP, la etiqueta de cierre ("?>") no está permitida.
Sobre el error está en este método pero sabrá de donde viene realmente el error, porque no conozco 100% joomla. Intenta instalar todo de cero a ver como te va, siguiendo alguno de los miles de tutoriales que hay en internet:

Código PHP:
Ver original
  1. public static function discover($classPrefix, $parentPath, $force = true)
  2.     {
  3.         // Ignore the operation if the folder doesn't exist.
  4.         if (is_dir($parentPath)) {
  5.  
  6.             // Open the folder.
  7.             $d = dir($parentPath);
  8.  
  9.             // Iterate through the folder contents to search for input classes.
  10.             while (false !== ($entry = $d->read())) //AQUÍ MARCA EL ERROR
  11.             {
  12.                 // Only load for php files.
  13.                 if (file_exists($parentPath.'/'.$entry) && (substr($entry, strrpos($entry, '.') + 1) == 'php')) {
  14.  
  15.                     // Get the class name and full path for each file.
  16.                     $class = strtolower($classPrefix.preg_replace('#\.[^.]*$#', '', $entry));
  17.                     $path  = $parentPath.'/'.$entry;
  18.  
  19.                     // Register the class with the autoloader if not already registered or the force flag is set.
  20.                     if (empty(self::$_classes[$class]) || $force) {
  21.                         JLoader::register($class, $path);
  22.                     }
  23.                 }
  24.             }
  25.  
  26.             // Close the folder.
  27.             $d->close();
  28.         }
  29.     }

Saludos.
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP