PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 28th, 2007, 06:03 PM
kkarumu kkarumu is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 kkarumu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FLEXY - possible to "parse" tpl file twice before output?

Need some help with the Pear Flexy template system.

I have some form elements that get's their name when the tpl file is parsed, all of the names and id's have a name and to that name I add a id.

The problem is when I try to add more elements to the form based on theri id.

<select name="foo{id}" id="foo{id}" selected="selected" >

I tried with this code, but it fails because the id in the tpl is not "parsed" and the id it looks for in the tpl file has not got it's new id yet.

$this->selectName = 'foo' . $id;

$this->elements[$this->selectName] = new HTML_Template_Flexy_Element;

foreach ($types as $key => $value){
$this->elements[$this->selectName]->setOptions(array($key => $value));
}

Any solutions? Is it possible to add the id to to tpl file first, and then add the elements?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > FLEXY - possible to "parse" tpl file twice before output?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway