Has anyone done this? I don't want to use 'vendor' method. Is it
possible to use YUI library like Helper. Any examples, samples would
help a lot. I am stumped. I found a little bit of code when searching
but it looks incomplete.

<?php

class YuiHelper extends Helper {
    function load($id) {
        foreach (explode('[', str_replace(']','', $id)) as $v) {
            $did .= ucfirst($v);
        }
    return <<<YUI_CODE
    var myEditor = new YAHOO.widget.Editor('$did', {
    handleSubmit: true,
    height: '300px',
    width: '522px',
    dompath: true,
    animate: true
    });
    myEditor.render();
    YUI_CODE;
    }
}
?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to