···7676if (defined("PHP_ACTIVERECORD_ROOT"))
7777 HalfMoon\Config::initialize_activerecord();
78787979+/* bring in any post-framework but pre-route code */
8080+if (file_exists($f = HALFMOON_ROOT . "/config/application.php"))
8181+ require_once($f);
8282+7983/* bring in the route table and route our request */
8084if (file_exists(HALFMOON_ROOT . "/config/routes.php"))
8185 HalfMoon\Router::initialize(function($router) {
+6
skel/config/application.php
···11+<?php
22+/*
33+ post-framework initialization code, after everything is fully loaded
44+ but just before the requests is routed
55+*/
66+?>
+5-2
skel/config/boot.php
···11<?php
22/*
33- site-wide settings, loaded after framework
33+ early initialization of site-wide settings, loaded after halfmoon framework
44+ but before activerecord is initialized.
4555- should do per-environment setup like logging, tweaking php settings, etc.
66+ per-environment setup like logging, tweaking php settings, etc. can be done
77+ here. any code requiring activerecord or needing to be done after
88+ everything is initialized should be done in config/application.php.
69*/
710811/* session settings, change according to your application requirements */