Ticket #234 (new enhancement)
Evaluate Pedro's patch to avoid the use of self:: and use routes by name
| Reported by: | boutell | Owned by: | tboutell |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5.2 |
| Component: | Documentation | Version: | 1.0 |
| Keywords: | Cc: | ||
| Symfony version: | 1.4 |
Description
pablo <pedrobc@…>
I'm using Apostrophe in a project and I've patched v1.0.11 (sandbox)
so that it *only* uses route names like url_for('@a_media') instead of
url_for('a/media').
This allows me to customize the CMS routes and not affect the other
routes in the application.
I've also touched the class PluginaPage? changing all the references
from self to the top class name, aPageTable, so the static methods
like queryWithSlots can be easily overloaded in lib/model/doctrine/
apostrophePlugin/aPageTable.class.php.
If you're interested in the patch you can download it from here:
http://www.melimato.com/public/route_names_and_top_class_ref.patch
Thanks and please don't hesitate in contacting me if you have any
questions / requests.
Pedro.

