Welcome Guest, Not a member yet? Register   Sign In
How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana
#1

(This post was last modified: 05-23-2025, 10:17 AM by massimiliano1.mancini.)

Hi everyone,
I'm working on a project where I'm using an MVCM (Model-View-Controller-Manager) pattern. Here's how I’ve structured it:
  • Model: Represents the database table.
  • Entity: Represents a single row of the table.
  • Manager: Contains the business logic that coordinates between models and entities.
  • Controller: Talks to the Manager, which then handles the lower-level details.
I've created a Managers directory inside app/ , and I intend for my controllers to interact only with Managers — not directly with Models or Entities.
The issue: inside the Manager classes, I’m unable to use common global functions like helper(), model(), etc., that work seamlessly in Controllers.

Question:
Is there a way to make these global CodeIgniter functions available inside my custom Managers classes, just like they are in Controllers?

Thanks in advance!
Reply


Messages In This Thread
How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana - by massimiliano1.mancini - 05-23-2025, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB