in reply to Catalyst - Model Data Not Rendering in TT Template

I've tested everything for syntax. The syntax is in order; however, there seems to be a problem with the DTD. The DTD isn't valid. This seems to be the main sticking point:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1.dtd">
Here's a validator to double-check.

Replies are listed 'Best First'.
Re^2: Catalyst - Model Data Not Rendering in TT Template
by roho (Bishop) on Mar 17, 2010 at 03:41 UTC
    Thanks for checking things out Khen1950fx , and thanks for the link to the validator. The DTD is definitely not valid and needs to be fixed. I tried running the app with the statement commented out that stores 'messages' in the stash, and the web page renders and displays OK (minus the values from the database of course).

    #$c->stash->{messages} = $c->model('TestDatabase::test');

    There must be something about the structure of 'messages' in the stash that TT doesn't like. I don't know enough about DBIx::Class (yet) to know what to look for, but I'll keep digging. Thanks again.

    "Its not how hard you work, its how much you get done."