phpDocumentor mvc
[ class tree: mvc ] [ index: mvc ] [ all elements ]

Source for file init.php

Documentation is available at init.php

  1. <?
  2. /**
  3. * The MVC Package.
  4. * This is the init file for the myPHP MVC (Model View Controller) system
  5. *
  6. * @package mvc
  7. * @filesource
  8. * @see MYPHP_MVC_PATH/init.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * @global HTML_MVC_PATH Defines the Path to the MVC package, FIXED, do not change ...
  18. */
  19. define('HTML_MVC_PATH' , MYPHP_MVC_PATH.'/html');
  20. define('HTML_MVC_CONTROLLER_PATH', HTML_MVC_PATH.'/controller');
  21. define('HTML_MVC_RESOURCE_PATH' , HTML_MVC_PATH.'/resource');
  22. define('HTML_MVC_VIEW_PATH' , HTML_MVC_PATH.'/view');
  23.  
  24. /**
  25. * Define the MVC system constants, FIXED, do not change ...
  26. * must be called before Default.php
  27. * @see HTML_MVC_RESOURCE_PATH.'/Define.php' The MVC Define Package
  28. */
  29. if (defined('HTML_MVC_RESOURCE_PATH')) {
  30. if (file_exists(HTML_MVC_RESOURCE_PATH.'/Define.php')) {
  31. require_once(HTML_MVC_RESOURCE_PATH.'/Define.php');
  32. } else {
  33. die('MYPHP_MVC_PATH/init.php, Unable to include HTML_MVC_RESOURCE_PATH/Define.php from '.HTML_MVC_RESOURCE_PATH);
  34. }
  35. }
  36.  
  37. /**
  38. * Define the default values, FIXED, do not change ...
  39. * NOTE: Define.php must be called before this file
  40. * @see HTML_MVC_RESOURCE_PATH.'/Default.php' The MVC Default Package
  41. */
  42. if (defined('HTML_MVC_RESOURCE_PATH')) {
  43. if (file_exists(HTML_MVC_RESOURCE_PATH.'/Default.php')) {
  44. require_once(HTML_MVC_RESOURCE_PATH.'/Default.php');
  45. } else {
  46. die('MYPHP_MVC_PATH/init.php, Unable to include HTML_MVC_RESOURCE_PATH/Default.php from '.HTML_MVC_RESOURCE_PATH);
  47. }
  48. }
  49. ?>

Documentation generated on Thu, 22 Dec 2005 17:11:58 +0100 by phpDocumentor 1.3.0RC3