Created
August 2, 2014 20:41
-
-
Save matej21/f5db736b0b7b084f5544 to your computer and use it in GitHub Desktop.
Invalidace formularovych prvku
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
{snippetArea form} | |
{form myForm} | |
{inlineSnippet name} | |
{input name} | |
{/inlineSnippet} | |
{input ok} | |
{/form} | |
{/snippetArea} | |
<a n:href="redraw!" class="ajax">prekresli</a> |
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 | |
public function handleRedraw() | |
{ | |
$this->redrawControl('form'); | |
$this->redrawControl('name'); | |
$this['myForm']['name']->setValue('!!!!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment