Form Validation : Return Current View |
06-20-2022, 07:23 AM
(This post was last modified: 06-21-2022, 12:36 PM by InstantT. Edit Reason: Delete HTML Div )
Hello everyone,
I would like to know how to return the current view on which the user is, when validating a form. Is it possible? In my controller, i have : PHP Code: if (!$this->validate([ Instead of "home" I would like the view to be the one the user is on I also included in my layout, a file "_errors-form.php" which contains : PHP Code: <?php use Config\Services; ?> Is this the best method? Thanks in advance for your help --- I am not a developer ---
(06-20-2022, 07:23 AM)InstantT Wrote: In my controller, i have : Why don't you change the "home" to the view file name that you want? |
Welcome Guest, Not a member yet? Register Sign In |