Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4.2 Auto Routing weird thing happening
#4
Exclamation 
(This post was last modified: 06-23-2022, 11:21 AM by Gary.)

Wow!

So much for simple "Download a new copy of the framework, and then replace the system folder" upgrades...

This change seems like a mammoth swallow!.... I'd go as far as disputing that "Improved" is appropriate in the heading: New Improved Auto Routing (https://codeigniter4.github.io/CodeIgnit...to-routing).

My site is also mostly Ajax-driven... this will mean I need to rename EVERY method... in the CI/PHP and JavaScript code throughout the whole site, and in 3rd Party apps that have been pulled into the site... if I want to use the auto-routing!!?

What happens to controllers that have previously handled more than one method (get/post etc)?

I've already had a mechanism built in for blocking certain inappropriate methods... so this seems like a double poke-in-the-eye... or wherever.

Is there not possibly a better way to implement functionality than using a prefix on user-defined function names?!  Maybe like a command/function that could be immediately called by the user in the function if they were wanting to invoke this functionality... like blockUnlessIsGet() or blockUnlessIsPost()?

And it's all very well just saying disable it... what happens when this option disappears and it becomes mandatory in v5 and there's an even bigger code-base balanced on this option (?)... many folk can already see how mandatory pans out.
Reply


Messages In This Thread
RE: Codeigniter 4.2 Auto Routing weird thing happening - by Gary - 06-23-2022, 06:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB