application.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?php
  2. if (!defined('CF_SYSTEM')) {
  3. exit('External script access not allowed');
  4. }
  5. /**
  6. * Cygnite Framework
  7. * Global Configuration Settings
  8. *
  9. * An open source application development framework for PHP 5.3x or newer
  10. *
  11. * License
  12. *
  13. * This source file is subject to the MIT license that is bundled
  14. * with this package in the file LICENSE.txt.
  15. * http://www.cygniteframework.com/license.txt
  16. * If you did not receive a copy of the license and are unable to
  17. * obtain it through the world-wide-web, please send an email
  18. * to [email protected] so I can send you a copy immediately.
  19. *
  20. * @package : Apps
  21. * @subpackages : Configs
  22. * @filename : application
  23. * @description : You can set your all your global configurations here.
  24. * @author : Sanjoy Dey
  25. * @copyright : Copyright (c) 2013 - 2014,
  26. * @link : http://www.cygniteframework.com
  27. * @since : Version 1.0
  28. * @filesource
  29. * @warning : If you don't protect this directory from direct web access,
  30. * anybody will be able to see your configuration and settings.
  31. *
  32. *
  33. */
  34. return array(
  35. /**
  36. *--------------------------------------------------------------------------
  37. * Your Application Base URL
  38. *--------------------------------------------------------------------------
  39. * The base URL used to import your application assets in your web page.
  40. * Based on base url we will perform page redirect and other internal
  41. * functionality.
  42. *
  43. */
  44. 'base_path' => '',
  45. /*
  46. *--------------------------------------------------------------------------
  47. * Your Application Default Controller
  48. *--------------------------------------------------------------------------
  49. * Set your application default controller here. Default controller
  50. * will be called when you try to access cygnite application.
  51. */
  52. 'default_controller' => 'Home',
  53. /*
  54. *--------------------------------------------------------------------------
  55. * Your Application Default Method
  56. *--------------------------------------------------------------------------
  57. * You can set your application default method here. By default we
  58. * we will call index method of your controller.
  59. * You can also change the default method.
  60. *
  61. */
  62. 'default_method' => 'index',
  63. /*
  64. *---------------------------------------------------------------------------
  65. * Set Application Environment
  66. *---------------------------------------------------------------------------
  67. * You can set your application environment in order to handle errors and exceptions.
  68. * Development mode all errors are turned on. So that you can able to fix all issues easily.
  69. * Errors will be turned off in production server mode.
  70. *
  71. * Example :
  72. * environment => 'development/production'
  73. */
  74. 'environment' => 'production',//Errors are turned on in development environment
  75. /*
  76. *--------------------------------------------------------------------------
  77. * Your Application Character Encoding
  78. *--------------------------------------------------------------------------
  79. * Here you can set your application default character encoding . This encoding
  80. * will be used by the Str, Text, Form, and any other classes that need
  81. * to know what type of encoding to use for your generous application.
  82. *
  83. */
  84. 'encoding' => 'UTF-8',
  85. /*
  86. *--------------------------------------------------------------------------
  87. * Your Application Language
  88. *--------------------------------------------------------------------------
  89. * You can set your application default language here. Language library will
  90. * will take care rest.
  91. */
  92. 'language' => 'en',
  93. /*
  94. *--------------------------------------------------------------------------
  95. * Application Timezone
  96. *--------------------------------------------------------------------------
  97. * You can set your application timezone here.This timezone will
  98. * be used when cygnite need date time or any internal features.
  99. *
  100. */
  101. 'timezone' => 'UTC',
  102. /*
  103. *--------------------------------------------------------------------------
  104. * Application Encryption key
  105. *--------------------------------------------------------------------------
  106. * Set your encryption key here. You must set your encryption key here in order to
  107. * use cygnite secure encryption and session library. We used php mcrypt extension
  108. * library for encryption library. So please check whether you have else please activate
  109. * to work with secure encryption and session library.
  110. */
  111. 'cf_encryption_key' => 'cygnite-shaXatBNHQ4',
  112. /*
  113. *--------------------------------------------------------------------------
  114. * Benchmark Your Application
  115. *--------------------------------------------------------------------------
  116. * Enable profiling as True if you wish to benchmark your application. You can
  117. * make it FALSE to deactivate profiling. Cygnite will take care rest.
  118. */
  119. 'enable_profiling' => false,
  120. /*
  121. *--------------------------------------------------------------------------
  122. * ************Your Application Cache Config*************
  123. *--------------------------------------------------------------------------
  124. * You can enable cache here (example: TRUE/FALSE). Cygnite have
  125. * three type of cache driver FileCache, Memcache, APC to boost your
  126. * application performace. Follow user guide for usages.
  127. */
  128. 'enable_cache' => false,
  129. /*
  130. *---------------------------------------------------------------------------
  131. * Cache Name
  132. *---------------------------------------------------------------------------
  133. * Set your cache name here to generate cache file name if you are
  134. * using cygnite file caching technique.
  135. */
  136. 'cache_name' => 'file.cache',
  137. /*
  138. *---------------------------------------------------------------------------
  139. * Cache Extension
  140. *---------------------------------------------------------------------------
  141. * Set your cache extension here. Cygnite will take care of rest. Cache will
  142. * store with same extension which you will provide here.
  143. *
  144. */
  145. 'cache_extension' => '.cache',
  146. /*
  147. *---------------------------------------------------------------------------
  148. * Cache Type
  149. *---------------------------------------------------------------------------
  150. * Set your cache type here. Cygnite will take care of rest.
  151. *
  152. */
  153. 'cache_type' => 'file',
  154. /*
  155. *---------------------------------------------------------------------------
  156. * Cache Storage Location
  157. *---------------------------------------------------------------------------
  158. * Set your cache file storage location here. By default we are using
  159. * temp/cache.
  160. *
  161. */
  162. 'cache_directory' => 'temp.cache', //Default value is none
  163. /**
  164. *---------------------------------------------------------------------------
  165. * Cygnite Application Logs
  166. *---------------------------------------------------------------------------
  167. * If you enable debugger will generate error logs into apps/temp/logs/
  168. *
  169. */
  170. 'enable_logging' => false,
  171. /*
  172. *---------------------------------------------------------------------------
  173. * Logs File Name
  174. *---------------------------------------------------------------------------
  175. * Set your log file name here. Your applications logs will generate
  176. * by cygnite engine and store as filename you provide here.
  177. *
  178. */
  179. //'log_file_name' => 'application_logs' ,
  180. /*
  181. *---------------------------------------------------------------------------
  182. * Logs Storage Location
  183. *---------------------------------------------------------------------------
  184. * Set your log storage location here. By default we are using
  185. * temp/logs.
  186. *
  187. */
  188. 'log_path' => 'apps.temp.logs',
  189. /**
  190. * Enable error emailing. When any error occur in production
  191. * Mode email will trigger. Set true or false
  192. */
  193. 'enable_error_emailing' => false,
  194. /*
  195. * Email Configurations
  196. */
  197. 'email_configurations' => array(
  198. 'protocol' => 'smtp',
  199. 'smtp' => array(
  200. 'host' => 'smtp.gmail.com',
  201. 'username' => 'your gmail id',
  202. 'password' => 'your password',
  203. 'port' => '465',
  204. 'encryption' => 'ssl',
  205. ),
  206. 'sendmail' => array(
  207. 'path' => '/usr/sbin/exim -bs'
  208. ),
  209. ),
  210. 'params' => array(
  211. /*
  212. | You can define your params here.
  213. | All your params defined here has access
  214. | globally in your application.
  215. */
  216. 'admin_email' => '[email protected]',
  217. /*
  218. | We will make use of email address to send error log
  219. | when application is in production mode.
  220. |
  221. */
  222. 'log_email' => '[email protected]',
  223. ),
  224. );