Login.php 1.17 KB
<?php

use Action\AbstractAction;

class LoginController extends AbstractAction
{
    /**
     * 登录页
     */
    public function indexAction()
    {   
        $data = array(
            'loginPage' => true,
            'passport' => array(
                'coverHref' => '/passport',
                'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
                'countryCode' => '86',
                'countryName' => '中国',
                'countryList' => array(
                    array(
                        'code' => '61',
                        'name' => '澳大利亚'
                    ),
                    array(
                        'code' => '82',
                        'name' => '韩国'
                    ),
                    array(
                        'code' => '1',
                        'name' => '加拿大'
                    ),
                    array(
                        'code' => '86',
                        'name' => '中国'
                    )
                )
            )
        );
        $this->_view->display('index', $data);
    }
}