Delay?

2009-10-11 Thread Dave Maharaj :: WidePixels.com
Not sure if this is even possible. Looked everywhere and tried many
different things but still no luck.
 
I am editing an image using jCrop, sumbit the request AJAX and the plan is
to have the thumbnail update with the newly edited version.
I have it all running fine except when i submit the form data its processed
faster than the image editing. So the returned updated image is the same one
that was there before. The form sends the info and says ok return the ajax
view now but its getting the original image because I guess the new one has
not been processed yet or still in the process. I have tried delaying the
form but that does nothing, tried deleteing the old image from the server
then replace it with the newly edited one, nocache.
 
Does anyone have any ideas that i have not tried?
 
Thanks
 
Dave

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



Re: Bakery article publishing delay

2009-08-14 Thread JamesF

thanks I didn't know that they did that much editing/testing.

On Aug 14, 3:31 pm, Miles J  wrote:
> Well how many of those articles/code submissions do you think they
> have to go through? They must proofread them all and test any code
> that is given, and they will comment on it if it needs improvement.
> Some of mine took weeks till it was reviewed, so just be patient and
> they will get to it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bakery article publishing delay

2009-08-14 Thread Miles J

Well how many of those articles/code submissions do you think they
have to go through? They must proofread them all and test any code
that is given, and they will comment on it if it needs improvement.
Some of mine took weeks till it was reviewed, so just be patient and
they will get to it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bakery article publishing delay

2009-08-14 Thread JamesF

i recently published an article to the bakery, but it has been a few
days now and I'm wondering if this is typical for new articles. Anyone
have any experience with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: delay or wait?

2009-01-16 Thread forrestgump

Thanks a Bunch!!! again Grigri...tht helped :)

On Jan 16, 4:37 pm, grigri  wrote:
> All databse queries are executed synchronously - i.e. once you call
> `find()`, the next line of code will not execute until the find has
> been completed, the data fetched and formatted.
>
> If the returned data is not there, then there must be a problem with
> your query. Using the sql query log (debug=2), check the sql and
> results. Execute exactly the same sql directly in your database (mysql
> console, phpminiadmin, phpPgAdmin, ...) and ensure that the results
> are correct.
>
> hth
> grigri
>
> On Jan 16, 10:45 am, forrestgump  wrote:
>
> > Was wondering if there is a delay function i could use in my
> > controller , to force cake to wait for a find() function to execute...
> > This is the situation iam in
>
> >  $temp=$this->Invno->find('all',array('conditions'=>''.
> > $conditions,'fields'=>array('id')));
> >  $this->data['invno_id']=0;
> > $this->data['invno_id']=$temp[0]['Invno']['id'];
>
> > Now i wish to execute this statement only after $this->data
> > ['invno_id'] had been set
> > $this->Invoice->save($this->data)
>
> > but for some reason there is an observed delay and the program just
> > halts
>
> > i did this to check if there is a delay--
> > $temp=$this->Invno->find('all',array('conditions'=>''.
> > $conditions,'fields'=>array('id')));
> >  $this->data['invno_id']=0;
> > $this->data['invno_id']=$temp[0]['Invno']['id'];
>
> > if($this->data['invno_id']!=0)
> > {
> >  $this->Invoice->save($this->data);}
>
> > else
> > {
> >  $this->Session->setFlash('There is a delay in getting the invno_id');
> >  $this->redirect('/invoices',null,true);
>
> > }
>
> > I keep getting the message "There is a delay in getting the invno_id".
> > Can someone help me with a workaround?
>
> > Will appreciate any help...
>
> > forrestgump
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: delay or wait?

2009-01-16 Thread grigri

All databse queries are executed synchronously - i.e. once you call
`find()`, the next line of code will not execute until the find has
been completed, the data fetched and formatted.

If the returned data is not there, then there must be a problem with
your query. Using the sql query log (debug=2), check the sql and
results. Execute exactly the same sql directly in your database (mysql
console, phpminiadmin, phpPgAdmin, ...) and ensure that the results
are correct.

hth
grigri

