CodeIgniter Forums
file extensions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: file extensions (/showthread.php?tid=13246)



file extensions - El Forum - 11-15-2008

[eluser]venksster[/eluser]
Is there a limitation on the kind of file extensions we can use for models, views and controllers?

thanks in advance!


file extensions - El Forum - 11-15-2008

[eluser]Sumon[/eluser]
i think, .php for model and controller, .html,.php for view. From my point of view, it's not limitation as Microsoft word file save with extension .doc

one further point is that, model and view extension never shows to visitors. instead they only view the URL. CI have an excellent feature in application/config/config.php file
Code:
$config['url_suffix'] = ".jsp";

this line of code automatically add .jsp at the end of URL.


file extensions - El Forum - 11-15-2008

[eluser]venksster[/eluser]
thanks SUmon. I was hoping to name the models and controllers as .model and .ctrl respectively. but i guess thats not supported by CI.


file extensions - El Forum - 11-16-2008

[eluser]Sumon[/eluser]
venksster, you are welcome. by the way i use for example user_model.php as model and users.php as controller.