How to redirect to another controller/function. From html you can do
something like:

<?php echo $html->link('Message',
array('controller'=>'x','action'=>'y',$parm); ?>

How can I do this from js? window.location is enough?

Thanks

On Jun 4, 10:43 am, calvin <[email protected]> wrote:
> Are you asking how to redirect to a different page in JavaScript?
> That's not really Cake-related, but it's window.location = 'your new
> page'.
>
> On Jun 3, 9:49 pm, "[-Cheluis-]" <[email protected]> wrote:
>
>
>
> > Hi! I was wondering if there is a way to redirect from one action to
> > another via javascript. I want to do some validations and then,
> > redirect the flow to one specific action.
>
> > Any ideas?
>
> > thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to