using of remap function passing it parameter - 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: using of remap function passing it parameter (/showthread.php?tid=49435) |
using of remap function passing it parameter - El Forum - 02-19-2012 [eluser]mazzy[/eluser] In my views I call show function stored in a controller named search. to this function I pass two parameter like this way: Code: <?php echo site_url("search/show/param1/param2"); ?> I would use _remap function in the way I can show as URL : Code: /search/show/param1-param2 using of remap function passing it parameter - El Forum - 02-19-2012 [eluser]InsiteFX[/eluser] CodeIgniter User Guide - URI Class To use _remap it is like this: ./application/config/routes.php Code: // ------------------------------------------------------------------------ Code: /** using of remap function passing it parameter - El Forum - 02-19-2012 [eluser]mazzy[/eluser] please can you do an example with data I posted? I didn't understand how pass params. Do I have to put them into params array? using of remap function passing it parameter - El Forum - 02-19-2012 [eluser]InsiteFX[/eluser] there passed through the url |