Friday, January 29, 2010

Re: How to implement Comet in CakePHP ?

Okay, so looking at it a bit more, if you're going to use the ACTUAL
Comet protocol, you *must* use a server capable of working with it.
Apache HTTPD does not, Apache Tomcat supposedly does. This would mean
that in addition to the webserver, you'd need a Comet server. I'm not
completely positive, but you *might* be able to get Nginx to use Comet
without a secondary server. I really haven't done any research on
this topic at all.

To mimic Comet by using a single server, you have two options: long
polling, and an iFrame hackish sort of way. Again, I have no research
on these methods, so I'm only explaining this to you so you can have
some better search results on your own.

Good luck.

On Jan 28, 4:23 pm, BrendonKoz <Brendon...@hotmail.com> wrote:
> For Comet, I just found a new project that aims to implement Comet for
> you:http://www.ape-project.org/home.html
>
> Other than looking at the main page of the project, I haven't done
> anything with it.  Learn at your own risk.  ;)
>
> On Jan 4, 12:00 am, td-nathan <tyler.digi...@gmail.com> wrote:
>
>
>
> > I also need to implement a chat room system, are there any good
> > tutorials for integrating these Jabber systems with CakePHP?  Ideally
> > something that covers the server-side installation and then how to
> > build an accessible front-end for users using CakePHP or an existing
> > plugin?
>
> > On Jan 2, 11:26 am, Pablo Viojo <pvi...@gmail.com> wrote:
>
> > > ForgetComet. Take a look at Jabber (A very good serverhttp://www.igniterealtime.org/projects/openfire/) and JsJachttp://blog.jwchat.org/jsjac/ifyouwant to write a robust chat system. (It
> > > will save a lot of time)
>
> > > Regards,
>
> > > Pablo Viojo
> > > pvi...@gmail.comhttp://pviojo.net
>
> > > ¿Que necesitas?http://needish.com
>
> > > On Sat, Jan 2, 2010 at 3:36 PM, nacho4d <nach...@gmail.com> wrote:
> > > > Hey.. Its been a while.
>
> > > > As I said before I want to implementcometchat 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
> > > > functioncomet(){
> > > > //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 sitehttp://cakeqs.organdhelpothers
> > > > 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<cake-php%2Bunsubscr...@googlegroups.c om>For more options, visit this group at
> > > >http://groups.google.com/group/cake-php?hl=en- Hide quoted text -
>
> - Show quoted text -

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

No comments: