スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    smartyでエラーでてた

    2017.08.06 Sunday 19:54
    0
      smartyでエラーでてた

      なおした箇所は2つ
      env.php の以下のディレクトリの場所が間違ってた
      ini_set("error_log" , "C:¥¥xampp¥¥htdocs¥¥" . DOMAIN . "¥¥logs¥¥error_log"); // サーバーエラーログ
      define( "DIR_ROOT" , "C:¥¥xampp¥¥htdocs¥¥" . DOMAIN . "¥¥") ; // php5
      smarty/lib を最新にした

      [php7:warn] [pid 8512:tid 1844] [client ::1:62900] PHP Warning: Smarty error: unable to read resource: "index.tpl" in
      ¥¥Smarty.class.php on line 1096
      [php7:error] [pid 8512:tid 1856] [client ::1:63422] PHP Fatal error: Uncaught --> Smarty: Unable to load template 'file:index.tpl' <--
      ¥n thrown in ¥¥smarty_internal_template.php on line 163

      category:smarty | by:ittoocomments(0)trackbacks(0) | -

      php Smartyで変数の中を表示させる

      2015.12.01 Tuesday 05:01
      0
        php Smartyで変数の中を表示させる
        ダンプ表示
        var_dumpのような感じね
        {$value|@debug_print_var}
        category:smarty | by:ittoocomments(0)trackbacks(0) | -

        PHPのSmartyでサイニタイズする方法

        2015.11.30 Monday 21:09
        0
          PHPのSmartyでサイニタイズ(サニタイジング)する方法

          Smartyには、エスケープ処理の機能がありHTMLタグを適切にエスケープ可能

          例)Smartyテンプレート

          {$value|escape:"html"} ←★これ htmlの箇所 で何をエスケープするかを指定


          コロンの後に何をエスケープするか指定(デフォルトはhtml)
          指定する場合は、以下のオプションを指定する
          それぞれどの文字をエスケープするかは下記のような対応
          --------------------
          html & " ' < >
          htmlall 全ての html エンティティをエスケープ
          quotes ¥'sample¥'
          mail @→[AT] .→[DOT]
          url URLエンコード
          hex hex エンコード
          --------------------
          category:smarty | by:ittoocomments(0)trackbacks(0) | -

          PHP smartyで文字数をカウントする関数count_characters

          2015.10.28 Wednesday 12:16
          0
            PHP smartyで文字数をカウントする関数
            count_charactersを使用する

            例)
            文字数は{$data|count_characters} 個です

            category:smarty | by:ittoocomments(0)trackbacks(0) | -

            ad
            Calender
                 12
            3456789
            10111213141516
            17181920212223
            24252627282930
            31      
            << March 2024 >>
            Selected entry
            PR
            Category
            Archives
            Recommend
            Link
            Profile
            Search
            Others
            Mobile
            qrcode
            Powered
            無料ブログ作成サービス JUGEM