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

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

thanks in advance!

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
$config['url_suffix'] = ".jsp";

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

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

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