You are here: Re: include name from variable name? help? « PHP Programming Language « IT news, forums, messages
Re: include name from variable name? help?

Posted by Acrobatic on 12/04/07 22:26

> I understand the first bit, but the bit regarding "$yourSmartyForm-
>
> >assign('imageCat','2'); I'm a little lost with.

In your code you need to assign a Smarty variable with the value of
the imageCat you want. Are you using Smarty forms, ie "$yourSmartyForm
= new Smarty();"

If so, then you can assign a variable to be used in the {php} script
by saying $yourSmartyForm->assign('imageCat','2');

Then reference "$imageCat" within the {php} blocks. Clear as mud :)

 

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

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