For example,
I have an ORM set up like below.
$test = new Model_Test();
$test_result = $test->find_all();
foreach ($test_result as $tmp) :
// i would like to truncate the the $tmp->name and put it back to $test ORM like
$test->name = truncate($tmp->name, 20);
endforeach;
I would like to truncate the ORM result before passing to view. How can we do that?
Help appreciated!
thanks,