Ticket Details
Blog tutorial fails with error
BUG Ticket (closed)
###What happened: /posts displays this error: Fatal error: Uncaught exception 'RuntimeException' with message 'The data connection default is not configured' ...in ...libraries/lithium/data/Model.php on line 494 ###What was expected: - display of posts ### Affects: - 0.7 and higher [wiki:drafts/blog-tutorial Blog tutorial] runs as expected on version 0.6
As of Lithium 0.7, if you use DB connections you need to uncomment the line: {{{require __DIR__ . '/connections.php'}}} from your {{{app/config/bootstrap.php}}} fileCan the tutorial be updated to reflect this change? The tutorial did indeed work after making this change. Example text to appear at the end of the "Connection setup" section could be: Starting in 0.7, you need to set up your application to use a database connection. To do this, open up ```app/config/bootstrap.php``` and uncomment the line that looks like this: {{{ require __DIR__ . '/connections.php'; }}}