how to use __get magic method in controller? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to use __get magic method in controller? (/showthread.php?tid=16359) |
how to use __get magic method in controller? - El Forum - 03-04-2009 [eluser]tmsajin[/eluser] any body knows this to use inside controller? Code: public function __get($var) { how to use __get magic method in controller? - El Forum - 03-04-2009 [eluser]TheFuzzy0ne[/eluser] I can't see why you'd want to use it in a controller... Libraries, sure, but controller, I don't think so... how to use __get magic method in controller? - El Forum - 03-04-2009 [eluser]tmsajin[/eluser] i want to use like this, http://mysite.com/user/tmsajin http://mysite.com/user/testuser any other way to do ? how to use __get magic method in controller? - El Forum - 03-04-2009 [eluser]tmsajin[/eluser] yes , actualy my requirement is a basic one, and routing option is there how to use __get magic method in controller? - El Forum - 03-04-2009 [eluser]TheFuzzy0ne[/eluser] Yes, you will need to use routing. Have you managed to get everything working now? |