On Jan 16, 10:45 am, forrestgump  wrote:
> Was wondering if there is a delay function i could use in my
> controller , to force cake to wait for a find() function to execute...
> This is the situation iam in
>
>  $temp=$this->Invno->find('all',array('conditions'=>''.
> $conditions,'fields'=>array('id')));
>  $this->data['invno_id']=0;
> $this->data['invno_id']=$temp[0]['Invno']['id'];
>
> Now i wish to execute this statement only after $this->data
> ['invno_id'] had been set
> $this->Invoice->save($this->data)
>
> but for some reason there is an observed delay and the program just
> halts
>
> i did this to check if there is a delay--
> $temp=$this->Invno->find('all',array('conditions'=>''.
> $conditions,'fields'=>array('id')));
>  $this->data['invno_id']=0;
> $this->data['invno_id']=$temp[0]['Invno']['id'];
>
> if($this->data['invno_id']!=0)
> {
>  $this->Invoice->save($this->data);}
>
> else
> {
>  $this->Session->setFlash('There is a delay in getting the invno_id');
>  $this->redirect('/invoices',null,true);
>
> }
>
> I keep getting the message "There is a delay in getting the invno_id".
> Can someone help me with a workaround?
>
> Will appreciate any help...
>
> forrestgump
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



delay or wait?

2009-01-16 Thread forrestgump

Was wondering if there is a delay function i could use in my
controller , to force cake to wait for a find() function to execute...
This is the situation iam in

 $temp=$this->Invno->find('all',array('conditions'=>''.
$conditions,'fields'=>array('id')));
 $this->data['invno_id']=0;
$this->data['invno_id']=$temp[0]['Invno']['id'];

Now i wish to execute this statement only after $this->data
['invno_id'] had been set
$this->Invoice->save($this->data)

but for some reason there is an observed delay and the program just
halts

i did this to check if there is a delay--
$temp=$this->Invno->find('all',array('conditions'=>''.
$conditions,'fields'=>array('id')));
 $this->data['invno_id']=0;
$this->data['invno_id']=$temp[0]['Invno']['id'];

if($this->data['invno_id']!=0)
{
 $this->Invoice->save($this->data);
}
else
{
 $this->Session->setFlash('There is a delay in getting the invno_id');
 $this->redirect('/invoices',null,true);
}

I keep getting the message "There is a delay in getting the invno_id".
Can someone help me with a workaround?

Will appreciate any help...

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



Re: Delay between Model Save data and query of data?

2007-10-19 Thread oracle

I can store it directly to the session, but then I don't get the user
ID that was created when entered into the database (AutoIncremented).

I'll try cashQueries

Thanks

On Oct 17, 3:31 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On a similiar issue
>
> $this->Users->cacheQueries = false;
>
> worked for me. But why aren't you saving $this->data directly to the
> session instead of reading it again from the db?
>
> flow


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Delay between Model Save data and query of data?

2007-10-17 Thread [EMAIL PROTECTED]

On a similiar issue

$this->Users->cacheQueries = false;

worked for me. But why aren't you saving $this->data directly to the
session instead of reading it again from the db?

flow


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Delay between Model Save data and query of data?

2007-10-16 Thread oracle

When a form is submitted, I save the data  like this:
$this->User->save($this->data);

And them immediately try to get the object I just saved by querying it
with one of the values in the object, which I then save to my session:

  $this->Session->write('User', 
$this->User->findByUsername($this-
>data['User']['username']));

But I always get a null value.  I check my DB and the data is stored
correctly and the next time I query it I get the object back.Their
seems to be a delay from the time I save the data to the time I am
able to successfully query the data.


Is this how it should be working or am I doing something wrong?

Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Problem with controller and delay

2007-07-10 Thread zipman

I followed the tutorial
http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line
and now I have no problem.

Thanks

On Jul 11, 2:43 am, zipman <[EMAIL PROTECTED]> wrote:
> OK.
> The question is why a method (action) inside a controller affects the
> other actions
> inside the same controller and even more every action in every other
> controller?
> If I have an action in which I have just sleep() and that action never
> returns, when
> I call that action, I cannot call any other  action even from another
> controller until
> this particular ends. Is that supposed to happen?
>
> On Jul 11, 2:05 am, "John David Anderson (_psychic_)"
>
> <[EMAIL PROTECTED]> wrote:
> > On Jul 9, 2007, at 11:45 AM, zipman wrote:
>
> > > I have a controller that inside I have placed actions that are called
> > > throughcron
> > > by using curl ( or lynx) and the full url to the action. The problem
> > > is that some of
> > > these actions may take sometime to complete, eg. I contact a remote
> > > sms gateway
> > > to send an sms and if no connection is made I use sleep to try again
> > > after 5 seconds
> > > etc.
> > > When that happens, I cannot call any other action from any other
> > > controller, which makes
> > > my whole site completely unusable. I tried putting one of the action
> > > out of cakephp and that
> > > problem does not occur, but I don't want to do this as I use many of
> > > tha cakephp api functions
> > > inside these actions.
>
> > > Any suggestions what I am doing wrong?
>
> > Yeah: don't bump issues without providing more info, or rephrasing
> > the question.
>
> > -- John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Problem with controller and delay

