This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$f = PwForm('Contact', './') | |
->setRenderer( fxForm::BASIC ) | |
->setPwTemplate ( 'contact_form' ) | |
->setPwParent ( '/contact_us/' ) | |
->add( PwInput()->name('fullname')->required() ) | |
->add( PwInput('Email', 'Your email address')->type('email')->required() ) | |
->add( PwInput()->name('body')->required() ) | |
->add( Submit('Send') ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Aloha Editor | |
* Author & Copyright (c) 2010 Gentics Software GmbH | |
* [email protected] | |
* Licensed unter the terms of http://www.aloha-editor.com/license.html | |
*/ | |
define( | |
['aloha', | |
'aloha/jquery', | |
'aloha/plugin', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$contact_form = Form('ao2', './') | |
->setRenderer( $r ) // Tells the form which renderer to use to generate its output. | |
//->_show_submitted(true) // Causes the form to show submitted values | |
//->_show_html(true) // Causes the form's renderer to expose the generated HTML for the form. | |
//->_show_form_elements(true) // Causes the form to show its internal structure | |
//->_show_form_errors(true) | |
//->match('myContactFormValidator') // Adds a validator to the form. You can use a form-level validator to add complex inter-item validation. | |
->onSuccess('MySuccessHandler') | |
->novalidate() // Stop FF doing client-side evaluation whilst testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Roskis | |
* | |
* Adds custom trash view that can be also accessed by defined roles | |
* Pages in trash can be searched, sorted and restored. | |
* | |
* | |
* Copyright 2013 by Antti Peisa |