CodeIgniter Forums
ques. about controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: ques. about controller (/thread-22250.html)



ques. about controller - El Forum - 09-02-2009

[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



ques. about controller - El Forum - 09-02-2009

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


ques. about controller - El Forum - 09-02-2009

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

thanks John Betong