Welcome Guest, Not a member yet? Register   Sign In
Can Codeigniter see the information in the table with which it's related?
#1

## overview
Frameworks such as Python have a mechanism that allows you to retrieve information from another table via a foreign key when dealing with one table.
How can I do that with Codeigniter?
https://drive.google.com/file/d/1PS1WlNH...p=drivesdk

## for example, I want get school name by school_id
PHP Code:
<?= $certification->school_id->name ?>
https://drive.google.com/file/d/1OukUiA4...p=drivesdk

Or does that mechanism not exist in Codeigniter and each has to access a table, pass it to a variable and expand it into a template?
Reply
#2

CI does not have such functionality.
You can write your own. Or use https://github.com/tattersoftware/codeig...-relations or look for other implementations.
Reply
#3

(03-20-2022, 04:40 AM)iRedds Wrote: CI does not have such functionality.
You can write your own. Or use https://github.com/tattersoftware/codeig...-relations or look for other implementations.

thank you. I'm glad I got to know it clearly.  Smile
Reply




Theme © iAndrew 2016 - Forum software by © MyBB