Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.
Popular code excerpts may be moved to "Code Snippets" by the moderators.
I have a lot of JS and CSS files needed to be loaded in a specific order based on their dependencies. I.e. an Ext.ex.grid.Panel extends the Ext.grid.Panel, so I need to load Ext.grid.Panel.js prior Ext.ex.grid.Panel.js in my HTML page. I have similar problems with CSS files - "overriding" styles should be loaded after the "original" ones.
The solution
I use PhpDoc like annotations in files that have some requirements. E.g.:
It would be very helpful to post some examples from the PHP side, because just annotations show almost nothing, at least for me, and I could not find any examples on the project website. In addition, I think you should use PHP 5.3 namespaces, instead of the old underscore notation. More and more projects adapt it, and so should you.