Welcome Guest, Not a member yet? Register   Sign In
Routes problem
#3

(This post was last modified: 06-14-2020, 10:15 AM by Didytz.)

(06-14-2020, 08:41 AM)daveĀ friend Wrote: Please show the exact 404 message including "some controller that I don't have."

Just a guess, but I suspect you have not used namespace correctly.
So if i try to access that route with:
korisnik/admin/urediFeed/22
I get this:
Quote:Controller or its method is not found: \App\Controllers\Pers::index


It should not be namespace, because when I remove (:num) and $1, that route opens file from view which should be opened beforeĀ  with (:num) and $1 in route definition.

EDIT:

I decided to test this route with this:
I added (:num) in URI part and removede $1 from "right side" parameter, and it worked. But as soon as I add .... 'Pers/UserAdministracija::urediFeed/$1', it stop working. So am I passing $1 in correct way to my method "urediFeed" or what?
Reply


Messages In This Thread
Routes problem - by Didytz - 06-14-2020, 07:09 AM
RE: Routes problem - by dave friend - 06-14-2020, 08:41 AM
RE: Routes problem - by Didytz - 06-14-2020, 10:09 AM
RE: Routes problem - by burgoyn1 - 06-14-2020, 11:46 AM
RE: Routes problem - by Didytz - 06-14-2020, 12:47 PM
RE: Routes problem - by InsiteFX - 06-15-2020, 02:55 AM
RE: Routes problem - by Didytz - 06-15-2020, 06:37 AM
RE: Routes problem - by Didytz - 06-17-2020, 03:18 PM
RE: Routes problem - by InsiteFX - 06-18-2020, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB