I've followed the tutorial for the fck helper from the bakery
http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp
and included the helper in my app_controller as several controllers
will use this helper. It only creates the error on this one page that
is using a requestAction & renderElement, but nowhere in either is it
actually trying to load the fck editor.
this is the helper causing the issue on one page only. for some
reason, my renderElement is generating a session warning because of
this even though it's not trying to load the fck editor into any text
areas. every other area is functional, as well as the editor loads
properly when called.
webroot.'js/';
return<<
fckLoader_$did = function () {
var bFCKeditor_$did = new FCKeditor('$did');
bFCKeditor_$did.BasePath = '$js';
bFCKeditor_$did.ToolbarSet = '$toolbar';
bFCKeditor_$did.ReplaceTextarea();
}
fckLoader_$did();
FCK_CODE;
}
function fileBrowserInput($fieldName, $htmlAttributes = array(),
$return = false) {
$output = $this->input($fieldName, $htmlAttributes, $return);
if (!isset($htmlAttributes['id'])) {
$htmlAttributes['id'] = $this->model .
Inflector::camelize($this->field);
}
$output .= '';
$output .= "//webroot."js/'\n";
$output .= "var url = fck.BasePath + 'editor/filemanager/
browser/default/browser.html?Type=Image&Connector=connectors/php/
connector.php';\n";
$output .= "var sOptions =
'toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes';\n";
$output .= "sOptions += ',width=640';\n";
$output .= "sOptions += ',height=480';\n";
$output .= "window.SetUrl = function(fileUrl){\n";
$output .= "\$(id).value = fileUrl;\n";
$output .= "}\n";
$output .= "var oWindow = window.open( url, 'FCKBrowseWindow',
sOptions ) ;\n";
$output .= "}\n";
$output .= "//]]>\n";
$output .= '';
$output .= 'select an image...';
return $output;
}
}
?>
On Jul 28, 11:47 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 7/29/07, r557 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Yes, Aware of this.
>
> Then fix it - start with moving back the code in view - I think the errors
> will still occur if the fck helper is an issue... work forwards from that
> point...
>
> T
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---