#6357: requestAction with 2 dimensions array generates php notice from
array_combine
-----------------------------------+----------------------------------------
    Reporter:  iwat                |         Owner:           
        Type:  Bug                 |        Status:  new      
    Priority:  High                |     Milestone:  1.2.x.x  
   Component:  Routing/Dispatcher  |       Version:  1.2 Final
    Severity:  Normal              |    Resolution:           
    Keywords:                      |   Php_version:  n/a      
Cake_version:  1.2.3.8166          |  
-----------------------------------+----------------------------------------
Comment (by iwat):

 Oops, I think I found a way from the document and the ticket #6345.

 {{{
 # echo $this->requestAction(array('controller' => 'articles', 'action' =>
 'view'), array('pass' => array(5)));
 }}}

 When using an array url in conjunction with requestAction() you must
 specify all parameters that you will need in the requested action. This
 includes parameters like $this->data and $this->params['form']. In
 addition to passing all required parameters, named and pass parameters
 must be done in the second array as seen above.
 [[BR]][[BR]]
 If that's so, please close this ticket. Sorry for wasting your time.

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