Users Model Conflict

edited April 2014 in Modules
My event registration module has a model named users (event_users_model).

I recently noticed that when I click the users module (fuel) there is a conflict that renders the event_users_model list view.
Both "fuel/users" and "fuel/event/users" resolve to the event_users_model list view.

Do I need to update my event module to rename the event_users_model?
Or is there a place in the routes that I can avoid the conflict?

Event Module:
https://github.com/kbjohnson90/FUEL-CMS-Event-Module/tree/develop

Event Module Routes:
https://github.com/kbjohnson90/FUEL-CMS-Event-Module/blob/develop/config/event_routes.php

Comments

  • edited April 2014
    In your MY_fuel_modules.php file, try specifying the "model_name" parameter to be "event_users_model".
  • edited 3:28AM
    I am able to get to the event_users_model, but I am not able to get to the fuel_users_model.
  • edited 3:28AM
    I noticed in your event_fuel_modules.php file that the key is "user" which will conflict with FUEL's "user" module. Each module key needs to be different or they will replace one another. Try using "event_user".
  • edited 3:28AM
    A-ha! That makes sense.

    Likewise, I see that the blog module prefixes the keys with the module name.
    I'll make those changes.

    Thanks!
Sign In or Register to comment.