Try with a trailing slash after upload $this->redirect('/files/upload/');

On Fri, Nov 13, 2009 at 2:57 PM, [ ramesh ] <[email protected]> wrote:

> No it's not working, and upload is not redirecting back to index, i suspect
> is there anything todo with routes?
>
> On Fri, Nov 13, 2009 at 10:09 PM, wfisk <[email protected]> wrote:
>
>> It sounds like its trying to redirect to the same url.
>>
>> Try
>> $this->redirect('/files/upload');
>>
>> Or is it possible that upload() is redirecting back to '/files/index'?
>>
>> On Nov 13, 9:49 am, "[ ramesh ]" <[email protected]> wrote:
>> >    Hi John,
>> >
>> >  function index() {
>> >         //$this->pageTitle('BetterApps ยป ');
>> >         $this->redirect ( array ('action' => 'upload' ) );
>> >     }
>> >
>> >     function upload() {
>> >         $this->pageTitle = 'Upload';
>> >         $this->set ( 'uuid', uniqid () );
>> >     }
>> >
>> > when i type files/index i am getting the error message
>> >
>> > On Thu, Nov 12, 2009 at 10:52 PM, John Andersen <
>> [email protected]>wrote:
>> >
>> >
>> >
>> > > Please show the code that handles the first action together with the
>> > > redirect statement, so that we may better be able to help you.
>> > > Enjoy,
>> > >   John
>> >
>> > > On Nov 12, 7:04 pm, "[ ramesh ]" <[email protected]> wrote:
>> > > > Hi,
>> >
>> > > >    i am getting started with cakephp, my application has one
>> controller
>> > > and
>> > > > 3 actions, submitting a form on first action takes user to second
>> action
>> > > and
>> > > > finally third action. after submitting the first form firefox is
>> showing
>> > > > this message - "The page isn't redirecting properly", i have tried
>> google
>> > > > but in vain. could you help me
>> >
>> > > > the full error is
>> >
>> > > > The page isn't redirecting properly
>> >
>> > > > Firefox has detected that the server is redirecting the request for
>> this
>> > > > address in a way that will never complete.
>> >
>> > > > Thanks
>> > > > /Ramesh Sakibanda/
>> >
>> > > --
>> >
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "CakePHP" group.
>> > > To post to this group, send email to [email protected].
>> > > To unsubscribe from this group, send email to
>> > > [email protected]<cake-php%[email protected]>
>> <cake-php%[email protected]<cake-php%[email protected]>
>> >
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/cake-php?hl=.
>> >
>> > --
>> > /Ramesh Sakibanda/
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<cake-php%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=.
>>
>>
>>
>
>
> --
> /Ramesh Sakibanda/
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to