Can Codeigniter see the information in the table with which it's related? |
## 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 ?> 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?
CI does not have such functionality.
You can write your own. Or use https://github.com/tattersoftware/codeig...-relations or look for other implementations. (03-20-2022, 04:40 AM)iRedds Wrote: CI does not have such functionality. thank you. I'm glad I got to know it clearly. |
Welcome Guest, Not a member yet? Register Sign In |