Learn CodeIgniter Tutorial for Beginners

Learn CodeIgniter Tutorial for Beginners

Jul 13, 2018 | CodeIgniter, PHP

MVC is a software approach that separates application logic from presentation. In
practice, it permits your web pages to contain minimal scripting since the presentation is separate from the PHP scripting.

 

Learn CodeIgniter Tutorial for Beginners

Learn CodeIgniter Tutorial for Beginners

 

  • The Model represents your data structures. Typically, your model classes will contain functions that help you retrieve, insert and update information in your database. Model programming is based on OPPS concept.
  • The View is information that is being presented to a user. A View will normally be a web page, but in CodeIgniter, a view can also be a page fragment like a header or footer. It can also be an RSS page, or any other type of page.
  • The Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.

 

Today we will describe the CodeIgniter setup process for the beginners. In this tutorial, beginners would be able to learn the CodeIgniter development process from the scratch. Our step by step tutorial helps web developers to learn CodeIgniter quickly, easily and practically.

 

Learn CodeIgniter Tutorial for Beginners

Learn CodeIgniter Tutorial for BeginnersLearn CodeIgniter Tutorial for Beginners

 

 

CodeIgniter Basic

 

 

  • Download the latest version of CodeIgniter from here: http://www.codeigniter.com/
  • Extract the zip file and rename the folder. For example CodeIgniter/.
  • Move the folder ‘codeigniter’ at the localhost directory.
  • If you try to open the home URL (http://localhost/projects/CodeIgniter/), you’ll see the following screen at the browser.

 

Learn CodeIgniter Tutorial for Beginners

Learn CodeIgniter Tutorial for Beginners

  • Open the application/config/routes.php file and follow the below instruction.
Set $route[‘default_controller’] variable value for example ‘welcome’. It is used for load a controller by default.

 

  • Open the application/config/config.php file and follow the below instruction.

Set the $config[‘base_url’] variable value with your project base

URL: http://localhost/projects/CodeIgniter/

In this tutorial has described the basic guide of CodeIgniter application installation. We’ll discuss the advanced database connection CodeIgniter tutorials on our next post. If you have any questions about this tutorial, please let us know by leaving a comment below.

 

 

 

Being Idea is a web platform of programming tutorials to make better programming skills and provides Software Development Solutions.

0 Comments

Leave a Reply