hi... i'm try to array into checkbox and dropdown box.
this is my smarty array
{foreach from=$job_types key=k item=i}
<input type="checkbox" value="{$i.id}" />
{$k.type_name}
{/foreach}
this what i'm try to convert ...
(
* => JobType Object
(
[id] => 1
[var_name] => full_time
[type_name] => Full Time
[is_active] => Y
[errors] => Array
(
)
)
[1] => JobType Object
(
[id] => 2
[var_name] => part-time
[type_name] => Part Time
[is_active] => Y
[errors] => Array
(
)
)
)
Can you please let me know what i'm doing wrong..
i wont to turn php array into smarty checkbox or dropdown ....
please help
thank you.
I'm try to write php array into smarty....?
Started by arxh, Jul 25 2010 11:12 AM
1 reply to this topic
#1
Posted 25 July 2010 - 11:12 AM
|
|
|
#2
Posted 26 July 2010 - 02:01 PM
you need to read out the data from the objects to a normal array and assign that array to your smarty object.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall


Sign In
Create Account


Back to top









