index.php
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
use Action\AbstractAction;
class IndexController extends AbstractAction
{
/**
* 订单确认
*/
public function indexAction()
{
$data = array(
'cartEnsurePage' => true,
'orderEnsure'=>array(
'hasAddress' => array(
array(
'user' => '王成龙',
'address' => '江苏省南京市建邺区嘉陵江东街18号,国家广告产业园5栋17楼,YOHO 18605269243',
'checked' => true,
'id' => 100
)
)
)
);
$this->_view->display('cart', $data);
}
//市
public function getCityAction()
{
$data = array(
array(
'name' => '111市',
'value' => 11
),
array(
'name' => '222市',
'value' => 22,
'checked' => true
),
array(
'name' => '333市',
'value' => 33
)
);
$this->echoJson($data);
}
}