Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有课谢尔顿
Class sheldon { public static $text = 1 }
在smarty中,我试图访问这个变量,比如
~$sheldon::$text`
但它不起作用,它给了我错误“语法错误:无法识别的标签:”
我应该怎么做才能解决这个问题?
{assign var=foo value=sheldon::$text} {$foo}