Welcome Guest, Not a member yet? Register   Sign In
Display PNG img in view not working
#9

i think its do to with controllers and the way data is passed to a view.

So to use base_url() in a view from memory you have to use url helper ; i tend not to remember because what i've done is declare them in the base controller so that they are there in any subsequent controller that extends from the base controller.

Now its no problem echoing out a constant in a controller, but in a view , i guess that would have to be passed, in an appropriate way .
CMS CI4     I use Arch Linux by the way 

Reply


Messages In This Thread
Display PNG img in view not working - by flav - 11-25-2021, 06:17 AM
RE: Display PNG img in view not working - by flav - 11-26-2021, 04:33 AM
RE: Display PNG img in view not working - by flav - 11-29-2021, 06:16 AM
RE: Display PNG img in view not working - by captain-sensible - 11-29-2021, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB