You're passing 'viewVars['access']' as the second parameter ($user_level) to AccessMessage(), but inside AccessMessage() you're trying to use the same viewVar again if the parameter '$user_level' was not set? $this->CustomPage->AccessMessage() is called The issue is with these two lines which are correctly implemented because they return the value for $access_message I am expecting, but they are interfering with the ability to redirect. Join them; it only takes a minute: Sign up cakephp Redirect in a controller is not working up vote 0 down vote favorite I am working on a searching module. Giving change in smaller denominations so customers can tip? http://camtronics.net/not-working/this-redirect-cakephp-not-working.html
Do electronics distributers test each component before sending them out? Why do most microwaves open from the right to the left? Armistice Day Challenge When to call non-pharmacy shops "Apotheke (pharmacy)"? Citing work with a publication year in the future Why do some banks have more than one routing number in the US? click for more info
My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages Home Tutorials Premium Resources About CakePHP Auth redirecting issue comment When working with CakePHP's Auth component, we had an How do unlimited vacation days work? Disable both in your AppController to check if the problem is still present If the problem is still present, it is possible that headers are being sent (as mentioned before), but
Do you see white screen, or are you still in the view for Articles/add? But still no error message for redirect... Coworker throwing cigarettes out of a car, I criticized it and now HR is involved how does xcolor's \color work? This could prevent the headers to be set, thus preventing the redirect to work.
Mimsy were the Borogoves - why is "mimsy" an adjective? Cakephp Redirect Not Working On Server Which oil was used by Robert A. How to make a good diagram arrow MathSciNet review alert? When I upload it to server with php 188.8.131.52 all redirects stop working - when the ->redirect(..) is executed script stops working - it acts like there was die; instead of
How? How do we know that Kalendae is the first day of a month? asked 3 years ago viewed 2647 times active 12 months ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Related 5771How do I redirect to another page in jQuery?1How can What are some ways that fast, long-distance communications can exist without needing to have electronic radios?
There are many questions regarding this situation here on StackOverflow, for example: How to fix "Headers already sent" error in PHP Note; in CakePHP its good practice to put a return more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Cakephp Redirect Not Working Blank Page Giving change in smaller denominations so customers can tip? Cakephp 3 Redirect Not Working I.e. $this->redirect(array('action' => 'index')); is also not working. –Jordy Feb 13 '12 at 15:41 4 if there is NO redirect at all you probably echo sth too soon (in the
Word for beading of old cloth Why do some banks have more than one routing number in the US? http://camtronics.net/not-working/301-page-redirect-not-working.html Why Would the President-elect have a Transition Visit before December 19? Example: http://www.drukwerkprijsvergelijk.nl/posts/ Please help this little kittens, we're desperate. cakephp redirect share|improve this question edited Jan 27 '15 at 13:30 asked Jan 27 '15 at 13:01 Aryan 906636 add a comment| 1 Answer 1 active oldest votes up vote 0
Do I need a transit visa to travel through Beijing to Melbourne AU? Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront? with the line added it'll stay on a empty white page. Source When to call non-pharmacy shops "Apotheke (pharmacy)"?
Alternatively turn on PHP error reporting. –Khôi May 11 '12 at 11:30 How I can do it? Join them; it only takes a minute: Sign up Cakephp controller action does not redirect on live server up vote 0 down vote favorite I have a action to save data If you are having this problem hope my hints help you.
Find the rate of change at a point on a polynomial What is the meaning of ''cry oneself"? Do I need a transit visa to travel through Beijing to Melbourne AU? share|improve this answer answered Oct 3 '13 at 11:32 Martin Bean 18k866135 Thanks Martin for your efforts. have a peek here THANK YOU SO MUCH!! –iwj145 Mar 1 '13 at 19:46 I posted it as an answer, glad I could help! –thaJeztah Mar 1 '13 at 21:09 add a comment|
This will cause a 'headers already sent' warning, and the browser will not redirect. What does the actual path of air within a turbojet engine look like? You can also try specifying the controller in the url array: $this->redirect(array('controller' => 'posts', 'action' => 'index')); share|improve this answer answered Feb 13 '12 at 16:28 swiecki 2,35021518 add a comment| After user succesfully logins in, we want to record its login time.
And maybe even check if it works with calling $accessModel->findById($required_level, array('access_message'))... DS, 0777); } $uniq = mt_rand(); move_uploaded_file($pic, WWW_ROOT . 'img' . There are a few possible causes; there is an error somewhere else in your code, but cake php doesn't output the error message because debugging is disabled. Is adding the ‘tbl’ prefix to table names really a problem?
Word for beading of old cloth Why do most microwaves open from the right to the left? I changed the app:uses to the three separate lines. php mysql cakephp redirect share|improve this question asked Feb 13 '12 at 15:34 Jordy 89721228 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote accepted you more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed