Hi,
I trying out CGridView widget in my application. When user click on view icon, it will be directed to the controller, where I then redirect them to other pages depending on their id. Why is it that CController->redirect prompted error and CController->forward do works?
Btw I've got header cannot be modified error. The problem is I backtrack, I haven't render or echo anything before the redirect.
Page 1 of 1
controller redirect and foward? [solved]
#2
Posted 14 May 2010 - 05:01 AM
If you tell us more about the error, maybe we could help...
Also check your files for spaces before <?php on top.
Also check your files for spaces before <?php on top.
#3
Posted 16 May 2010 - 09:21 PM
Thanks Mike! You're right. I save the php file in a wrong format. I save it as UTF-8 when I am required to save as UTF-8 without BOM.
#4
Posted 16 May 2010 - 10:38 PM
i think i have the same problem,
how can we redirect to the last page in cgridview(admin) after create/update some record?
please show me the code.
regards.
how can we redirect to the last page in cgridview(admin) after create/update some record?
please show me the code.
regards.
Share this topic:
Page 1 of 1

Help














