Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter\View\Exceptions\ViewException
#1

(This post was last modified: 10-05-2021, 12:43 AM by PeVal.)

I have a problem with the error display file.

When I run the application on the server (unix), the system displays an error:

Code:
CodeIgniter\View\Exceptions\ViewException
Invalid file: errors\errors_list.php

on local (win, xampp) it works fine for me.

In Config/Validatin.php I have

PHP Code:
public $templates = [
  'list'  => 'CodeIgniter\Validation\Views\list',
  'single' => 'CodeIgniter\Validation\Views\single',
  'my_list' => 'errors\errors_list',        
]; 

File "errors_list.php" is in
Views/errors/errors_list.php

In view width form, I have
PHP Code:
echo \Config\Services::validation()->listErrors('my_list'); 

Can you please advise me where I have a mistake.

Thank you
Reply


Messages In This Thread
CodeIgniter\View\Exceptions\ViewException - by PeVal - 10-04-2021, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB