RE: Smarty::$default_resource_type not working
| From: | James Logsdon | Date: | Wed, 23 Mar 2005 22:42:51 +0000 |
| Subject: | RE: Smarty::$default_resource_type not working | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12361@lists.php.net to get a copy of this message | ||
Odd, I just re-made $default_resource_type 'db' and it's working now. Sorry about that.
James
Hello, After I got Smarty to work with a mysql resource (called db, its a direct cut and paste out of the documentation with some slight changes (formatting and table/column names). However, when I set the $default_resource_type to 'db' so I do not have to type db: in front of every template, it does not work. No error is given, it just won't work. {include file="header"} just outputs nothing. Even {foreach} won't parse correctly. If I use flat-files or add 'db:' to everything, it works. Here's some URLs: Script in question: http://pymo.improvisemedia.com/test.php Source: http://pymo.improvisemedia.com/test.phps Templates: http://pymo.improvisemedia.com/test_show.php Signed, James Logsdon