Created
January 29, 2009 08:34
-
-
Save kogakure/54469 to your computer and use it in GitHub Desktop.
PHP: Typolight Form-Widget-Änderungen
This file contains 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 if ($this->hasError): ?> | |
<h3 class="error"><?php echo $this->getErrorAsString(); ?></h3> | |
<?php endif; ?> | |
<p> | |
<?php echo $this->generateLabel(); ?> | |
<?php echo $this->generate(); ?> | |
</p> |
This file contains 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
<label for="ctrl_<?php echo $this->id; ?>"><?php echo $this->label; ?> <?php echo $this->generateQuestion(); ?></label> | |
<?php echo $this->generateWithError(); ?> |
This file contains 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
/* "false" ist Standard, liefert Reihenfolge [error][field] */ | |
<?php echo $this->generateWithError(); ?> | |
/* Liefert Reihenfolge [field][error] */ | |
<?php echo $this->generateWithError(true); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment