![]() |
MYTH-AUTH userModel Factory - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: MYTH-AUTH userModel Factory (/showthread.php?tid=79208) |
MYTH-AUTH userModel Factory - mauroMbs - 05-11-2021 I am trying to understand how CI4 works, and above all MYTH-AUTH. My intention is to integrate the creation of the tables if they are non-existent. From what I understand it seems that a new copy of UserModel in the "App \ Models" folder can extend the "UserModel" of MYTH-AUTH based on the Factory rules, but is it ready to use or does it need a configuration? RE: MYTH-AUTH userModel Factory - MGatner - 05-11-2021 It’s all set! Since Myth:Auth loads all its models using Factories (in this case via the shorthand `model('UserModel')` ) Factories will take care of identifying extended version located in your App namespace and use those instead. RE: MYTH-AUTH userModel Factory - mauroMbs - 05-12-2021 (05-11-2021, 03:14 PM)MGatner Wrote: It’s all set! Since Myth:Auth loads all its models using Factories (in this case via the shorthand `model('UserModel')` ) Factories will take care of identifying extended version located in your App namespace and use those instead. I thought I had understood this from the documentation, but it doesn't actually work. Surely I made some mistakes. my model : PHP Code: <?php I use a controller called by ajax: PHP Code: <?php the _construct() of UserModel it's not execute. this RE: MYTH-AUTH userModel Factory - BillGates - 09-21-2022 (05-11-2021, 01:23 PM)mauroMbs Wrote: I am trying to understand how CI4 works, and above all MYTH-AUTH. I have the same question as you |