To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #234 (new enhancement)

Opened 22 months ago

Last modified 17 months ago

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.

Change History

Changed 21 months ago by boutell

  • milestone changed from 1.4 to 1.5

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell
Note: See TracTickets for help on using tickets.