IT. Expert System.

PHP

The __construct purpose


Yaf_View_Simple::__construct

(PECL yaf >=1.0.0)

Yaf_View_Simple::__constructThe __construct purpose

Description

public Yaf_View_Simple::__construct ( string $tempalte_dir [, array $options ] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

tempalte_dir

The base directory of the templates, by default, it is APPLICATOIN . "/views" for Yaf.

options

Options for the engine, as of Yaf 2.1.13, you can use short tag  "<?=$var?>" in your template(regardless of "short_open_tag"),  so comes a option named "short_tag", you can switch this off  to prevent use short_tag in template.

Examples

Example #1 Yaf_View_Simple::__constructor()example

<?php
   define 
("TEMPLATE_DIRECTORY"APPLICATOIN_PATH '/views');
   
$view = new Yaf_View_Simple(TEMPLATE_DIRECTORY, array(
                           
'short_tag' => false //doesn't allow use short tag in template
   
));
?>

Return Values



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 120 / 158736315. Delta: 0.02719 с