You are here: Re: [SMARTY] newbie « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] newbie

Posted by Jochem Maas on 10/01/49 11:22

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.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация