return row to view help - 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: return row to view help (/showthread.php?tid=45866) |
return row to view help - El Forum - 10-09-2011 [eluser]Unknown[/eluser] ok, im just having a huge brain fart here... im trying to return a single row to my view, but im missing a step along the way. How do I pass a sinlge row of data from my db threw my controller and into my view page? Model snip: Code: public function get_tech_name($id) { Controller snip: Code: public function index() View: (The Welcome line is where I simply want to print the techs name, but it only prints the first letter of their name, because im doing it the wrong way lol) Code: <body> |