LoginSignup
0
2

More than 5 years have passed since last update.

仮作業時にSmartyでよく使うの

Last updated at Posted at 2016-03-23

システム側が未実装の場合に条件文などを仮実装しておく場合に使うの。
システム側のファイルを汚さないようにするのが目的。
基本、予約変数($smarty)で賄う。

{$smarty.get.hoge}

//www.example.com/index.php?hoge=foo
URLからhogeの値を取得
$_GET['hoge']と同義

{$smarty.post.page}

フォームから送信された変数 hogeの値を取得
$_POST['hoge']と同義

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2