Reply to Create associative array out of array for patTemplate

Your name:

Reply:


Posted by aaron on 03/17/06 17:28

I have an array from -
$eventoptions = explode("," ,$eventoptions);

Now I to put all the results from $eventoptions into the patTemplate
engine inorder to display the results.

I am trying to do this through
$tmpl->addVars( 'body-list-rows', $eventoptions, 'row_' );


The problem is inorder to use the addVars function I need $eventoptions
to be an associative array.

"void addVars( string $template, array $variables, [string $prefix =
""] )

Adds several variables to a template

Each Template can have an unlimited amount of its own variables
$variables has to be an assotiative array containing variable/value
pairs"

Anyone have anyideas how to feed results from "$eventoptions =
explode("," ,$eventoptions);" to the patTemplate

[Back to original 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

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