Welcome Guest, Not a member yet? Register   Sign In
Making data available in ALL views
#6

(06-15-2021, 12:25 AM)ikesela Wrote: why don't make it as Helper (put file in helper folder, procedural function) . accessible on all view. wonder why you using so many controller , should be one controller is enough per site ( i mean: frontpage 1 controller, members 1 controller, admin 1 controller )

It is in a helper. My issue is I cannot access it from the view. I get "Undefined variable" when I do. 

This is a very large business management site. Each section of the admin has it's own controller because it is so large. For instance the customer management controller is over 600 lines alone (and I am not done with that section yet - will probably double).
Reply


Messages In This Thread
RE: Making data available in ALL views - by SoccerGuy3 - 06-15-2021, 07:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB