A good way to document controller actions in PHPDoc?

I am trying to find a good way to document controller actions in php mvc framework. It is very important to me that there is a way to bind the URL to the action there, my problem is that I cannot find a way to fit into the phpdoc scheme.

+6
source share
2 answers

I do not understand your problem / question. You can put everything you want into the phpdoc block, including the corresponding URL for the controller action (you can even use markup if you want):

/**
 * This is some foo action.
 *
 * URL: /foo/bar/baz
 */
public function fooAction(/* ... */) {
    // ...
}

, @url - , -ct , phpdoc, , , :

# Will specify custom tag @url
phpdoc -ct url ...
+3

, .

doxygen. Doxygen , @action_url, HTML, pdf, ..

0

All Articles