#1 daixingchen0
我想在模板里加入php代码,请问怎么加入<{php}>
<{/php}>
这个标签无效。。
2013-07-31 09:31:34
2013-07-31 09:31:34
2013-07-31 09:38:53
daixingchen0 发表于 2013-7-31 09:38
http://www.speedphp.com/thread-3741-1-1.html 这个页面我没看到那个是我需要的。
我想要的是echo "aaaa"; ...
2013-07-31 09:53:59
2013-07-31 10:24:01
2013-07-31 11:25:49
Array我关联了。按照jake大神的指示,控制器打印了下。。请问[sang] 我要对应模板赋值(图片为例) <{$$one.sang.img}>
(
[id] => 1
[fen_title] => 第1个分类
[fen_desc] => 0
[sang] => Array
(
[0] => Array
(
[s_id] => 36
[s_fenlei] => 1
[s_title] => 第一个商家
[s_img] => upload/20130727/1374908032649.jpg
[s_address] => 辽宁省鞍山市铁东区啊啊啊啊
[s_call] => 15421452142
[s_contents] => 231654546
[s_city] => 1
[s_time] => 2013-07-27
)
[1] => Array
(
[s_id] => 37
[s_fenlei] => 1
[s_title] => 第二个商家
[s_img] => upload/20130727/1374908095346.jpg
[s_address] => 打算刘大姐看爱仕达撒娇老卡机的离开
[s_call] => 545645665445646
[s_contents] => 23132132
[s_city] => 1
[s_time] => 2013-07-27
)
[2] => Array
(
[s_id] => 39
[s_fenlei] => 1
[s_title] => 213213
[s_img] => upload/20130727/1374908212349.jpg
[s_address] => 大时代爱仕达撒萨德和萨科和看见啊是
[s_call] => 4456465465465
[s_contents] => 21321大
[s_city] => 1
[s_time] => 2013-07-27
)
[3] => Array
(
[s_id] => 40
[s_fenlei] => 1
[s_title] => 1发生大3242
[s_img] => upload/20130727/1374908234440.jpg
[s_address] => 是分萨达萨达发达省份萨达对萨萨达
[s_call] => 324324324324324324
[s_contents] => 3243反对
[s_city] => 1
[s_time] => 2013-07-27
)
[4] => Array
(
[s_id] => 41
[s_fenlei] => 1
[s_title] => 啊是大三的
[s_img] => upload/20130727/1374908303312.jpg
[s_address] => 213123萨达看见啊是对萨阿萨
[s_call] => 12321321321321123
[s_contents] => 213213撒的
[s_city] => 1
[s_time] => 2013-07-27
)
[5] => Array
(
[s_id] => 42
[s_fenlei] => 1
[s_title] => 啊是打算阿萨
[s_img] => upload/20130727/1374908359738.jpg
[s_address] => 123123213爱仕达啊阿萨
[s_call] => 213213213213213213
[s_contents] => 打算啊阿萨
[s_city] => 1
[s_time] => 2013-07-27
)
[6] => Array
(
[s_id] => 44
[s_fenlei] => 1
[s_title] => 都发生的方式的
[s_img] => upload/20130727/1374908457697.jpg
[s_address] => 阿萨打算打算是地方对萨的阿萨
[s_call] => 3214324324324324
[s_contents] => 23421213 范德萨
[s_city] => 1
[s_time] => 2013-07-27
)
)
)
2013-07-31 11:43:17
2013-07-31 12:31:12
Array模板代码如下
(
[0] => Array
(
[id] => 1
[fen_title] => 第1个分类
[fen_desc] => 0
[sang] => Array
(
[0] => Array
(
[s_id] => 36
[s_fenlei] => 1
[s_title] => 第一个商家
[s_img] => upload/20130727/1374908032649.jpg
[s_address] => 辽宁省鞍山市铁东区啊啊啊啊
[s_call] => 15421452142
[s_contents] => 231654546
[s_city] => 1
[s_time] => 2013-07-27
)
[1] => Array
(
[s_id] => 37
[s_fenlei] => 1
[s_title] => 第二个商家
[s_img] => upload/20130727/1374908095346.jpg
[s_address] => 打算刘大姐看爱仕达撒娇老卡机的离开
[s_call] => 545645665445646
[s_contents] => 23132132
[s_city] => 1
[s_time] => 2013-07-27
)
2013-08-01 09:44:01
2013-08-01 10:25:29