Just do not redirect in view. Redirection must be done in controller. On Jun 25, 3:16 am, Prabha Vathi <[email protected]> wrote: > Hi, > > I have two actions in post controller > > view and random > > in random i render view action. But in view action i check the id for empty. > If it is empty then i redirect it to root of the site. > so, random is always getting redirected to home page. > > If i use different view file for random action, then i duplicate. Is there > any other way? > > Thanks
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
