Phpdoc in mvc project with codeigniter

I developed the project in Codeigniter after the MVC pattern.

This means that, for example, I have a controller called Items, which calls a model called Items_model, which receives files from the database and, finally, those files are transferred to a view called Item_view.

Now I need to document it, and I'm trying to use phpdoc.

My main question is how to connect the behavior of this function with the model and presentation in a functional way inside the explanation of the function in the controller, and not just write the names in plain text. I read about packages but don’t know how to use it properly.

Hope you can help, im very noob with phpdoc.

thanks in advance and sorry for my english.

Sverd.

+7
codeigniter phpdoc
source share
1 answer

I think PHPDoc does not support this type of integration with CodeIgniter. You should probably use PHPDoc and manually modify the generated documentation.

In any case, using CodeIgniter and correctly renaming all files, you should not have problems:

Controller -> controllers/home.php Model -> models/home.php View -> home.php 

If you indicate that you are using CodeIgniter (which uses the MVC pattern), the documentation is self explanatory.

PS:

Link "googled" (I did not read it completely):

http://codeigniter.com/forums/viewthread/58302/

+1
source share

All Articles