Re: Using setAction
hi! tried $this-view_names($param1, $param2, $param3); ? hope i helped. 2009/4/16 bondo kevd...@gmail.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: IN statement in Findall
hi! $data = $this-Blog-findAll(array(' Blog.id' = array(7, 8, 9),array('Blog.blogId','Blog. blogImage','Blog.blogTitle')); 2009/4/9 kaushik kaushikwo...@gmail.com How to use not 'IN' in condition in finall()? $data = $this-Blog-findAll(array('Blog.id' = '5'),array ('Blog.blogId','Blog.blogImage','Blog.blogTitle')); I want to change it so that it finds out id IN (7,8,9). How to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---