Welcome Guest, Not a member yet? Register   Sign In
Controller & Model Name
#2

What you cited refers to auto-routing controllers.
The autorouter requires consistency in controller names.

If you define the routes yourself, then it doesn't matter what the name of the controller is.
The suffix is used to prevent class name conflicts. But it is not required, as, for example, when importing a model before a class declaration, you can assign an alias.
PHP Code:
// names conflict
use Model\User;
class 
User {} 
Reply


Messages In This Thread
Controller & Model Name - by InstantT - 06-27-2022, 10:17 AM
RE: Controller & Model Name - by iRedds - 06-27-2022, 02:30 PM
RE: Controller & Model Name - by kenjis - 06-27-2022, 05:06 PM
RE: Controller & Model Name - by kenjis - 06-27-2022, 07:49 PM
RE: Controller & Model Name - by FlavioSuar - 06-28-2022, 04:30 AM
RE: Controller & Model Name - by InstantT - 06-28-2022, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB