Tuesday 6 October 2015

Building your first CMS in PHP

Today, all the popular and up-to-date websites use CMS to manage all their data. So check out this article to know how to create a CMS (Content Management system) in PHP.
A simple PHP class needs to be created which will
  • Create a database
  • Connect to a database
  • Save the form data in the database
  • Display the saved data from the database
Following are the steps to create a simple CMS in PHP
  1. Lay out a simple class named simpleCMS.php so we have a road map to start the work. The class should have four variables and five methods at least. Use object-oriented approach.
  2. Build a database which has three columns.
  3. Now we need to connect the functions to connect to our database. Use connect()
  4. It is time to fill up the database so build a form now.
  5. Use write() method to save the information.
  6. It’s time to display the information entered in to the database so use display_public()
  7. Remember the class we made in the beginning? It is time to use it. Create a separate file named display.php and save it in the main web-folder. Insert little PHPs between the body tags.


So this was the shortest way to explain the process behind building a CMS.  PHP is a most popular and demanding programming language. For advanced PHP training you can join industry oriented php courses. There are good programmers who can manage this part of web designing in Mohali and Chandigarh. 

0 comments:

Post a Comment