![]() |
text helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: text helper (/showthread.php?tid=2788) |
text helper - El Forum - 08-24-2007 [eluser]abbe01[/eluser] Hi, I am using text helper of CI. I have load the helper in my controllers. But, once I use it for word wrap the row data form my database, it will come to this error message. Quote:How to use the text_helper instead? I found that i m not able to use the text_helper while loading my db row data set. below is my code, which I would like to word_wrap my $row->postcontent: Code: $post_count = $query->num_rows(); Thanks. text helper - El Forum - 08-24-2007 [eluser]Rick Jolly[/eluser] I think you've found a bug in text_helper.php. That helper uses "\n" for newline characters throughout. For some reason on line 395 $this->newline is used. That makes no sense in a procedural function. I'd just change it to "\n". |