CodeIgniter Forums

Full Version: ques. about controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Mostafa Hassan[/eluser]
hi all ,,

how can i include controller data into another controller ..

in smarty template engine ..

i use

Code:
<?php

include ('common.php');

?>

how can i do this in ci ??

thanks

more info :

i want to put main data of my website into one file called common.php
and then call it into any controller

El Forum

[eluser]John_Betong[/eluser]
 
Try searching the forum for ' extends My_Controller'.
 
 
 

El Forum

[eluser]Mostafa Hassan[/eluser]
yes i found some topics talking about my question .. i will try it and reply

thanks John Betong