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 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 Link to comment https://forums.phpfreaks.com/topic/128949-templating-in-mvc-framework/#findComment-668552 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.