#6315: Remove requirement for trailing slash from the prefix option of
Router::mapResources()
--------------------------+-------------------------------------------------
Reporter: dho | Type: Bug
Status: new | Priority: Medium
Milestone: 1.3.x.x | Component: Routing/Dispatcher
Version: 1.2 Final | Severity: Normal
Keywords: | Php_version: n/a
Cake_version: |
--------------------------+-------------------------------------------------
Currently, you have to specify a prefix in the following way:
{{{
Router::mapResources('Posts', array('prefix' => '/example/'));
}}}
It's not intuitive that you have to add a trailing slash to the prefix,
because you assume this slash is already part of the non-prefixed url
(non-prefixed url: "/posts", prefixed url: "/example/posts"). Hence it
would make sense to drop the requirement for this trailing slash, so you
can specify a prefix in the following way:
{{{
Router::mapResources('Posts', array('prefix' => '/example'));
}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/6315>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---