Closed S3lfC0d3r closed 6 years ago
$errors = [
'The Customer Name field is required',
'The Customer Password field is required',
// ....
];
/** @var \League\Plates\Engine $engine */
$engine->addData(['errors' => $errors], 'login/index');
// or...
$engine->render('login/index', ['errors' => $errors]);
...in your [path_to_templates]/login/index.php
<?php foreach ($errors as $error): ?>
<?=$error ?><br>
<?php endforeach ?>
@napec Thank you for your response. @S3lfC0d3r @napec's response is precisely the way to go about this.
If you have any other issues let me know, otherwise, i'll close this issue. Thanks!
@napec @ragboyjr Sorry For delay Im so Busy..
Thanks @napec Good Work.
My validate login form print this array:
how do can i send data to
login/index
usingaddData
method like this:and get in login index?!
Thanks for any help