Kurinchi Blogger Scribbles …


Archive for June 14th, 2009

Jun 14
2009

cakePHP, codeIgniter: simple method to display array data

Last updated: June 17th, 2009

var_dump(), print_r() are commonly used functions to display data that is passed across controllers or views when playing in MVC frameworks. As the printed data stretches as a long string, it may be difficult to manipulate the resultset in most cases.

When programming in CakePHP or CodeIgniter or other MVC frameworks when you do not want to turn on the debugger routine and want to have a clean display of Array Data you can try adding a simple method in the Controller (appController in cakePHP) as follows
(more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict