We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望增加$this->need()模板引入的参数传递功能,当我在引用模板时,可以把上级页面查询出的数据通过参数的方式传递给模板,模板直接使用
$this->need('child.php' ,$param);
在child.php页面通过某种方式来接收传递的$param参数 这可以减少动态模板页对数据库的请求
child.php
The text was updated successfully, but these errors were encountered:
没必要啊 global 或者 $this->xxx = xxx 都是可以的
Sorry, something went wrong.
No branches or pull requests
希望增加$this->need()模板引入的参数传递功能,当我在引用模板时,可以把上级页面查询出的数据通过参数的方式传递给模板,模板直接使用
在
child.php
页面通过某种方式来接收传递的$param参数这可以减少动态模板页对数据库的请求
The text was updated successfully, but these errors were encountered: