Re: [SMARTY] newbie
| From: | Jochem Maas | Date: | Tue, 26 Jul 2005 12:47:29 +0000 |
| Subject: | Re: [SMARTY] newbie | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12856@lists.php.net to get a copy of this message | ||
does the 'newbie' relate to:
1. smarty
2. php
3. php5
4. asking questions ;-)
5. most of the above
Patrick Roane wrote:
I'm on ch 7 of the php5/myswl/ecomm book.which book??
There is an error I get whenever I press the 'Edit Categories' button:you say this as if there has only ever been one 'Edit Categories' button implemented in the whole of cyberspace ... nobody on this list is sat next to you reading the book with you, so take the time to explain/give context to your problem.
Fatal error: Cannot use object of type DB_result as array in c:\customfurniture\templates_c\%%F9^F97^F97AE06E%%admin_categories.tpl.php on line 49 The template is right from the book, so I'm not surebut is the version of Smarty you are using from the book also? maybe you have a version mismatch issue (things change :-) regardless the book's source code may just have an error in it...
where I should start. Has anyone seen this erroryou read the error msg right? do you understand what it is telling you? (that is not meant sarcastically, I well remember reading some of my first [php] error msgs and often being completely lost as to what it was trying to tell me!) ================ if you what you book example to work it looks like you will have to edit admin_categories.tpl (which is probably in a dir called 'templates') or you might want to change DB_result to implement the Iterator (SPL) interface. or maybe the easiest thing to do is make sure this example site uses the version of Smarty it was designed with (I'll assume the book mentions this somewhere - this is assuming that Smarty wasn't packaged with the examples).
before? Thanks- Patrick Roane Web design and development www.franklin-band.com Fox River Grove, Il.