For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > July 2007 > QF + Smarty dynamic renderer and html element









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author QF + Smarty dynamic renderer and html element
Köteles Zoltán

2007-07-11, 7:02 pm

Hello,

I'd like to create a group
$links['link'] =& HTML_QuickForm::createElement('text', 'links_link',
'Link');
$links['title'] =& HTML_QuickForm::createElement('text', 'links_title',
'CÃ_m');
$links['new'] =& HTML_QuickForm::createElement('link', 'links_new', '',
'java script:void(0);', 'új link', array('onclick' => 'new_link();'));
$links['mydiv'] =& HTML_QuickForm::createElement('html', '<div
id="myDiv"> </div>');
$form->addGroup($links, 'links', 'KülsÅ‘ link', ', ');

But the html element can't rendered.

[7] => Array
(
[name] => links
[value] => Array
(
[0] => 0
)

[type] => group
[frozen] =>
[required] =>
[error] =>
[label] => Kßls� link
[separator] => , 
[elements] => Array
(
[0] => Array
(
[name] => links[links_link]
[value] =>
[type] => text
[frozen] =>
[required] =>
[error] =>
[label] => Link
[html] => <input name="links[links_link]" type="text" />

)

[1] => Array
(
[name] => links[links_title]
[value] =>
[type] => text
[frozen] =>
[required] =>
[error] =>
[label] => CÄ‚Â_m
[html] => <input name="links[links_title]" type="text" />
)

[2] => Array
(
[name] => links[links_new]
[value] =>
[type] => link
[frozen] =>
[required] =>
[error] =>
[label] =>
[html] => <a onclick="new_link();" name="links[links_new]" href="java script:void(0);">Ăşj link</a>
)

)

)

Where's my html element (empty div)?
Or how can I create an empty div with dynamic smarty and QF?

Thanks a lot
ZoTyA
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com