#6011: scaffolding doesn't support reverse routing
-------------------------------+--------------------------------------------
    Reporter:  phoque          |          Type:  Bug     
      Status:  new             |      Priority:  Medium  
   Milestone:  1.2.x.x         |     Component:  Scaffold
     Version:  1.2 Final       |      Severity:  Normal  
    Keywords:  Scaffold, form  |   Php_version:  PHP 5   
Cake_version:  1.2.0.7962      |  
-------------------------------+--------------------------------------------
 When using scaffolding in combination with custom Routes, the returned
 {{{form action}}}-attributes of both add- and edit-forms do not point to
 the Route currently in use but assume that there is a default
 {{{/:controller/:action/*}}}-route
 ----
 Example:[[BR]]
 Router-configuration
 {{{
 Router::connect('/blog/:action/*', array('controller'=>'posts'));
 Router::connect('/*', array('controller'=>'pages', 'action'=>'index'));
 }}}
 (default {{{/:controller/:action/*}}}-route is never reached)

 in this case both
 {{{
 $html->link('Test', array('controller'=>'posts',
 'action'=>'view','2'));[[BR]]
 $form->create();
 }}}
 return {{{href="/blog/view/2"}}} or {{{action="/blog/add"}}} resp.
 correctly when being used in a custom View.


 However {{{$form-create();}}} in ''cake/libs/view/scaffolds/edit.ctp''
 points to "/posts/add".
 This obviously breaks the ability of using scaffolding altogether in such
 cases.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6011>
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 tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to