[Cartoweb-users] auto include, how does it work?

Oliver Christen oliver.christen at camptocamp.com
Thu Sep 13 04:05:56 EDT 2007


3DSiteHi

sadely no, 
there is not auto-include script implemented in CW, 
all files in the cartoweb3/common folder are manually included, usualy by using require_once command, 
UNLESS for plugin and only if the file is named by the plugin name! but in that case it is only available at the corresponding plugin level.

so you will need to include the file manualy where you need it

you can get the project name by using:
$projectHandler = $this->getCartoclient()->getProjectHandler();
$project = $projectHandler->getProjectName();
$path = CARTOWEB_HOME . '/projects/' . $project . '/common/';

regards
Oliver

  ----- Original Message ----- 
  From: Milo van der Linden 
  To: cartoweb-users at lists.maptools.org 
  Sent: Sunday, September 09, 2007 10:42 PM
  Subject: [Cartoweb-users] auto include, how does it work?


  Hello,


  I want to know if I put an include file in the  common directory of my project that should be used by several parts of the GUI, will it be auto loaded by all components of my project?.
  Setting the include as CARTOWEB_HOME . "/projects/webGIS/common/' looks a bit odd..
  Any suggestion? 



       Milo van der Linden 
        skype: milovanderlinden
        mlinden at zeelandnet.nl
        milovanderlinden at gmail.com
        milo at 3dsite.nl
        http://www.3dsite.nl

         De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.
       



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070913/960ce121/attachment-0001.html


More information about the Cartoweb-users mailing list