[pmwiki-users] where should public cookbook files go WAS: get current coockbook script path

Sebastian Siedentopf schlaefer at macnews.de
Sun Aug 28 03:42:42 CDT 2005


Am 25.08.2005 um 20:56 schrieb Patrick R. Michaud:

> You don't.  More to the point, files that are in the cookbook/
> directory shouldn't be directly accessible from the web (conversely,
> files that need to be accessible from a browser shouldn't go in  
> cookbook/).
> In fact, in the next release of PmWiki there are going to be files
> in cookbook/ to block browsers from being able to access that  
> directory.
>
> In general, any files to be made available via url should go somewhere
> in the "pub/" directory.
>
> Pm

Ok. http://www.pmwiki.org/wiki/Cookbook/ModuleGuidelines proposes:

cookbook/
          package.php (single script, loads others if necessary)
          package/
             bar.php
             baz.php
      pub/
          package/
             [any skins, images, etc.]


Wouldn't it makes sense to put all that is clearly related to  
cookbooks into a special cookbook folder:

     pub/
         cookbook/
             package1/
                 [any skins, images, etc.]
             package2/
                 [any skins, images, etc.]
             ...

As analogy to the skins folder.

Sebastian






More information about the pmwiki-users mailing list