I want to use php form builder class. But I can't run this class. Im using as below(from example page):
<?php
session_start();
require_once 'PFBC/Form.php';
$form = new Form("webeditors", 650);
$form->addElement(new Element_Hidden("form", "webeditors"));
$form->addElement(new Element_TinyMCE("TinyMCE:", "TinyMCE"));
$form->addElement(new Element_CKEditor("CKEditor:", "CKEditor"));
$form->addElement(new Element_Button);
$form->render();
?>
Result of above codes:
But it must be as below:
PHP Designer 7 Result:
Output of Javascript Error Console:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/PFBC/Resources/tiny_mce/tiny_mce.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/PFBC/Resources/ckeditor/ckeditor.js
Uncaught ReferenceError: tinyMCE is not defined
Where is the problem. I can't understand.
Meantime, I'm using AppServ AppServ 2.5.10
Somebody says you need to download tinymce and ckeditor and optimize for your project. But already pfbc has all.
Please include the generated HTML output and any errors from your JavaScript console. My guess is that you don't have the required JavaScript/CSS files included properly in your page or they are not configured to target the desired elements.
Please try manually setting the resourcesPath Form property (see example below) via the configure method.
$form->configure(array( "resourcesPath" => "localhost/bigbeng/classes/PFBC/Resources" ));
Alternately, you can edit PFBC/Form.php and set the property in the Form class constructor so you don't have to manually set it for each form.