• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I make a ResourceController ignore the show method?


I don't like the 'show' method of the ResourceController – it seems redundant. I'd rather have my index show all or one based on whether a parameter is passed in or not. That's maybe just me. But how can I make this possible without getting into a HUGE fight with 'the way' CI 4 have chosen to handle this?

I'd basically like to avoid this:

error    "\"show\" action not implemented."

Is this possible or should I go back to just using a 'normal' controller and write it all myself, instead of ending up 'fighting' the framework?

I guess 'a lot' of decisions have been made in designing the resourcecontroller ... but if 'overriding' was part of it I don't know. Any ideas?

https://codeigniter4.github.io/userguide...outes-made ?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.