当前位置: 首页>>代码示例>>PHP>>正文


PHP Twig_Template::__construct方法代码示例

本文整理汇总了PHP中Twig_Template::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Twig_Template::__construct方法的具体用法?PHP Twig_Template::__construct怎么用?PHP Twig_Template::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Twig_Template的用法示例。


在下文中一共展示了Twig_Template::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("base.html", "groups/edit.html", 1);
     $this->blocks = array('title' => array($this, 'block_title'), 'head' => array($this, 'block_head'), 'content' => array($this, 'block_content'));
 }
开发者ID:Hismahil,项目名称:PHPAuth,代码行数:7,代码来源:8e14eec744577f30a9fa1d4d676bc94302cbf794f67ca65feeed6b6624f7f2ac.php

示例2: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("::base_articles.html.twig", "CestomArticleBundle:Pays:index.html.twig", 1);
     $this->blocks = array('body' => array($this, 'block_body'));
 }
开发者ID:elomedah,项目名称:CestomAppli,代码行数:7,代码来源:597373b7cfd89cb7c19d8a720d48fef066e1ef960b68c031c5e4a3fcf0033e37.php

示例3: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("base.html", "index.html", 1);
     $this->blocks = array('header' => array($this, 'block_header'), 'content' => array($this, 'block_content'), 'footer' => array($this, 'block_footer'), 'bottomscript' => array($this, 'block_bottomscript'));
 }
开发者ID:nasrulhazim,项目名称:s,代码行数:7,代码来源:c95b75e70e668e7e8091ed5a821c9acfa1a03a964d52ac317914bcb8180b.php

示例4: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("@WebProfiler/Profiler/base.html.twig", "@WebProfiler/Profiler/layout.html.twig", 1);
     $this->blocks = array('body' => array($this, 'block_body'), 'panel' => array($this, 'block_panel'));
 }
开发者ID:Bastubacka,项目名称:TT3,代码行数:7,代码来源:225058b9c0d96a2ae3f2a2e5db36e785639284675955d239eac81f08b33d9685.php

示例5: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("knp_menu_base.html.twig", "knp_menu.html.twig", 1);
     $this->blocks = array('compressed_root' => array($this, 'block_compressed_root'), 'root' => array($this, 'block_root'), 'list' => array($this, 'block_list'), 'children' => array($this, 'block_children'), 'item' => array($this, 'block_item'), 'linkElement' => array($this, 'block_linkElement'), 'spanElement' => array($this, 'block_spanElement'), 'label' => array($this, 'block_label'));
 }
开发者ID:KaanTolunayKilic,项目名称:miniBlog,代码行数:7,代码来源:ad7b17b6b800ad1b773e111b2b41da06c72db56ce0b0dc892d35079027b60dff.php

示例6: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 1
     $this->parent = $this->loadTemplate("@block/block.html.twig", "block.html.twig", 1);
     $this->blocks = array();
 }
开发者ID:m-ark22,项目名称:bdlp,代码行数:7,代码来源:98d1d5296cbff6583eb9aed6f54391eae18b996444eeb586167dfe3955b08186.php

示例7: __construct

 public function __construct(Twig_Environment $env)
 {
     parent::__construct($env);
     // line 3
     $this->parent = $this->loadTemplate("::admin.html.twig", "AdminBundle:Enseignant:edit.html.twig", 3);
     $this->blocks = array('body' => array($this, 'block_body'));
 }
开发者ID:kradwane,项目名称:Fablab,代码行数:7,代码来源:beb46bb0cede015c311a399f042cadb0d1cab393be701cf5ed27ab4d60a2e496.php


注:本文中的Twig_Template::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。