在cakephp中重新加载页面后使用会话保存数据

时间:2015-06-04 03:07:19

标签: session cakephp

我的方案是我需要保存用户输入的数据。我需要做什么以及我需要处理哪些文件?

<div>
<?php
    echo $this->Form->input('Deal.billing_cust_name',
                            array('label' => __l('Customer Name')));
    echo $this->Form->input('Deal.billing_cust_address',
                            array('label' => __l('Customer Address')));
    echo $this->Form->input('Deal.billing_cust_city',
                            array('label' => __l('Customer City')));
    echo $this->Form->input('Deal.billing_cust_country',
                            array('label' => __l('Customer Country')));
?>
</div>
<div class="grid_11 grid_right">
<?php
    //echo $this->Form->input('Deal.billing_cust_country',
    //                        array('label' => __l('Customer Country'),
    //                              'type' => 'select',
    //                              'options' => $gateway_options['countries'],
    //                              'empty' => __l('Please Select')));
    echo $this->Form->input('Deal.billing_cust_state', 
                            array('label' => __l('Customer State')));
    echo $this->Form->input('Deal.billing_zip', 
                            array('label' => __l('Zip Code')));
    echo $this->Form->input('Deal.billing_cust_tel', 
                            array('label' => __l('Phone')));
    echo $this->Form->input('Deal.billing_cust_email', 
                            array('label' => __l('Email')));
?>
</div>

0 个答案:

没有答案