Welcome Guest, Not a member yet? Register   Sign In
how to data in basecontroller.php pass to footer.php view codeigniter 4
#5

(This post was last modified: 08-03-2022, 11:25 PM by startup.)

(08-03-2022, 11:22 PM)ozornick Wrote: In what situation is the template called without a controller?
If this is some private information output, it must be passed to the method.
Do you have a working use case?

in codeigniter 3, i only write code inĀ  my_controller

view footer.php do like


$demo =$this->option ->myfunction();

echo $demo->site_name
Reply


Messages In This Thread
RE: how to data in basecontroller.php pass to footer.php view codeigniter 4 - by startup - 08-03-2022, 11:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB