Welcome Guest, Not a member yet? Register   Sign In
Help me with route, thanks
#1

(This post was last modified: 02-04-2020, 09:14 PM by mjamilasfihani.)

I use my codeigniter rc3 as HMVC. Here is my structure

[Image: 73802195-755ce700-47ef-11ea-8a2a-cf88cd83dd12.png]

I try to do some action from HomeView with input username and password also method POST that handled by Home Controller to ActionSignIn. I set the route like this

PHP Code:
$routes->get('action-signin''Acme\Home\Controllers\HomeAction\ActionSignIn::index'); 

Peekaboo, it show 404 when I press the submit button. I try to visit

Code:
https://my.project-name.tld/action-signin

directly, nothing was wrong.
Reply
#2

Acme\Home\Controllers\

It seems superfluous
Reply
#3

(02-05-2020, 04:04 AM)mintwint Wrote: Acme\Home\Controllers\

It seems superfluous

I should using group? That's your point, right?
Reply
#4

Its done, sorry I was missing something, maybe someone has same problem

https://codeigniter4.github.io/CodeIgnit...-in-routes
Reply
#5

I found the best way to understand the new routes is to view Lonnie's Myth/Auth.

Look at The routes file and the AuthController.

Myth:Auth
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(02-05-2020, 09:18 AM)InsiteFX Wrote: I found the best way to understand the new routes is to view Lonnie's Myth/Auth.

Look at The routes file and the AuthController.

Myth:Auth

great, thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB