Skip to content

phestでの条件分岐について #8

Description

@simejix

お世話になります。
静的ページでの制作案件があり、使わせてもらいたいと思っております。
(ノンプログラマーのデザイナーです)

phestでの条件分岐について質問です。
smartyでの{if 条件文}{/if}が使えるとのことですが、
たとえば_header.tplの中で
{if トップだったら}
topの内容
{else}
それ以外の内容
{/if}
を分岐させたい場合、
トップだったらの条件式はどのようにすればいいでしょうか?

smartyの条件分岐ですと
{if $smarty.server.PHP_SELF == "/index.php"}とかとなりますが…??

ご教授いただければ幸いです。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions