0

我正在 Opencart 中开发我的第一个模块。我使用的版本是 2.3。在我的控制器中,我有 index 方法和另一个处理我的表单数据的方法。我想在 index 方法中进行一些验证,如果它有一些错误,我想填充一个数组并将其传递回视图。谢谢。

4

1 回答 1

1

Your can pass the errors in array and then that array should be assinged in a session variable then you can get the errors on your form.

于 2017-07-13T01:55:13.193 回答