make new page

Discussion in 'PHP' started by ranacseruet, Mar 19, 2009.

  1. #1
    in a Simple CMS sytem, it requires to add new pages. So, what will be the reliable way? create new file using php or save the page contents to database & show retrieving them on a template?
     
    ranacseruet, Mar 19, 2009 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    depends on what you want and what the CMS is designed to handle. If its a lot of content, the database solution will be the best for managing. If its a mini site/brochure site, you could just use files.
     
    shallowink, Mar 19, 2009 IP
    pipes likes this.
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    I would go as far as to say a database is almost always the correct way to go, given that a CMS is usually overkill for a site with few pages (<10) and a database will almost always be needed, both for easy of coding, and an ability to deal with new things (additions) without having to change major parts of the codebase.

    Go for a database solution, I'd say.
     
    PoPSiCLe, Mar 19, 2009 IP
    pipes likes this.
  4. ranacseruet

    ranacseruet Peon

    Messages:
    302
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi, thanks for ur opinion...
     
    ranacseruet, Mar 21, 2009 IP