SIngle Page Controller Redirect
Permalink
Hi,
I've a single page structured like that :
I would like to redirectwww.www.mywebsite.com/profile/demo/... towww.www.mywebsite.com/profile/demo/search/...
To do that I have this code inside demo/controller.php
But redirection does not work...
The single page are correctly registered throught the dashboard > single pages.
Thanks
moosh
I've a single page structured like that :
/controller/profile/demo/controller.php /controller/profile/demo/search.php
I would like to redirectwww.www.mywebsite.com/profile/demo/... towww.www.mywebsite.com/profile/demo/search/...
To do that I have this code inside demo/controller.php
But redirection does not work...
The single page are correctly registered throught the dashboard > single pages.
Thanks
moosh
Thank you, but it does not work
I'm not sure what happen there, but I've used the same piece of code many times in different packages. It works perfectly there.
Maybe the problem is somewhere else. Try to debug it by the die statement in your controller and check whether it shows anything.
Rony
Maybe the problem is somewhere else. Try to debug it by the die statement in your controller and check whether it shows anything.
Rony
After creating a view.php single page and refresh this single page in Dashboard > Single page, it work...
So, a view.php file is required.
Thank you for your help
moosh
So, a view.php file is required.
Thank you for your help
moosh
Ahhh! you didn't have view for controller. You should have it always to render.
Rony
Rony
Hope this helps!
Rony