Integrating FCKeditor with Zend_Form

Tags:

How to use FCKeditor, or any other WYSIWYG editor, with Zend_Form? Another relatively common question. There are many ways you can do this, but let’s look at these two as they are the best in my opinion: Adding some JavaScript to your view script Creating a Zend_Form_Decorator We’ll be using FCKeditor, but you can apply the techniques shown to others, …

Database backed Zend_Form elements

Tags:

A relatively common task when working with forms is filling select boxes or checkbox and radiobutton lists from a database. It’s not very tricky to query a database, and fill a Zend_Form element’s possible values from the resultset, but it can be quite boring and extraneous code…
We could also create an element which we can give some SQL, and it’ll fill itself automatically! This way you can even define database-backed elements in XML or INI configuration files.