2007-07-10 Thread zipman

OK.
The question is why a method (action) inside a controller affects the
other actions
inside the same controller and even more every action in every other
controller?
If I have an action in which I have just sleep() and that action never
returns, when
I call that action, I cannot call any other  action even from another
controller until
this particular ends. Is that supposed to happen?

On Jul 11, 2:05 am, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Jul 9, 2007, at 11:45 AM, zipman wrote:
>
>
>
>
>
> > I have a controller that inside I have placed actions that are called
> > through cron
> > by using curl ( or lynx) and the full url to the action. The problem
> > is that some of
> > these actions may take sometime to complete, eg. I contact a remote
> > sms gateway
> > to send an sms and if no connection is made I use sleep to try again
> > after 5 seconds
> > etc.
> > When that happens, I cannot call any other action from any other
> > controller, which makes
> > my whole site completely unusable. I tried putting one of the action
> > out of cakephp and that
> > problem does not occur, but I don't want to do this as I use many of
> > tha cakephp api functions
> > inside these actions.
>
> > Any suggestions what I am doing wrong?
>
> Yeah: don't bump issues without providing more info, or rephrasing
> the question.
>
> -- John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Problem with controller and delay

2007-07-10 Thread Geoff Ford

If the tasks can be run independantly, seperate the long processes
into their own crons.

Otherwise your just going to have to wait.

For the example of sms, I assuming that you have a task that sends an
sms on completion or on some conditions.  Instead of sending them
straight away, log them to a db or file and have a seperate cron fire
up say 30 mins after the first one to run through the sms queue.

Geoff
--
http://lemoncake.wordpress.com

On Jul 11, 9:05 am, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Jul 9, 2007, at 11:45 AM, zipman wrote:
>
>
>
>
>
> > I have a controller that inside I have placed actions that are called
> > through cron
> > by using curl ( or lynx) and the full url to the action. The problem
> > is that some of
> > these actions may take sometime to complete, eg. I contact a remote
> > sms gateway
> > to send an sms and if no connection is made I use sleep to try again
> > after 5 seconds
> > etc.
> > When that happens, I cannot call any other action from any other
> > controller, which makes
> > my whole site completely unusable. I tried putting one of the action
> > out of cakephp and that
> > problem does not occur, but I don't want to do this as I use many of
> > tha cakephp api functions
> > inside these actions.
>
> > Any suggestions what I am doing wrong?
>
> Yeah: don't bump issues without providing more info, or rephrasing
> the question.
>
> -- John


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Problem with controller and delay

2007-07-10 Thread John David Anderson (_psychic_)


On Jul 9, 2007, at 11:45 AM, zipman wrote:

>
> I have a controller that inside I have placed actions that are called
> through cron
> by using curl ( or lynx) and the full url to the action. The problem
> is that some of
> these actions may take sometime to complete, eg. I contact a remote
> sms gateway
> to send an sms and if no connection is made I use sleep to try again
> after 5 seconds
> etc.
> When that happens, I cannot call any other action from any other
> controller, which makes
> my whole site completely unusable. I tried putting one of the action
> out of cakephp and that
> problem does not occur, but I don't want to do this as I use many of
> tha cakephp api functions
> inside these actions.
>
> Any suggestions what I am doing wrong?

Yeah: don't bump issues without providing more info, or rephrasing  
the question.

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: Problem with controller and delay

2007-07-10 Thread zipman

Anyone?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Problem with controller and delay

2007-07-09 Thread zipman

