Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjohn
    • CommentTimeFeb 2nd 2007
     
    Hi all,

    I'm building a website using PHP and want the site admin to be able to change the page content without actually having to access the source. There will only be a set number of pages, so there's no need for add/delete abilities.

    At the moment I have a php file for each page and a function which reads the correct content in based on the file name. I figured this would be quite search engine/ user friendly, the only downside I can see is that I have multiple pages with exactly the same content, this seems quite inefficient to me.

    Does anyone have any better ideas as to how this could be done?
  1.  
    You should have a single script on user-side which displays data according to some parameter passed. There is no point in creating multiple files which all do the same.
    • CommentAuthorjiosis
    • CommentTimeFeb 2nd 2007
     
    Use include() for header and footer in all pages so that you can use a same template and menus for all pages without repeating them.