#5957: Allow to modify the pass argument of an action in the AppController
---------------------------+------------------------------------------------
    Reporter:  guiguch     |          Type:  Enhancement
      Status:  new         |      Priority:  Medium     
   Milestone:  1.2.x.x     |     Component:  Controller 
     Version:  1.2 Final   |      Severity:  Normal     
    Keywords:              |   Php_version:  n/a        
Cake_version:  1.2.0.7962  |  
---------------------------+------------------------------------------------
 I have to be able to modify the pass args of an action depending on a
 context. It was working on the version 1.2.0 RC2. It's no more working on
 the 1.2.0 final. I'va to modify the Dispatcher to make the params passed
 to the _invoke method an attribut of the instance. And use this property
 instread of the passed parameter.

 I've added on line 225 the following line:

 {{{
 // Change to enable the modification of the parameters in a beforeFilter.
 $controller->params = $params ;
 }}}

 and replace every call of $params in this method by $this->params.

 I'vent checked if there are any issue due to this modification.

 Thanks for your support.

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

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

Reply via email to