Data passing from controller to view
I posted CodeIgniter URL Routing in the controller, Special methods, and Controller and View files earlier.
Now we see, how to pass some data to view files from controller
My view file first_view.php
<html>
<head>
<title>View</title>
</head>
<body>
...
Friday, June 24, 2016
Thursday, June 23, 2016
Codeigniter tutorial 3
I introduced CodeIgniter routing and parameter passing on the controller in previous posts.
Now I show creating functions to load 'view' files where we have our UI.
Create a file in 'code\application\views'. Here the 'code' is the renamed folder of extracted CodeIgniter zipped file.
first_view.php
<html>
<head>
...
Codeigniter tutorial 2
CodeIgniter special method
For routing first, the browser looks the controller name then the method name and parameters if available.
In Codeigniter tutorial, we created a function and a function with the parameters.
What if we missed any parameter value in our URL
We get warning and notice...
Codeigniter tutorial
CodeIgniter
Is light Weight
No installation required
...