Skip to content
Advertisement

Tag: codeigniter

How to use renderSection in Codeigniter 4?

From the official documentation of Codeigniter 4 for view layouts there is a function renderSection that you can use at your templates. The main problem though is that I couldn’t figure out how this works. Please have in mind that I don’t want a work-around for this, I really need to know how the renderSection works and what I am

How can I have a variable that all model can access in Codeigniter?

I want all record in a user request have the same date_created (even milisecond). I intend to set a variable in CI_Model, and when it’s loaded, all other Model can access it. How can I do that? Thanks. Answer To create a global variable, you need to add a variable in application/config/constants.php. See steps : Create your own file in

PHP Looping data from 3 table relation into each div element

I need help. I want to show div element in my Codeigniter PHP page from 3 table relations: model = Controller : View : Above code show repeated sub_category_name by item_name. output Now= I want to get achieve data echo = Question: How to show/Looping item_name each by sub_category_id …? Thank’s for help. Answer i assume the result of your

Advertisement