![]() |
Please help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Please help (/showthread.php?tid=51389) |
Please help - El Forum - 05-02-2012 [eluser]Unknown[/eluser] It is related to datamapper ORM Rights: var $has_many = array("roles"); - it has rights entered in table Role: var $has_many = array("rights"); - it has rights entered in table Relation will be roles_rights What I am doing is I am setting perimssion for one of my role say manager Code: Controller When I click on save button it should save in relation table, roles_rights. But is is not happening. Can anyone figure out what the problem is? I am not able to save the data. Actual code Code: $role = new Role(); Thanks |