PHP板模板发送和获取动态数组以进行查看

时间:2018-09-26 04:32:21

标签: php plates

我使用plates Php Tamplate库。我的验证登录表单打印此数组:

Array
(
    [0] => The Customer Name field is required
    [1] => The Customer Password field is required
    [2] => The Email field is required
    [3] => The Gender field is required
    [4] => The Credit Card field is required
)

如何使用如下的addData方法将数据发送到登录名/索引:

$this->templates->addData(['??'], 'login/index');

并进入登录索引视图?!

0 个答案:

没有答案