1

I use CodeIgniter 4 latest version. And i want a route for example Controllers/1_0/Users.php But if i try use Users.php namespace to app\Controllers\1_0, i receive error. Is have solution or not? Best regards.

My routes:

$routes->get('user/login', "1_0\Users::login");

Users.php namespace:

namespace app\Controllers\1_0;

UPDATE: I receive this error:

"1_0" is not a valid namespace

and

404-Page not found

errro message

  • Your question looks very poorly formatted. This makes it hard to read. Please read [How do I format my code blocks?](https://meta.stackoverflow.com/questions/251361/how-do-i-format-my-code-blocks) – steven7mwesigwa Jul 06 '23 at 19:53
  • In addition, share with us the specific routing error that you're receiving. Otherwise, no one will be able to assist. – steven7mwesigwa Jul 06 '23 at 20:24

0 Answers0