Phenotype 2.10
new form_xxx methods for content objects
$this->form_rangeselect("Points<br/>(0-15)","points",1,15,1,1);
$this->form_coords("Koordinaten","coords",14);
$this->form_content_autocomplete("Country","dat_id_country",1);
$this->form_colorselect();
new default smarty handling for page templates
- change for default handling of PHP code within smarty templates. Php code will get escaped everytime
You may change that behaviour in the PhenotypeSmarty.class.php:
/** * Do not allow PHP Code within smarty templates * * use SMARTY_PHP_ALLOW, if you want the PHP code to be executed (right after Phenotype caching) * * Attention!: * Caused by Phenotypes file caching mechanism the option SMARTY_PHP_PASSTHRU is * identical to SMARTY_PHP_ALLOW * * Side-Effect!: * Every "<?" will get escaped, also XML headers like <?xml version="1.0" encoding="ISO-8859-1"?> * Use the smarty function pt_doctype instead, e.g. * {pt_doctype dtd="XHTML1.0-Transitional" charset="ISO-8859-1"} * * @see: pt_doctype * @var int */ var $php_handling = SMARTY_PHP_QUOTE;
Because of that, you must use the pt_doctype smarty template variable to include a correct header, since <? will be interpreted as a php short open tag.
- smarty function pt_doctype with parameters dtd and charset (for xhtml doctypes)
- available doctypes: HTML2.0, HTML3.2, HTML4.01-Strict, HTML4.01-Transitional, HTML4.01-Frameset, XHTML1.0-Strict, XHTML1.0-Frameset, XHTML1.0-Transitional, XHTML1.1
Example:
{pt_doctype dtd="XHTML1.0-Transitional" charset="ISO-8859-1"}
You think Phenotype Wiki/Documentation could be better?
We too. Please contribute: Edit this page
Recent Blog Posts
- Finally Multibyte - Phenotype 3.0
- Phenotype 2.9 explained
- Integration of PHPIDS (PHP-Intrusion Detection System)
- New Release: Phenotype 2.8 Ready for Download
- Restart: New Phenotype Website Live
- Phenotype worth: 2 Million $
- New Feature: Automatic Image Version Creation
- Additional smartURL variable: smartPATH



