Application Flow Chart of Codeigniter

Here we are going to see the concept or procedure from which codeigniter runs the Application. the application flow chart in codeigniter is explained in below image. which will help you learn each and every step of codeigniter.

architecture_flow

  • As shown in the Flow chart, whenever a request comes to CodeIgniter, it will first go to index.php page.
  • In the second step, Routing decides whether to pass the request to step 3 for Caching or to pass the request to step 4 for Security check.
  • If the requested page is already in Caching, then Routing will sanction the request to step 3 and the response will go back to the user.
  • In case the request page does not exist in the Caching, then Routing, will sanction the requested page to step 4 for Security checks.
  • Before passing the request to Application Controller, the Security of the submitted data is checked. After the Security check is done, the Application Controller loads all the necessary Models, Libraries, Helpers, Plugins and Scripts and pass it onto View.
  • The View will provide the page with available data and pass that on for Caching, to process this page quickly for future requests.

Directory Architecture:

you can see directory architecture of CodeIgniter V 3.1.9 below

directory_structure

And remaining folders out of the application but included in directory architecture of codeigniter are

  • Application
  • System
  • User_Guide

As above image you can see subfolders of applicaton folder

Application:

All configuration and required project setting files are included in application folder and there are some supportive folders are also there which contains some other configurations setting. Project related all details and your mvc project setting you have to maintain in the application folder.

Application folder supportive sub folders are explained below :
  1. Cache – The Cache folder contains all the cached pages of your application. These cached pages would increase the overall speed of accessing the pages.
  2. Config – The Config folder contains various files to configure the application. With the help of config.php file, you can configure the application. Using database.php file, you can configure the database of your application.
  3. Controllers – This folder contains the controllers of your application. It is the basic part of your application.
  4. Core – This folder contains the base class of your application.
  5. Helpers – The helper class of your application can be put in this folder.
  6. Hooks – With the help of files in this folder you can tap into and modify the inner workings of the framework without hacking the core files.
  7. Language –This folder contains language related files.
  8. Libraries – This folder contains the files of the library developed for your application.
  9. Logs – This folder contains the files related to the log of the system.
  10. Models – The database login is placed in this file.
  11. Third_Party – The plugins can be placed in this folder for using it in your application.
  12. Views – The HTML files of your application can be placed here.

System:

The System folder contains the CodeIgniter core codes, libraries, helpers and other files, which helps make the coding easy. The libraries and helpers are loaded and used for web application development. This folder contains all the CodeIgniter code of consequence again organized into various folders mentioned as below:

System folder supportive sub folders are explained below :
  1. Core – The Core folder contains CodeIgniter core class. Nothing should be modified here. Since all your work will take place in the application folder, if you intend you extend the CodeIgniter core you will have to do it with hooks, which itself exist in the application folder.
  2. Database – This folder contains the database drivers and database utilities.
  3. Fonts – This folder contains the font related information and the utilities.
  4. Helpers – The standard CodeIgniter helpers such as data, cookie, and URL helpers exist in this folder.
  5. Language –Contains language related files. This can be ignored for now.
  6. Libraries – The folder contains standard CodeIgniter libraries such as e-mail, calendars, file uploads etc. You can create your own libraries, extend and even replace standard ones. But those will be saved in the application/ libraries directory to keep them separate from the standard CodeIgniter libraries in this particular folder.

User_Guide:

It is the offline version of user guide of CodeIgniter Website. In other words user guide to CodeIgniter. Using this the various functions of libraries, classes and helpers can be learnt. It is highly recommended that you go through this user guide before building your first web app using CodeIgniter.

Apart from these three folders ( Application, System and User_Guide ) there is one more important file named “ index.php” . 
"index.php" file:
In this file you can set the application environment and error level and you can define system and application folder name. And for these if you are not having proper knowledge about index.php page then do not try to change the file or it will affect your running project environment.

So, If you are having any query and doubt regarding codeigniter application flow then you can ask in comments.  


Thank you !! 


What is MVC ?

                                            So, basically MVC stands for Model - View - Controller and its a programming pattern used to develop Software and web apps etc. Each of these components are built to handle specific development aspects of an application. MVC is one of the most frequently used industry-standard web development framework to create scalable and extensible projects.



mvc


  • Model: The model deals with the raw data and database interaction and will contain functions like adding records to a database or selecting specific database records. In CI the model component is not required and can be included in the controller.
  • View: The view deals with displaying the data and interface controls to the user with.In CI the view could be a web page, rss feed, ajax data or any other "page".
  • Controller: The controller acts as the in between of view and model and, as the name suggests,it controls what is sent to the view from the model. In CI, the controller is also the place to load libraries and helpers.

How to Install & Run CodeIgniter

How to install codeigniter by following some steps are explained below:
1. Download the zip file from this Url https://github.com/bcit-ci/CodeIgniter/archive/3.1.9.zip.
2. Unzip the files and put them to your webserver 'htdocs folder' where you want to. lets assume that you put it at codeigniter folder of your web server.
3. Open the application/config/config.php file with a text editor and set your base URL. lets asumme that your base URL is set like this:
$config[‘base_url’] = “http://localhost/codeigniter/projectName";
4. If you intend to use a database, open the application/config/database.php file with a text editor and set your database settings. Set the following variables according to your setup.
$db[‘default’][‘hostname’] = “localhost”;
$db[‘default’][‘username’] = “admin”;
$db[‘default’][‘password’] = “*****”;
$db[‘default’][‘database’] = “projectone”;
$db[‘default’][‘dbdriver’] = “mysql”;
$db[‘default’][‘dbprefix’] = “”;
$db[‘default’][‘active_r’] = TRUE;
$db[‘default’][‘pconnect’] = TRUE;
$db[‘default’][‘db_debug’] = TRUE;
$db[‘default’][‘cache_on’] = FALSE;
$db[‘default’][‘cachedir’] = “”;
5. Now you can run installed codeigniter software by following below urls
Kindly note in below url codeigniter is your project folder name. so, when you are going to run than check once that if your project folder name is codeigniter than you can follo below link else you can change your url as per your project folder name.
After run of your project in browser you will see this output
“Welcome to Code Igniter!”
codeigniter
Now you are ready to work with Code Igniter.

Microprocessor explained by Mr. Rajesh Vishwakarma sir

Here some concept regarding what is the meaning of microprocessor explained in detail with real hardware components. for more you can see the youtube video to learn concepts about microprocessor Explaindby Mr. Rajesh Vishwakarma Sir.


For getting hardware and networking tutorials you can subscribe Vish Vijay Channel.
https://www.youtube.com/channel/UCGWry5IUXDqSREu0dlrWu5Q

vishvijay


And for programming related query you can ask in our blogs comment section or you can watch programming related video on Programming Quest Channel.
So, guys hit more like on video, share useful videos to your friends and subscribe both channel for getting Programming as well as Graphics related updates.

Links are Given below :
For more details or queries you can ask in the comments  Thanking  You.



Accessing php project over the network

                              Here we are going to see the setting of php project accessing over the network it can be of any i.e wampp,xampp and lampp. For accessing the project you have to make some mandatory changes in configuration files of your wampp or xampp or lampp etc.

Filename where we are going setting up something i.e. (http.conf) file which located in apache folder.

Common full path of httpd.conf file is 

C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf


Changes which you have to make in the file i.e find Require local and change it to Require all granted

After making the changes just save all file and restart all services once. then go to other pc and open browser enter ip address of project accessing pc i.e. ip_address/project_name 

Then hit enter button you can view the php project of other pc into your pc over the same network.

And if you are having any query realted to this setup you can clear your doubt by commenting on post we definitely revert you.