Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bring PHPdoc to include CakePHP .ctp files

I'm documenting my CakePHP app using PHPdocumentor. As you might know, after CakePHP convention, the views are contained in .ctp files (e.g. app/views/addresses/index.ctp), which are basically normal PHP files just with a changed file extension. PHPdocumentor only recognizes .php files, and I cannot find an option in the config file to let it know of the .ctp files. THis section come 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 doesn't acceppt wildcards like *.php, and I really don't want to write a list of my 50 view files into this config file (unless there's a better solution). Is there a possibility to configurate phpdoc globally to include .ctp files or do I have to change this in a somewhat hackish was somewhere in the phpdoc source?

like image 971
joni Avatar asked Dec 05 '25 11:12

joni


1 Answers

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

like image 70
ashnazg Avatar answered Dec 08 '25 01:12

ashnazg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!