Questions

How to redirect the one page to another page in cake php

Hi ,

I need to redirect the one page to another page using the cake php

now am using the test controller function as the add i need to redirect to test2 edit function how can i do??


ans :

in the test controller you write the bellow code :




function add(){
$this->redirect('/test2/edit');
}


Your Answers

Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code:

Answers

No Answers..