ballouta Posted April 9, 2009 Share Posted April 9, 2009 Hello everyone I just began reading the cakephp online manual, and I will do my best to understand it, in this time i have two questions, Someome has already installed and configured the cakephp for a website and i need to make few modifications in some pages, after long search i found the files in this location of the ftp: www/app/views/mains (files i can see online are in this folder), the files extension is thtml ! my Q: Do I have to login as Admin inorder to make a modification (I won't ask how)? or modifications can be done in another way (usually)? Mnay thanks Quote Link to comment https://forums.phpfreaks.com/topic/153377-very-newbie-cakephp-question/ Share on other sites More sharing options...
fabrydesign Posted April 10, 2009 Share Posted April 10, 2009 The thmtl (template html?) files are just PHP files with a different extension. You can edit them in any program that can edit PHP. On a different note, the latest release of CakePHP uses .ctp instead of .thtml for the views, so you might want to update. Quote Link to comment https://forums.phpfreaks.com/topic/153377-very-newbie-cakephp-question/#findComment-806059 Share on other sites More sharing options...
ballouta Posted April 10, 2009 Author Share Posted April 10, 2009 Thank you very much technically, how those page are opening correctly in internet explorer without writing the extension? is it manuipulated as any extension or the cakephp does convert it before viewing it?! Quote Link to comment https://forums.phpfreaks.com/topic/153377-very-newbie-cakephp-question/#findComment-806157 Share on other sites More sharing options...
jcombs_31 Posted April 16, 2009 Share Posted April 16, 2009 This is just part of how the framework works. Cake uses the .ctp extension for views rather than .php like the core files that run the framework. To answer your question, yes, cakephp interprets the .ctp files and generates the page view. Quote Link to comment https://forums.phpfreaks.com/topic/153377-very-newbie-cakephp-question/#findComment-811769 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.