• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » code
Trace: • 08 Bashでカラー表示 • SQLiteコマンド • 10 qcow2バクアップ 内部スナップショット(internal) • keyboard • OrphansWanted • 12 PHP標準入力 • サイドバーに本日の格言追加 • Gallery • 22 ipvsadm と ldirectord • translation

code

Search

You can find the results of your search below.

Exact match
  • Exact match
  • Starts with
  • Ends with
  • Contains
@11_php:01_twig
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Fulltext results:

01 twigについて
8 Hits, Last modified: 11 years ago
1 twigについて ====== Symfony2 のテンプレートエンジンである Twig <code> {{ ... }} : 変数や式の結果を出力します。| {% ... %} : テンプレートのロジックを制御するタグで、たとえば for ループや if 文を記述します。| </code> テンプレートへのパス <code> $app->register(new Silex\Provider\TwigServiceProvider(), array( 'twig.path' => __DIR__ . '/views', )); </code> レンダリング <code> $app->get('/test', function() us
02 twig自動エスケープ(autoescape)
6 Hits, Last modified: 7 years ago
= 「autoescape false」で囲んであげると、autoescapeを無効にできます。 <code> {% autoescape false %} {{ vm.memo|escape|replace({'\n':'<br />'}) }} {% endautoescape %} </code> ===== 2.コントローラ側で設定する場合 ===== registerの時に「'autoescape' => false」としてあげるとautoescapeを無効にできます。 <code console> // autoescapeを無効にする。 $app->register(new ... ions' => array( 'autoescape' => false, ), )); </code> ===== 編集表示の時に指定 ===== 下記のようにe(escape)でエスケープ r
03 twig Debug
2 Hits, Last modified: 12 years ago
twig Debug ====== dumpを利用すると、print_rみたいな表示できる。 <code> <pre> {{ dump(user) }} </pre> </code> [[https://github.com/symfony-japan/twig-docs-ja/blob/master

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki