#5933: Router Prefix Where The Form Is Edited
--------------------------+-------------------------------------------------
    Reporter:  ahuino1    |          Type:  Bug    
      Status:  new        |      Priority:  Medium 
   Milestone:  1.2.x.x    |     Component:  General
     Version:  1.2 Final  |      Severity:  Normal 
    Keywords:             |   Php_version:  n/a    
Cake_version:             |  
--------------------------+-------------------------------------------------
 I got a new problem in case of edit

 echo $form->create(null, array('url' =>  array('controller' =>
 'blogs', 'action' => 'education_index', 'education' => true), 'name'
 => 'blogform'));

 it's generating url : <form name="blogform" id="BlogIndexForm"
 method="post" action="/project_name/education/blogs/index/">

 this is working fine but in case of edit it's generating unexpected
 result

 echo $form->create(null, array('url' =>  array('controller' =>
 'blogs', 'action' => 'education_edit', 'education' => true, 'id' =>
 '12'), 'name' => 'blogform'));

  <form name="blogform" id="BlogeditForm" method="post" action="/
 project_name/blogs/education_edit/12/education:1/">

 action : /project_name/blogs/education_edit/12/education:1/ is
 unexpected...it must be /project_name/education/blogs/edit/12/

 I debug this problem and find that it's due to sending $this->data
 from controller in edit case.

 why is it happening in edit case ?

 Is there any solution for this?

 Thanks

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5933>
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
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to