Re: How to implement Comet in CakePHP ?
Hey.. Its been a while.
As I said before I want to implement comet chat system in cakePHP,
(there was a plug-in around there, but it does not seems to work fine
anymore. not for 1.2)
So, I have my controller: cometchats_controller.php
and my action
function comet(){
//get database data and pass it to the view
//do some other stuff...
}
the view will be rendered and the message data will be put in a div
like this <div id="content"></div>
So, let me know If I am in the correct way.
I could use afterFilter() callback to run a loop to check the database
for new message (since it is a chat system)
In case there is a new message stop the loop, and render the view
again like this:
this->render('cometchats/comet/', 'ajax);
but I want to render only the data inside the "content" div, so I have
to assign a div.
How do I do this?
Am I right so far?
On Dec 18 2009, 11:59 pm, nacho4d <nach...@gmail.com> wrote:
> I have been search this (cometin cakephp) for some time, but I
> couldn't find anything really helpful
> I would appreciate your help. ;)
>
> On Dec 17, 5:22 pm, cherif_Gsoul <cherif.sahel...@gmail.com> wrote:
>
>
>
> > hi, you have to learn more about cakephp is not so hard to learn
> > ajax's implementation in cakephp who is made to work with the
> > prototype framework and ther's a helper for jquery developed by the
> > community i think, i saw one day a plugin for tchat somewhere do some
> > google researchs i am sur you will get it. i do some research if i
> > find something i ll post it here ok?
> > tciao.
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home