anujgarg Posted October 18, 2008 Share Posted October 18, 2008 Hi I am using MVC based framework, Codeigniter. I want to ask if it is possible to create .html files under "view" folder. As we generally create .php files under "view" folder to maintain relationship between controller and models. All I need to avoid the html tags/variables to be used in php files under view folder. Is there any option to do so under Codeigniter? TIA -- Anuj Quote Link to comment https://forums.phpfreaks.com/topic/128949-templating-in-mvc-framework/ Share on other sites More sharing options...
wildteen88 Posted October 18, 2008 Share Posted October 18, 2008 You can use .html files as the view yes. Just specify the .html extension when loading a view. eg $this->load->view('filename.html'); If you dont specify a file extension CI will append the .php Quote Link to comment https://forums.phpfreaks.com/topic/128949-templating-in-mvc-framework/#findComment-668552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.