Re: $this-redirect not working

2014-09-07 Thread vinit sahasrabudhe
First delete all the temp files from /app/tmp/cache and /app/tmp/persistent folders if you have created any new fields in database table. Secondly turn on the debug mode in core.php file and then try again. Thanks. Vinit Sahasrabudhe On 07-Sep-2014 8:07 AM, Techinfocomp

Re: $this-redirect not working

2014-09-07 Thread Techinfocomp.com
Thanks Friends, It's Resolved. There was a whitespace in my some model. As soon as i removed, it start working again. Thanks a lot. Now i have an experience with this kind of error. On Sunday, March 11, 2012 7:24:30 AM UTC+5:30, Brian Bowler wrote: So I have this function where the user can

Re: $this-redirect not working

2014-09-06 Thread Techinfocomp
Why we not suppose to include closing TAG (?) make sure all php files do not have closing ? ? On Monday, June 3, 2013 9:06:03 AM UTC+5:30, Cheng Ka Teng wrote: if there is NO redirect at all you probably echo sth too soon and therefore headers are already sent and your redirect cannot work

Re: $this-redirect not working

2014-09-06 Thread euromark
Because it is unnecessary and can easily result in avoidable whitespace errors. Am Sonntag, 7. September 2014 04:18:06 UTC+2 schrieb Techinfocomp: Why we not suppose to include closing TAG (?) make sure all php files do not have closing ? ? On Monday, June 3, 2013 9:06:03 AM UTC+5:30,

Re: $this-redirect not working

2014-09-06 Thread Techinfocomp
I did that but still i am getting the blank page while redirecting eg: $this-redirect('/admin_cms_travels'); I am using CakePHP 2.5.4 Any suggestion ? On Sunday, September 7, 2014 7:49:02 AM UTC+5:30, euromark wrote: Because it is unnecessary and can easily result in avoidable whitespace

Re: redirect not working

