Hi, great topic! However, I cannot get an article to save, even though I receive a message saying "your changes have been saved", nothing appears in the archive.
Here is my config.php file:
Here is a live demo:
barrett-hc.com/i/
Here is my config.php file:
<?php
ini_set( "display_errors", true );
date_default_timezone_set( "Australia/Sydney" ); // http://www.php.net/manual/en/timezones.php
define( "DB_DSN", "mysql:host=localhost;dbname=barrett_cms" );
define( "DB_USERNAME", "xxxx" );
define( "DB_PASSWORD", "xxxx" );
define( "CLASS_PATH", "classes" );
define( "TEMPLATE_PATH", "templates" );
define( "HOMEPAGE_NUM_ARTICLES", 5 );
define( "ADMIN_USERNAME", "admin" );
define( "ADMIN_PASSWORD", "mypass" );
require( CLASS_PATH . "/Article.php" );
function handleException( $exception ) {
echo "Sorry, a problem occurred. Please try later.";
error_log( $exception->getMessage() );
}
set_exception_handler( 'handleException' );
?>
Here is a live demo:
barrett-hc.com/i/


