As you know, Codeigniter is a great PHP framework, I'm trying to make my own framework. Here is a problem. I really like the $data functionality in Codeigniter and I want to make it happen in my framework. Question is, how it works. Here is what it does :
you make a array like this :
$data['title']= 'My Name';then you can use this variable like this in view :
$title ;
How I can make a variable like $data ?
when we pass the variable into the $data array inside a controller, We can use that variable exactly after passing it to $data array in controller at the following lines without doing any thing else and without calling any other modules. NO!