Ver Mensaje Individual
  #11 (permalink)  
Antiguo 20/02/2003, 15:38
Cluster
O_O
 
Fecha de Ingreso: enero-2002
Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 22 años, 3 meses
Puntos: 129
El problemon q tienes con PHPdoc es de rutas .. no se las estas indicando correctamente.

Si vas a usar direcciones absolutas debes indicar la ruta completa:
c:\nose\veteasasber\PHPdoc\

o usas simplemente direcciones relativas.

Ejemplo:

Teniendo una estructura tipo:

(del raiz de mi "Documen root")
\PHPdoc (aquí tengo al PHPdoc y sus scripts ...)
\pruebasphpdoc (aquí meto las classes q voy a documentar)

Y .. usando el index.php q trae el propio PHPdoc:

Código PHP:
<?php
// Ajusto el "time out" (tiempo maximo de ejecucion) a "infinito tiempo"
// algunas classes complejas le puede demorar un buen tiempo ..
set_time_limit(0);

$start time();
        
// WARNING: long runtimes! Make modifications
// to the php[3].ini if neccessary. A P3-500
// needs slightly more than 30 seconds to
// document phpdoc itself.
            
// Directory with include files
define("PHPDOC_INCLUDE_DIR""./");
// Important: set this to the Linebreak sign of your system!
define("PHPDOC_LINEBREAK""\r\n");

// main PHPDoc Include File
include("./prepend.php");        
        
$doc = new Phpdoc;
            
// Sets the name of your application.
// The name of the application gets used in many default templates.
$doc->setApplication("Cluster Repository ;)");
                
// directory where your source files reside:
$doc->setSourceDirectory("../pruebasphpdoc/");
                
// save the generated docs here:
$doc->setTarget("../pruebasphpdoc/docs/");
                
// use these templates:
$doc->setTemplateDirectory("./renderer/html/templates/");
                
// source files have one of these suffixes:
$doc->setSourceFileSuffix( array ("php""inc") );
        
// parse and generate the xml files
$doc->parse();
                
// turn xml in to html using templates
$doc->render();
                
printf("%d seconds needed\n\n."time() - $start);
?>
Por lo demas .. ejecutas el inde.php y en la carpeta docs de pruebasphpdoc veras los XML q genera junto con sus .html .. Pero antes TU debes de haber puesto los comentarios a cada método para q lo genere el PHPdoc ..

Un saludo,