Bring PHPdoc to include CakePHP.ctp files

I am documenting my CakePHP application using PHPdocumentor . As you probably know, after the CakePHP convention, the views are contained in .ctp files (for example, app / views / addresses / index.ctp), which are basically normal PHP files with only the file extension changed. PHPdocumentor only recognizes .php files, and I cannot find a parameter in the configuration file to tell it about .ctp files. This section is closest to what I want:

;; comma-separated list of files to parse
;; legal values: paths separated by commas
;filename = /path/to/file1,/path/to/file2,fileincurrentdirectory

But, as it seems, it does not activate such wildcards as *.php, and I really do not want to write a list of 50 view files to this configuration file (if there is no better solution). Is there any way to configure phpdoc globally to include .ctp files, or do I need to change this to a somewhat hacky one, somewhere in the phpdoc source?

+3
source share
2 answers

You must update the [_phpDocumentor_phpfile_exts] section of your phpDocumentor.ini file to include any additional file extensions that you want phpDocumentor to process.

+6
source

; . , views , *.php, , .

0

Source: https://habr.com/ru/post/1772125/


All Articles