Posts

Showing posts with the label cakephp

Realtime Chat Application with CakePHP and Socket.IO #2

Image
Before , We begin we need the main layout for the application ,in my case i  make ctp file (cakephp file ) I include in the css and js files for   Material Design for Bootstrap  just to have a modern look for the application <?php echo $this -> fetch( ' content ' ); ? > this echo the view for other pages / controllers's actions we need also to another layout file  to use it in chat PS : the layout  files are in this directory app/view/layout , it's specific for cakephp 2

Realtime Chat Application with CakePHP and Socket.IO #1

Image
In this blog we will build a Realtime Chat Application with CakePHP and Socket.IO Your are free to use another framework, the idea is just learning the basics and a few (Socket.IO) tips Database :  To store our data for this application we need 4 tables :  users :         contains user's informations such as username and password hash ,email ...  messages : contains messages between users, it also store the information of sender and destination  user companies : or teams table ,in order to organise groups i add this table to give the user the freedom  of organizing his contact it stores the company name with his owner .   companies_users : it contains the users and their respective  companies here the SQL file fo database structure     file in the next tutorial we'r gone started building the frontend using cakephp