hi! tried
$this->view_names($param1, $param2, $param3); ? hope i helped. 2009/4/16 bondo <[email protected]> > > I have a need to redirect from one action to another action in the > same controller and not have the URL change. I think I can use > setAction to accomplish this rather than redirect but I have a couple > of questions. > > 1. I need to pass 3 parameters but I've only seen examples using 1 > parameter. Is the following code correct? > > function index() { > $param1 = $_GET['param1']; > $param2 = $_GET['param2']; > $param3 = $_GET['param3']; > > if ($param1 == 'x') > $this->setAction('view_names', $param1, $param2, $param3); > > //other things here > $c = 0; > } > > function view_names($a, $b, $c) { > //code here > } > > 2. When setAction is executed above, does the code that comes after > also executed or do I need an exit(), similar to how redirect can be > made to work? > > Thx. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
