>
Ajax chat plugin for CakePHP using jQuery
Welcome, Guest

by guest on Tuesday, 09 December 2008
Ajax chat plugin for CakePHP using jQuery


A basic Ajax chat plugin for CakePHP using jQuery

1) Download jQuery and put it in /app/webroot/js/

2) Put the chat plugin into app/plugins/chat. The plugin is called "chat", so make sure there is no conflict with any other controllers or plugins.

3) Run this sql to create the chats table.

CREATE TABLE  `chats` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `key` varchar(45) NOT NULL default '',
  `name` varchar(20) NOT NULL default '',
  `message` text NOT NULL,
  `ip_address` varchar(15) NOT NULL default '',
  `created` datetime default NULL,
  PRIMARY KEY  (`id`),
  KEY `KEY_IDX` (`key`)
); 

4) Include the plugin helper in your controller:

<?php
var $helpers = array('chat.ajaxChat');
?>


5) Include jQuery in your view if you don't already include it in your layout.

echo $javascript->link('jquery', false);

6) Include the chat js and css in your view.

$javascript->link(array('jquery/jquery', '/chat/js/chat.js'), false);
$html->css('/chat/css/chat.css', null, null, false); 

7) Then just add the chat to your view. You can have multiple chats on your site by changing the chat key - "chat1" in this example

echo $ajaxChat->generate('chat1');

For helpers,controllers and others

please go thru on this site

http://github.com/mcurry/cakephp/tree/master/plugins/chat



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering