setCacheSettings(false, "test_page.cache", DC_DEFAULT_CACHE_TIMEOUT, null); // set the cache settings $page->name = "ct_home_page"; $page->page_title = "Welcome to Cherrytree"; $page->authentication_required = FALSE; // do we need to log in to see this page $page->manage_user_input = true; // are we going to filter the user input $page->header_templates = array("Default_Javascript_JQueryIncludes.tpl", "Default_Javascript_SiteJavascript.tpl", "Default_Javascript_CatalogueListJavascript.tpl"); // set the templates to include $page->page_templates = array( "Default_Content_HomePagePanel.tpl", ); $page->logged_in_page_templates = array("LoggedIn_Navigation_Categories.tpl", "LoggedIn_Content_HomePagePanel.tpl",); $page->footer_templates = array(); // $page->templates_to_swap = array("Default_Content_HomePagePanel.tpl" => "Test_Content_Test.tpl"); $page->request_values_to_collect = array("id" => DC_REGEX_NUMERIC, "action" => DC_REGEX_PLAIN_TEXT, "action-confirmed" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT); // set the values we are interested in getting from the $_REQUEST superglobal $page->displayDebugPanel = DC_DISPLAY_DEBUG_PANEL; // set wheter to display the debugging panel //$page->displayDebugPanel = true; $page->createPage(); // crreate the page }else{ // something went wrong in the config file and we can't find the page class echo DC_DATABASE_SERVER_ERROR_MESSAGE; } }else{ // we can't find the config file echo "
Unable to find config file at: ".dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.'dc-devcore-config/config.php.'.".
Please check the file path is correct.