2014-05-30 Thread Andrew Barry
This solved the problem as I need to specify the redirect in the login I also tried in the beforefilter without success public function login() { if ($this-request-is('post')) { if ($this-Auth-login()) { return $this-redirect(array('controller' = 'posts','action' =

Re: redirect not working

2014-05-30 Thread Andrew Barry
Although the above fixed it , the issue remains the below code didnt work as expected, in fact it doesnt work. why? class AppController extends Controller { public $components = array( 'Session', 'Auth' = array( 'loginRedirect' = array('controller' = 'posts', 'action' =

Re: $this-redirect not working

2013-06-04 Thread Cheng Ka Teng
if there is NO redirect at all you probably echo sth too soon and therefore headers are already sent and your redirect cannot work anymore . Please check the files inside app/controller, make sure all php files do not have closing ? On Sunday, March 11, 2012 9:54:30 AM UTC+8, Brian Bowler

Re: $this-redirect not working

2012-03-11 Thread vijay kumbhar
Yes try the $this-redirect($this-referer()); http://book.cakephp.org/1.2/view/430/referer Thanks, Vijay On Mar 11, 10:01 am, romel javier gomez herrera bmxquiksilver7...@gmail.com wrote: try with this  $this-redirect($this-referer()); El 10 de marzo de 2012 21:24, Brian Bowler

Re: $this-redirect not working

2012-03-11 Thread Brian Bowler
@Geore, I have tried taking it out and what happens is that it goes to the '/formulas/instructions/' page minus the ID variables. I assume this happens because this is happening because of POST. I either want to redirect to a different page such as 'formulas/manage' (for example) or redirect to

$this-redirect not working

2012-03-10 Thread Brian Bowler
So I have this function where the user can add the weight to materials and save them. However after the updateAll, $this-redirect doesn't work at all and the result shows up with a blank page with nothing in the source. In an ideal world I would have it redirect to a different page but at a

Re: $this-redirect not working

2012-03-10 Thread George M. Behr
Without the redirect Cake should take you back to the 'instructions' view. Have you tried removing the redirect line to see what happens (assuming the instructions action you have here is in the instructions controller)? George On Sat, Mar 10, 2012 at 8:54 PM, Brian Bowler bbowle...@gmail.com

Re: $this-redirect not working

2012-03-10 Thread romel javier gomez herrera
try with this $this-redirect($this-referer()); El 10 de marzo de 2012 21:24, Brian Bowler bbowle...@gmail.com escribió: So I have this function where the user can add the weight to materials and save them. However after the updateAll, $this-redirect doesn't work at all and the result shows

Re: action redirect not working

2010-11-21 Thread Amit Badkas
Hi, Is there any space or empty line before '?php' at the line 1? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Nov 18, 2010 at 9:54 AM, Briko03 nathanrlar...@gmail.com wrote: /app/controllers/results_controller.php:1 Check out the new CakePHP Questions site

action redirect not working

2010-11-17 Thread Briko03
I have an form/action that I am trying to get to redirect based on submitted values For some reason when I try to get my form to redirect to my url I get: Warning (2): Cannot modify header information - headers already sent by CORE/cake/libs/controller/controller.php, line 746 My goal is

Re: action redirect not working

2010-11-17 Thread Miles J
So whats line 746? It seems you are echoing code before the redirect somewhere. On Nov 17, 5:28 pm, Briko03 nathanrlar...@gmail.com wrote: I have an form/action that I am trying to get to redirect based on submitted values For some reason when I try to get my form to redirect to my url I

Re: action redirect not working

2010-11-17 Thread Briko03
Not sure what you mean by that. On Nov 17, 9:54 pm, Miles J mileswjohn...@gmail.com wrote: So whats line 746? It seems you are echoing code before the redirect somewhere. On Nov 17, 5:28 pm, Briko03 nathanrlar...@gmail.com wrote: I have an form/action that I am trying to get to redirect

Re: action redirect not working

2010-11-17 Thread ProFire
You probably need to check your code. Somewhere before PHP processes the redirect, there is an echo somewhere. If my guess is right, you have a debugging message before your redirect. Have a look at your Controller::beforeFilter() too in your controller and AppController. Even your model too if

Re: action redirect not working

2010-11-17 Thread cricket
On Wed, Nov 17, 2010 at 10:17 PM, Briko03 nathanrlar...@gmail.com wrote: I dont have a line 746 anywhere. From the error msg. But it's in Cake's Controller code. Probably the redirect() method, so not likely to tell you much. You probably have whitespace after the closing php tag (?) in a

Re: action redirect not working

2010-11-17 Thread Briko03
This is my model: ?php class result extends AppModel{ var $name='Result'; } -- The entire action ( i didnt include the whole thing before) function findrace() {$this-set('title_for_layout','Connecticut Industrial Ski Council - Results - Find by Person'); //Set

Re: action redirect not working

2010-11-17 Thread Dr. Loboto
Read FULL error message. It tells where output occurs in the ... part posted by you. On Nov 18, 9:17 am, Briko03 nathanrlar...@gmail.com wrote: I dont have a line 746 anywhere. On Nov 17, 10:16 pm, Briko03 nathanrlar...@gmail.com wrote: Not sure what you mean by that. On Nov

Re: action redirect not working

2010-11-17 Thread Briko03
/app/controllers/results_controller.php:1 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

Re: redirect not working

2010-10-06 Thread Akeda Bagus
On Thu, Oct 7, 2010 at 4:17 AM, a17s godlyfr...@googlemail.com wrote: Hello, got a problem with using cakephp redirect. Get an error saying header already been set. Please how can I redirect to another action after processing a post. My error keeps pointing to the cake/ basic.php, and the

Re: redirect not working

2010-10-06 Thread Jeremy Burns | Class Outfit
You are outputting text to the screen before you do the redirect, so it won't work. Rather than doing (and I am guessing what you are doing here) this: echo Congratulations, your new account has been successfully created; $this-redirect...etc ...place the text into the session flash:

Re: $this-redirect('/') not working :(

2006-08-04 Thread olle
Come to think of it, you could remove the final ? as well. PHP can parse files that do not end in ?. And without the final ? you can never output accidental whitespace. Here is what the PHP manual says: Note: The closing tag of a PHP block at the end of a file is optional, and in some cases

$this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
$this-redirect('/controller/action'); not working :( i always have blank page :/ DEBUG 0,1,2.. no matters. any ideas? $this-flash() working (with message and redirect after x seconds) but $this-redirect('/') always gives blank page :( --~--~-~--~~~---~--~~

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson
On Aug 2, 2006, at 10:29 AM, [EMAIL PROTECTED] wrote: $this-redirect('/controller/action'); not working :( i always have blank page :/ DEBUG 0,1,2.. no matters. any ideas? $this-flash() working (with message and redirect after x seconds) but $this-redirect('/') always gives blank page

Re: $this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
i write custom error handler (redirect to main page after e404) from here: http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/ and then i have blank page so i write only redirect to test what's going on and then also i have blank page: class HomeController extends

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson (_psychic_)
On Aug 2, 2006, at 10:39 AM, [EMAIL PROTECTED] wrote: and then i call it http://site.com/home/re and i have blank page instead of /users/login or whatever else. If you turn up DEBUG to 3 do you get any messages? What happens when you view source? Is there a view for that action? Anything

Re: $this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
If you turn up DEBUG to 3 do you get any messages? Warning: Cannot modify header information - headers already sent by (output started at C:\www\workspace\site.com\app\config\core.php:149) in C:\www\workspace\site.com\cake\libs\controller\controller.php on line 396 What happens when you view

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson (_psychic_)
On Aug 2, 2006, at 10:56 AM, [EMAIL PROTECTED] wrote: If you turn up DEBUG to 3 do you get any messages? Warning: Cannot modify header information - headers already sent by (output started at C:\www\workspace\site.com\app\config\core.php:149) in