[ Index ]
 

Code source de CakePHP 1.1.13.4450

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/cake/config/ -> paths.php (source)

   1  <?php
   2  /* SVN FILE: $Id: paths.php 4409 2007-02-02 13:20:59Z phpnut $ */
   3  /**
   4   * Short description for file.
   5   *
   6   * In this file you set paths to different directories used by Cake.
   7   *
   8   * PHP versions 4 and 5
   9   *
  10   * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
  11   * Copyright 2005-2007, Cake Software Foundation, Inc.
  12   *                                1785 E. Sahara Avenue, Suite 490-204
  13   *                                Las Vegas, Nevada 89104
  14   *
  15   * Licensed under The MIT License
  16   * Redistributions of files must retain the above copyright notice.
  17   *
  18   * @filesource
  19   * @copyright        Copyright 2005-2007, Cake Software Foundation, Inc.
  20   * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  21   * @package            cake
  22   * @subpackage        cake.cake.app.config
  23   * @since            CakePHP(tm) v 0.2.9
  24   * @version            $Revision: 4409 $
  25   * @modifiedby        $LastChangedBy: phpnut $
  26   * @lastmodified    $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
  27   * @license            http://www.opensource.org/licenses/mit-license.php The MIT License
  28   */
  29  /**
  30   * If the index.php file is used instead of an .htaccess file
  31   * or if the user can not set the web root to use the public
  32   * directory we will define ROOT there, otherwise we set it
  33   * here.
  34   */
  35      if(!defined('ROOT')) {
  36          define ('ROOT', '../');
  37      }
  38      if(!defined('WEBROOT_DIR')) {
  39          define ('WEBROOT_DIR', 'webroot');
  40      }
  41  /**
  42   * Path to the application's directory.
  43   */
  44      define ('CAKE', CORE_PATH.'cake'.DS);
  45  /**
  46   * Path to the application's directory.
  47   */
  48      define ('APP', ROOT.DS.APP_DIR.DS);
  49  /**
  50   * Path to the application's models directory.
  51   */
  52      define ('MODELS', APP.'models'.DS);
  53  /**
  54   * Path to the application's controllers directory.
  55   */
  56      define ('CONTROLLERS', APP.'controllers'.DS);
  57  /**
  58   * Path to the application's controllers directory.
  59   */
  60      define ('COMPONENTS', CONTROLLERS.'components'.DS);
  61  /**
  62   * Path to the application's views directory.
  63   */
  64      define ('VIEWS', APP.'views'.DS);
  65  /**
  66   * Path to the application's helpers directory.
  67   */
  68      define ('HELPERS', VIEWS.'helpers'.DS);
  69  /**
  70   * Path to the application's view's layouts directory.
  71   */
  72      define ('LAYOUTS', VIEWS.'layouts'.DS);
  73  /**
  74   * Path to the application's view's elements directory.
  75   * It's supposed to hold pieces of PHP/HTML that are used on multiple pages
  76   * and are not linked to a particular layout (like polls, footers and so on).
  77   */
  78      define ('ELEMENTS', VIEWS.'elements'.DS);
  79  /**
  80   * Path to the configuration files directory.
  81   */
  82      define ('CONFIGS', APP.'config'.DS);
  83  /**
  84   * Path to the libs directory.
  85   */
  86      define ('INFLECTIONS', CAKE.'config'.DS.'inflections'.DS);
  87  /**
  88   * Path to the libs directory.
  89   */
  90      define ('LIBS', CAKE.'libs'.DS);
  91  /**
  92   * Path to the public directory.
  93   */
  94      define ('CSS', WWW_ROOT.'css'.DS);
  95  /**
  96   * Path to the public directory.
  97   */
  98      define ('JS', WWW_ROOT.'js'.DS);
  99  /**
 100   * Path to the scripts direcotry.
 101   */
 102      define('SCRIPTS', CAKE.'scripts'.DS);
 103  /**
 104   * Path to the tests directory.
 105   */
 106      define ('TESTS', APP.'tests'.DS);
 107  /**
 108   * Path to the controller test directory.
 109   */
 110      define ('CONTROLLER_TESTS', TESTS.'cases'.DS.'controllers'.DS);
 111  /**
 112   * Path to the components test directory.
 113   */
 114      define ('COMPONENT_TESTS', TESTS.'cases'.DS.'components'.DS);
 115  /**
 116   * Path to the helpers test directory.
 117   */
 118      define ('HELPER_TESTS', TESTS.'cases'.DS.'views'.DS.'helpers'.DS);
 119  /**
 120   * Path to the models' test directory.
 121   */
 122      define ('MODEL_TESTS', TESTS.'cases'.DS.'models'.DS);
 123  /**
 124   * Path to the lib test directory.
 125   */
 126      define ('LIB_TESTS', TESTS.'lib'.DS);
 127  /**
 128   * Path to the temporary files directory.
 129   */
 130      define ('TMP', APP.'tmp'.DS);
 131  /**
 132   * Path to the logs directory.
 133   */
 134      define ('LOGS', TMP.'logs'.DS);
 135  /**
 136   * Path to the cache files directory. It can be shared between hosts in a multi-server setup.
 137   */
 138      define('CACHE', TMP.'cache'.DS);
 139  /**
 140   * Path to the vendors directory.
 141   */
 142      define ('VENDORS', CAKE_CORE_INCLUDE_PATH.DS.'vendors'.DS);
 143  /**
 144   * Path to the Pear directory
 145   * The purporse is to make it easy porting Pear libs into Cake
 146   * without setting the include_path PHP variable.
 147   */
 148      define ('PEAR', VENDORS.'Pear'.DS);
 149  /**
 150   *  Full url prefix
 151   */
 152      $s = null;
 153      if (env('HTTPS')) {
 154          $s ='s';
 155      }
 156  
 157      $httpHost = env('HTTP_HOST');
 158  
 159      if (isset($httpHost)) {
 160          define('FULL_BASE_URL', 'http'.$s.'://'.$httpHost);
 161      }
 162      unset($httpHost, $s);
 163  /**
 164   * Web path to the public images directory.
 165   */
 166      define ('IMAGES_URL', 'img/');
 167  /**
 168   * Web path to the CSS files directory.
 169   */
 170      define ('CSS_URL', 'css/');
 171  /**
 172   * Web path to the js files directory.
 173   */
 174      define ('JS_URL', 'js/');
 175  ?>


Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7