|
Posted by Patrick Roane on 10/01/96 11:22
My bad ...more clarification should have been given.
As for answering the 'newbie' question:
1. smarty- just the basics
2. php & php5- I understand the basics and have a
decent understanding of the language
3. asking questions- If I get a response ...should I
reply to the whole group or just the individual?
The book I'm using is Beginning PHP 5 and MySQL
E-Commerce by Cristian Darie/Mihai Bucica.
The smarty versions in book/and the one I'm using are
the same.
As for the error message- I'm not sure what it means
exactly. The only connection I can make is that it has
something to do w/the 'admin_categories.tpl' and a
MySQL result set?
Everything had been working pretty well up to the
point where I have to design the 'catalog
administration' section of the site (where the client
can login and edit his
products/descriptions/departments etc.) The site is
for a custom furniture store. Anyway, one response I
got for this list suggested that:
"...the template is trying to iterate an object like
it was an
array, probably due to wrong passing of variables to
the template."
I combed through my code and I didn't find any
variable discrepancies (but mabey I missed something).
Thanks for your help.
--- Jochem Maas <jochem@iamjochem.com> wrote:
> 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
> sure
>
> but 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 error
>
> you 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.
> >
>
>
Patrick Roane
Web design and development
www.franklin-band.com
Fox River Grove, Il.
Navigation:
[Reply to this message]
|