#5628: requestAction does not receive $this->data anymore
--------------------------------+-------------------------------------------
    Reporter:  braulio          |         Owner:          
        Type:  Bug              |        Status:  reopened
    Priority:  Medium           |     Milestone:  1.2.x.x 
   Component:  Controller       |       Version:  RC3     
    Severity:  Normal           |    Resolution:          
    Keywords:  requestAction    |   Php_version:  PHP 5   
Cake_version:  11.2.0.7692 RC3  |  
--------------------------------+-------------------------------------------
Changes (by braulio):

  * status:  closed => reopened
  * resolution:  needmoreinfo =>

Comment:

 OK.[[BR]]
 [[BR]]
 I have an add action where I create several models.[[BR]]
 [[BR]]
 Asume:[[BR]]
 $this->data[User] has user data.[[BR]]
 $this->data[Request] has request data.[[BR]]
 $this->data[Company] has company data.[[BR]]
 [[BR]]
 The code:
 {{{
 $this->Company->User->save($this->data);
 // ...
 $this->Company->Request->save($this->data);
 // ...
 if ($this->Company->save($this->data)) {
         $this->requestAction(array( 'controller' => 'users', 'action' =>
 'login' ));
         $this->Session->setFlash('Los datos de la empresa fueron
 guardados.  Complete el siguiente paso para terminar.');
         $this->redirect('/companies/add_streams');
 }
 }}}
 As you can see I save an user and then I log him in.  That used to work,
 because $this->data[User][login] and $this->data[User][password] was
 passed automatically to /users/login, but now $this->data is null (inside
 /users/login).  I used a debugger to check that $this->data was null,
 however I did not found what's different in RC3.[[BR]]
 [[BR]]
 Did I explain well the problem?

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5628#comment:2>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to