我使用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');
并进入登录索引视图?!