Code Comments
Programming Forum and web based access to our favorite programming groups.Hi. Not so far i found that using arrays in config usefull for definin
errors, but i can't find functionalyti that help me define arrays for option
s or
radios.
I wrote some changes in Config_File.class.php.
Exsample who it works:
orders.cnf
TypeOptions[option_value1]=options_name1
TypeOptions[option_value1]=options_name1
orders.php
$smarty->config_load('orders.cnf');
$conf = $smarty->get_config_vars();
$smarty->assign('TypeOptions', $conf['TypeOptions']);
order.tpl.html
{html_radios options=$TypeOptions selected=$type name='type' separator='<br>
'}
I think it's very usefull.
In attach Config_File.class.php with small changes, changes mark with
//BEGIN changes
.. some code with my changes
//END changes
Thank you Bigildeev Artem(camel)
----------------------
http://74mail.ru/
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.