Possible to access $this from include()'d file in PHP class?

后端 未结 1 489
你的背包
你的背包 2021-01-23 22:32

I\'m working on a WordPress Widget and the examples all have huge HTML/PHP chunks intermixed and it is impossible to read, so in the interest of trying to clean stuff up I\'d li

相关标签:
1条回答
  • 2021-01-23 22:59

    Forgot that I was iterating over the directory & include-ing every .php file, renamed form.php to form.tmpl and appears to work.

    Durr.

    0 讨论(0)
提交回复
热议问题