Author Topic: very newbie cakephp question  (Read 1004 times)

0 Members and 1 Guest are viewing this topic.

Offline balloutaTopic starter

  • Devotee
  • Posts: 607
  • Gender: Male
    • View Profile
very newbie cakephp question
« on: April 09, 2009, 03:30:55 PM »
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

Offline fabrydesign

  • Enthusiast
  • Posts: 77
  • Gender: Male
  • FD
    • View Profile
    • fabrydesign
Re: very newbie cakephp question
« Reply #1 on: April 09, 2009, 10:27:04 PM »
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.

Offline balloutaTopic starter

  • Devotee
  • Posts: 607
  • Gender: Male
    • View Profile
Re: very newbie cakephp question
« Reply #2 on: April 10, 2009, 02:18:30 AM »
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?!


Offline jcombs_31

  • Guru
  • Addict
  • *
  • Posts: 2,426
    • View Profile
    • My Blog
Re: very newbie cakephp question
« Reply #3 on: April 16, 2009, 02:06:25 PM »
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.