downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_View_Simple::display> <Yaf_View_Simple::clear
[edit] Last updated: Fri, 07 Jun 2013

view this page in

Yaf_View_Simple::__construct

(Yaf >=1.0.0)

Yaf_View_Simple::__constructYaf_View_Simple のコンストラクタ

説明

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

パラメータ

tempalte_dir

テンプレートのベースディレクトリ。デフォルトは APPLICATOIN . "/views" です。

options

エンジンのオプション。Yaf 2.1.13 からは、短いタグ
      "<?=$var?>" を ("short_open_tag" の値にかかわらず)
      テンプレートで使えるようになりました。
      オプション "short_tag" をオフにすると、テンプレートで短いタグを使わないようにできます。

例1 Yaf_View_Simple::__constructor() の例

<?php
   define 
("TEMPLATE_DIRECTORY"APPLICATOIN_PATH '/views');
   
$view = new Yaf_View_Simple(TEMPLATE_DIRECTORY, array(
                           
'short_tag' => false // テンプレートで短いタグを使わせないようにします
   
));
?>

返り値



add a note add a note User Contributed Notes Yaf_View_Simple::__construct - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites