Richard Parnaby-King

Web Developer – PHP, Zend Framework and Actionscript 3

Posted on | | No Comments

I want to prefix the form with a title, within the form tags, but above the form elements.

[html]

Login Form


[/html]

Further more, I do not want to use a view script.


[php]
setDecorators(array(
array(
‘Description’,
array(
‘tag’ => ‘h3’
)
),
‘FormElements’,
‘Form’
))
->setDescription(‘Login Form’);
[/php]

Depending where you place the description decorator will determine where in the form tags it displays, i.e. place above ‘FormElements’ to display above the elements; place below ‘FormElements’ to display the description below the elements; place below the ‘Form’ decorator to display after the form tags.

Posted By:

Comments

  • ABOUT

    Having eight years of programming experience in PHP, Zend Framework and ActionScript3, I have a very strong working knowledge of object orientated programming.

    I am a PC Gamer! Playing FPS, RTS, RPG and the occasional MMO since 1996 I have a huge number of a variety of fast-paced games.

  • Recent Posts

  • Categories

  • RSS SUBSCRIBE TO OUR FEED

  •