gyro/modules/staticpages/start.inc.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * @defgroup StaticPages 00004 * @ingroup Modules 00005 * 00006 * Routes all templates in view/templates/[lang]/static 00007 * 00008 * This allows simple creation of more or less static pages, like your privacy policy, an imprint etc. 00009 * 00010 * Just drop you files in the 'static' subdirectory of the template folder. Creating subdirectoris is supported, files named 00011 * "index.tpl.php" will be routed as directory 00012 * 00013 * Examples: 00014 * 00015 * \li The file app/view/templates/default/static/test.html.tpl.php will be served as /test.html 00016 * \li The file app/view/templates/default/static/subdir/test.php.tpl.php will be served as /subdir/test.php 00017 * \li The file app/view/templates/default/static/subdir/index.tpl.php will be served as /subdir/ 00018 * \li The file app/view/templates/default/static/subdir/index.html.tpl.php will be served as /subdir/index.html 00019 * \li The file app/view/templates/default/static/test.html will be not be served at all, since it does not 00020 * end on ".tpl.php" 00021 * 00022 * To access URLs of static pages use the action "static_[template_name]", where template name is the file name 00023 * without the ".tpl.php" extension. So the above examples are access like this: 00024 * 00025 * \li app/view/templates/default/static/test.html.tpl.php => static_test.html 00026 * \li app/view/templates/default/static/subdir/test.php.tpl.php => static_subdir/test.php. 00027 * \li app/view/templates/default/static/subdir/index.tpl.php => static_subdir/ 00028 * 00029 * Alternatively, you may map actions using the template name as a parameter named "page" to an action named 00030 * "static". This is used for historical reasons mainly, and should be regarded as deprecated 00031 */ 00032 if (!defined('STATICPAGES_PREPEND')) define('STATICPAGES_PREPEND', ''); 00033 if (!defined('STATICPAGES_APPEND')) define('STATICPAGES_APPEND', '');