Created
August 28, 2013 06:23
-
-
Save sugarHoge/6362690 to your computer and use it in GitHub Desktop.
ビュー変数へ配列渡し
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ▼ビュー | |
{{foreach from=$transitive_weather item=filename}} | |
<img border="0" src="{{$filename}}"> | |
{{/foreach}} | |
// ▼コントローラー | |
$transitive_weather = array( | |
'transitive_weather_1.gif', | |
'transitive_weather_2.gif', | |
'transitive_weather_3.gif' | |
); | |
$i_objView->assign('transitive_weather', $transitive_weather); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment