English 中文(简体)
phpDocument 无法工作
原标题:phpDocumentor Not working
  • 时间:2012-05-23 21:43:50
  •  标签:
  • php
  • phpdoc

我试图使用 phpDocumentor 启动。 我的问题是它唯一能生成 Ing, cs, js 文件夹和结构. xml 文件 。

I have currently created a folder in c:/xampp/htdocs called phpTest with 1 file index.php with a class and some docBlox comments

我用梨子和命令提示安装了phpDocument器

因此,我目前运行 cmd

cd c: /xampp/htdocs/phptest

phpDocs - d c:/xampp/htdocs/phptest - tc:/xampp/htdocs/phptest/docs :/xampp/htdocs/phptest/docs

and the only output in the docs folder is the 3 folders and structure.xml file. Should there be an index.hmtl file with all the documentation available for me to see? How do i get it to show up? Thanks This is my test index.php File im trying to document with phpDocumentor.

    <?php
/**
* File level docBlock
*@package Command
*/

/**
*This is the command class it is incharge
*Only has execute method
*@package Command
*@author Michael Booth
*@copyright 2012 bla bla
*/
abstract class Command{
/**
*keeps keys values
*@var array
*/
public var  $arrayvar = array();

/**
*executes method
*@param $int contains contextual data
*@return bool
*/
    abstract function execute($integer);
}

?>
问题回答

请确定您的 docblock 以斜线- aste- risk- asterisk 开始, 而不是 PHP 的 斜线- asrisk 常规评论语法 。 另外, 请确定您在 docblock 中至少有一些标签( 例如@ package MyPackage) 。 phpDoc 将无法看到常规评论区块, 所以这可能是为什么没有生成 。

这可能是因为 PHP 会报告您文件中的语法错误。 行

public var  $arrayvar = array();

两者中之一应

public $arrayvar = array();

var $arrayvar = array();




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签