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

Source for file init.php

Documentation is available at init.php

  1. <?
  2. /**
  3. * The Layout Package
  4. * This is the init file for the myPHP Layout system
  5. *
  6. * @package layout
  7. * @filesource
  8. * @see MYPHP_LAYOUT_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_BASE_PATH Defines the Path to the packages, FIXED, do not change
  18. */
  19. define('HTML_LAYOUT_PATH', MYPHP_LAYOUT_PATH.'/html');
  20.  
  21. /**
  22. * @global HTML_LAYOUT_PAGE_PATH Defines the Path to each package, FIXED, do not change
  23. */
  24. define('HTML_LAYOUT_PAGE_PATH' , HTML_LAYOUT_PATH.'/page');
  25. define('HTML_LAYOUT_RESOURCE_PATH', HTML_LAYOUT_PATH.'/resource');
  26. define('HTML_LAYOUT_UTIL_PATH' , HTML_LAYOUT_PATH.'/util');
  27.  
  28. /**
  29. * Define the system Layout constants, FIXED, do not change ...
  30. * must be called before Default.php
  31. * @see HTML_LAYOUT_RESOURCE_PATH.'/Define.php', The Define Layout Package
  32. */
  33. if (defined('HTML_LAYOUT_RESOURCE_PATH')) {
  34. if (file_exists(HTML_LAYOUT_RESOURCE_PATH.'/Define.php')) {
  35. require_once(HTML_LAYOUT_RESOURCE_PATH.'/Define.php');
  36. } else {
  37. die('MYPHP_LAYOUT_PATH/init.php, Unable to include HTML_LAYOUT_RESOURCE_PATH/Define.php from '.HTML_LAYOUT_RESOURCE_PATH);
  38. }
  39. }
  40.  
  41. /**
  42. * Define the default Layout values, FIXED, do not change ...
  43. * NOTE: Define.php must be called this file
  44. * @see HTML_LAYOUT_RESOURCE_PATH.'/Default.php', The Default Layout Package
  45. */
  46. if (defined('HTML_LAYOUT_RESOURCE_PATH')) {
  47. if (file_exists(HTML_LAYOUT_RESOURCE_PATH.'/Default.php')) {
  48. require_once(HTML_LAYOUT_RESOURCE_PATH.'/Default.php');
  49. } else {
  50. die('MYPHP_LAYOUT_PATH/init.php, Unable to include HTML_LAYOUT_RESOURCE_PATH/Default.php from '.HTML_LAYOUT_RESOURCE_PATH);
  51. }
  52. }
  53.  
  54. /**
  55. * Initializes the Layout system with Request params, FIXED, do not change ...
  56. * The Initialize must come before ./config.php and <root>/setup.php
  57. * @see HTML_LAYOUT_RESOURCE_PATH.'/Initialize.php', The Layout Initialize Package
  58. */
  59. if (defined('HTML_LAYOUT_RESOURCE_PATH')) {
  60. if (file_exists(HTML_LAYOUT_RESOURCE_PATH.'/Initialize.php')) {
  61. require_once(HTML_LAYOUT_RESOURCE_PATH.'/Initialize.php');
  62. } else {
  63. die('MYPHP_LAYOUT_PATH/init.php, Unable to include HTML_LAYOUT_RESOURCE_PATH/Initialize.php from '.HTML_LAYOUT_RESOURCE_PATH);
  64. }
  65. }
  66. ?>

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