Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Questions about the way a new 'page' is created

    Say if I want to create a page which can be accessed at main_page=test, I have to create a folder named 'test' located in includes/modules/pages

    This folder doesn't even have to content anything, it's just there to simply 'hold' the place. Is there anyway to avoid this?

    Second question: say if I have several php files in there, are they gonna be loaded automatically?

    Thank you.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Questions about the way a new 'page' is created

    If you do not have such a folder, the page is deemed to not exist, and will trigger the built-in page-not-found redirects.

    Any files in that folder matching the regex defined by: '/^header_php/' ... will be auto-loaded.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Questions about the way a new 'page' is created

    Quote Originally Posted by yellow1912 View Post
    This folder doesn't even have to content anything, it's just there to simply 'hold' the place. Is there anyway to avoid this?
    Even if there's no logic in your header.php (which would be odd) you would still want to load your languages files there.

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v139h Created new page not found
    By hara in forum General Questions
    Replies: 6
    Last Post: 17 Aug 2015, 02:38 AM
  2. questions about a new installation of 1.5 final
    By wondergirl in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 31 Dec 2011, 07:37 AM
  3. Replies: 7
    Last Post: 16 Mar 2011, 08:39 PM
  4. What's the easiest way to add custom fields to the New Product page?
    By christopherw in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 18 Sep 2007, 06:16 PM
  5. 2 questions about customization, new comer!
    By great in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Feb 2007, 10:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR