codeIgniter Codeigniter php frameworks will be start to views part 3, if you haven’t read the , please read it before. In part 3, we will be teaching you about Storing Views within Sub-folders and Adding Dynamic Data to the view . Firstly is Storing Views within Sub-folders , your view files can also be stored within sub-folders if you prefer that type of organization. When doing so you will need to include the folder name loading the view, like this $this->load->view(' folder_name/file_name '); . Now let’s change our learning to Adding Dynamic Data to the View . Data is passed from the controller to the view by way of an array or an object in the second parameter of the view loading function. Codeigniter php frameworks have example using an array. So you can copy it to your controller file with your text editor. using array variables. using object variables. FYI, if you use an object, the class variables will be returned into array elements....
here you can learn codeIgniter basic stuff