I have a controller that inside I have placed actions that are called
through cron
by using curl ( or lynx) and the full url to the action. The problem
is that some of
these actions may take sometime to complete, eg. I contact a remote
sms gateway
to send an sms and if no connection is made I use sleep to try again
after 5 seconds
etc.
When that happens, I cannot call any other action from any other
controller, which makes
my whole site completely unusable. I tried putting one of the action
out of cakephp and that
problem does not occur, but I don't want to do this as I use many of
tha cakephp api functions
inside these actions.

Any suggestions what I am doing wrong?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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=en
-~--~~~~--~~--~--~---



Re: redirect after a short delay

2006-07-14 Thread John Zimmerman [gmail]
As suggested above, headHelper is what you are looking for.http://cakeforge.org/snippet/detail.php?type=snippet&id=56This will allow you to insert the _javascript_ between the head tags to redirect after a delay.  The code to do this will go in whatever view you want to redirect from.
The link above is to the snippet page which has links to RosSoft's website.  It does require UtilHelper but that is available in the snippets as well.For directions on how to set it up the RosSoft link should guide you through.
Good luck and happy baking!On 7/14/06, eDevil <[EMAIL PROTECTED]> wrote:
Thanks for the comments. AD7six, you're right but I dont want to send amessage therefore Flash and setFlash are not useful to me. All I wantis to display whatever there is in /app/views/users/logout.thtml and
then redirect after 5 seconds.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: redirect after a short delay

2006-07-14 Thread eDevil

Thanks for the comments. AD7six, you're right but I dont want to send a
message therefore Flash and setFlash are not useful to me. All I want
is to display whatever there is in /app/views/users/logout.thtml and
then redirect after 5 seconds.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: redirect after a short delay

2006-07-14 Thread AD7six

hi eDevil.

why not use the session->setFlash method to take care of the message
and (for example) the headHelper, written by ros-soft, to put the meta
refresh tag in place?

The message and the redirect are 2 different requirements, and you need
to put a meta refresh tag on the rendered page (or use Javascript) to
redirect, otherwise it will be instantanious.

HTH,

AD7six


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: redirect after a short delay

2006-07-14 Thread Ryan Petrain
you might want to consider using setFlash in Session and then displaying the message on the next page.If you search the group you should see examples of this.On 7/14/06, 
eDevil <[EMAIL PROTECTED]> wrote:
Thanks gwoo and Ryan but you're missing the point. My Debug level isset to 0 and it DOES redirect.I tried $this->flash() but the problem is that it shows the message onwhite background.What I am looking for is the way header("location: 
there.html Refresh:5"); is handled in Cake.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: redirect after a short delay

2006-07-14 Thread eDevil

Thanks gwoo and Ryan but you're missing the point. My Debug level is
set to 0 and it DOES redirect.

I tried $this->flash() but the problem is that it shows the message on
white background.

What I am looking for is the way header("location: there.html Refresh:
5"); is handled in Cake.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: redirect after a short delay

2006-07-14 Thread Fernando





$this->($message, $url, 5 )

and change 'app/config/core.php'
	define('DEBUG', 0);



eDevil escreveu:

  I've tried $this->flash but the problem is that it just shows the
message. I want to render the page /app/views/users/logout.thtml and
then redirect after 5 seconds.

any suggestions?



  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---





Re: redirect after a short delay

2006-07-14 Thread Ryan Petrain
if you are in a DEBUG level higher than zero it will not redirect.  On 7/14/06, eDevil <[EMAIL PROTECTED]> wrote:
I've tried $this->flash but the problem is that it just shows themessage. I want to render the page /app/views/users/logout.thtml and
then redirect after 5 seconds.any suggestions?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: redirect after a short delay

2006-07-14 Thread eDevil

I've tried $this->flash but the problem is that it just shows the
message. I want to render the page /app/views/users/logout.thtml and
then redirect after 5 seconds.

any suggestions?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: redirect after a short delay

2006-07-14 Thread gwoo

Use $this->flash(). Though remember that in DEBUG > 0 the redirect  
will not happen automatically.
http://api.cakephp.org/ 
class_controller.html#eaa6ef6e0916a18b07beec93c220dd37

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



redirect after a short delay

2006-07-14 Thread eDevil

Hi, I'm building a user management system for my application. When the
users log out, it will show a message and then redirect after 5
seconds.  The problem is that I cant really get that working with Cake.
$this->redirect('users/'); redirect the user instantly and doesnt
display the message.

How to I make that redirection delay by 5 secs?

Thanks in advance.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---