ManiaLib 1.0b1 API Reference

Source for file config.default.php

Documentation is available at config.default.php

  1. <?php
  2. /**
  3.  * MVC framework default config
  4.  * 
  5.  * This is the default configuration file. You shouldn't modify anything in this
  6.  * file. Instead, override the constants you want in your "config.php" file.
  7.  * 
  8.  * @author Maxime Raoust
  9.  * @copyright 2009-2010 NADEO
  10.  * @package ManiaLib
  11.  * @subpackage MVC
  12.  */
  13.  
  14. if(!defined('APP_MVC_FRAMEWORK_PATH'))
  15. {
  16.     /**
  17.      * Path to the MVC framework directory
  18.      */
  19.     define('APP_MVC_FRAMEWORK_PATH'dirname(__FILE__).'/');
  20. }    
  21. if(!defined('APP_MVC_FRAMEWORK_LIBRARIES_PATH'))
  22. {
  23.     /**
  24.      * Path to the MVC framework libraries directory
  25.      */
  26.     define('APP_MVC_FRAMEWORK_LIBRARIES_PATH'APP_MVC_FRAMEWORK_PATH.'libraries/');
  27. }    
  28. if(!defined('APP_MVC_FRAMEWORK_FILTERS_PATH'))
  29. {
  30.     /**
  31.      * Path to the MVC framework filters directory
  32.      */
  33.     define('APP_MVC_FRAMEWORK_FILTERS_PATH'APP_MVC_FRAMEWORK_PATH.'filters/');
  34. }
  35. if(!defined('APP_MVC_FRAMEWORK_VIEWS_PATH'))
  36. {
  37.     /**
  38.      * Path to the MVC framework views directory
  39.      */
  40.     define('APP_MVC_FRAMEWORK_VIEWS_PATH'APP_MVC_FRAMEWORK_PATH.'views/');
  41. }
  42. if(!defined('APP_FRAMEWORK_REQUEST_ENGINE_CLASS'))
  43. {
  44.     /**
  45.      * @ignore
  46.      */
  47.     define('APP_FRAMEWORK_REQUEST_ENGINE_CLASS''RequestEngineMVC');
  48. }
  49. if(!defined('APP_MVC_CONTROLLERS_PATH')) 
  50. {
  51.     /**
  52.      * Path to the controllers directory of your application
  53.      */
  54.     define('APP_MVC_CONTROLLERS_PATH'APP_PATH.'controllers/');
  55. }
  56. if(!defined('APP_MVC_VIEWS_PATH'))
  57. {
  58.     /**
  59.      * Path to the views directory of your application
  60.      */
  61.     define('APP_MVC_VIEWS_PATH'APP_PATH.'views/');
  62. }
  63. if(!defined('APP_MVC_FILTERS_PATH'))
  64. {
  65.     /**
  66.      * Path to the filters directory of your application
  67.      */
  68.     define('APP_MVC_FILTERS_PATH'APP_PATH.'filters/');
  69. }
  70. if(!defined('APP_MVC_MODELS_PATH')) 
  71. {
  72.     /**
  73.      * Path to the models directory of your application
  74.      */
  75.     define('APP_MVC_MODELS_PATH'APP_PATH.'models/');
  76. }
  77. if(!defined('APP_MVC_DEFAULT_CONTROLLER'))
  78. {
  79.     /**
  80.      * Default controller of your application
  81.      */
  82.     define('APP_MVC_DEFAULT_CONTROLLER''Home');
  83. }
  84. if(!defined('APP_MVC_DEFAULT_ACTION'))
  85. {
  86.     /**
  87.      * Default action when a controller hasn't defined its own default action.
  88.      * You shouldn't have to change this.
  89.      */
  90.     define('APP_MVC_DEFAULT_ACTION''index');
  91. }
  92. if(!defined('APP_MVC_USE_URL_REWRITE'))
  93. {
  94.     /**
  95.      * Does your application use Apache Mod Rewrite ?
  96.      * <ul>
  97.      * <li>Without mod rewrite: /index.php?/some_controller/some_action/</li>
  98.      * <li>With mod rewrite: /some_controller/some_action/</li>
  99.      * </ul>
  100.      */
  101.     define('APP_MVC_USE_URL_REWRITE'false);
  102. }
  103. if(!defined('APP_MVC_CONTROLLER_NAME_SEPARATOR'))
  104. {
  105.     /**
  106.      *  Controller name separator
  107.      *  eg. /some_request/ will be mapped to SomeRequestController
  108.      */
  109.     define('APP_MVC_URL_SEPARATOR''_');
  110. }
  111.  
  112. ?>