Welcome Guest, Not a member yet? Register   Sign In
file extensions
#1

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

thanks in advance!
#2

[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.
#3

[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.
#4

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




Theme © iAndrew 2016 - Forum software by © MyBB