CMS hidden error

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

22-Apr-12 23:29
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:



<?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/
23-Apr-12 13:19
Sorry for this thread, I figured out the solution soon after posting. I had to manually make the article table instead of running the SQL file.

BUT.

I would like to figure out how to make the "homepage.php" spit out the articles INLINE,,, instead of BLOCK. Because I combined the Skeleton template and want more flexible output of article list. I think simply if you add something to accomidate for the output to all types of medium (iPhones, etc...) this would indefinatly make 3rd party CMS obsolete.
04-May-12 05:29
@jvt4: Not totally sure what you mean, but you can use the CSS "display: inline" and "display: block" properties to control how the page elements are displayed.

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated