looks kind of ugly
one more reason to get those functions out of the helpers into libs
there is no reason for almost 70% of all helper functions to be in
helpers
some might have to be used in controllers etc.
therefore they should be libs and the helpers should internally use
those libs.

it starts with text but doesnt end with time helper.

your "cleaner" helper seems to be a unjustified helper as well and
should also move its functionality to a lib.


On 21 Okt., 23:18, zuha <[email protected]> wrote:
> Solved (might be a better solution though, if anyone cares to critique my
> solution) :
>
> *Changed the function cleanHtml() from the above version to this version : *
> *
> *
> // in Comments/Controller/Component/CommentsComponent.php
> function cleanHtml($text, $settings = 'full') {
> App::import('Helper', 'Comments.Cleaner');
> App::uses('View', 'View');
> $this->View = new View($this->Controller);
> $cleaner = & new CleanerHelper($this->View);
> return $cleaner->clean($text, $settings);
>
>
>
>
>
>
>
> }

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to