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

#1
Hi,

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:

Code:
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?
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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