Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
- TemplateFilters::curlyBrackets - added {contentType ...} markup
Browse files Browse the repository at this point in the history
- added filter TemplateFilters::removePhp
  • Loading branch information
dg committed Oct 10, 2010
1 parent b5fb307 commit 336ec73
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions Forms/example1.php
Expand Up @@ -84,10 +84,13 @@
// another conditional rule: if is checkbox checked...
$form['send']->addCondition(Form::EQUAL, TRUE)
// toggle div #sendBox
->toggle('sendBox')
// ... add apply rules:
->addRuleFor($form['city'], Form::FILLED, 'Enter your shipping address')
->addRuleFor($form['country'], Form::FILLED, 'Select your country');
->toggle('sendBox');

$form['city']->addConditionOn($form['send'], Form::EQUAL, TRUE)
->addRule(Form::FILLED, 'Enter your shipping address');

$form['country']->addConditionOn($form['send'], Form::EQUAL, TRUE)
->addRule(Form::FILLED, 'Select your country');

$form['password']->addRule(Form::FILLED, 'Choose your password');
$form['password']->addRule(Form::MIN_LENGTH, 'The password is too short: it must be at least %d characters', 3);
Expand Down
2 changes: 1 addition & 1 deletion Forms/example2.php
Expand Up @@ -56,7 +56,7 @@

// group Personal data
$form->addGroup('Personal data')
->setOption('description', 'We value your privacy and we ensure that the information you give to us will not be shared to other entities.');
->setOption('description', 'We value your privacy and we ensure that the information you give to us will not be shared to other entities.');

$form->addText('name', 'Your name:', 35)
->addRule(Form::FILLED, 'Enter your name');
Expand Down
2 changes: 1 addition & 1 deletion Forms/example7.php
Expand Up @@ -42,7 +42,7 @@

$form->addMultiSelect('country', 'Country:')
->skipFirst()
->setItems($countries, FALSE);
->setItems($countries, FALSE);

$form->addHidden('userid');

Expand Down
@@ -1,6 +1,6 @@
<?php

/*namespace Front::Export;*/
/*namespace Front\Export;*/

require_once dirname(__FILE__) . '/../../BasePresenter.php';

Expand Down

0 comments on commit 336ec73

Please sign in to comment.