Can't find a route for 'cimake:model/PasswordResets' |
Hi guys.
I changed path App/Config/Routes.php to App/Router/Routes.php I changed the path in every file and it works properly but unfortunetely CodeIgniter v4.1.9 Command Line Tool stopped working when I'm trying to add new model "php spark make:model TheModel" it trows some errors and I don't understand why it do that. I thought "App/Config" where defined to somewhere else but it doesn't. Does someone can help? ![]() ![]() (05-09-2022, 11:47 AM)thedev Wrote: I changed the path in every file and it works properly but unfortunetely CodeIgniter v4.1.9 Command Line Tool stopped working when I'm trying to add new model "php spark make:model TheModel" it trows some errors and I don't understand why it do that. Where did you change the path? Routes.php should be in Config directory, because it is a config file.
@kenjis, is correct you should not change the path.
Also if you change the path to the public folder then you need to edit the spark file and change the path to the correct one in spark. PHP Code: // Path to the front controller change this Change the public to whatever you named the public folder my hosing uses public_html so I code like that. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-11-2022, 12:40 AM)InsiteFX Wrote: @kenjis, is correct you should not change the path.Yeh but what should I change in the spark file? I don't want to change app direcotory. I just want to change App/Config/Routes.php to App/Router/Routes.php
@thedev Find `Config/Routes.php` in the system folder.
You must change them except RouteCollection.php (and comments). Code: Found Occurrences in Directory .../CodeIgniter4/system |
Welcome Guest, Not a member yet? Register Sign In |