mangoweb/mangopress-templating

带有过滤器和宏的预置模板工作流程。

dev-master 2020-02-06 11:54 UTC

This package is not auto-updated.

Last update: 2024-09-13 11:02:28 UTC


README

带有过滤器和宏的预置模板工作流程。

MangoPressTemplating::init();

有关可用过滤器的更多信息,请参阅https://github.com/manGoweb/MangoPress/wiki/Template-filters

使用闪存消息

在PHP中

$param = flashSuccess('Something just went great!');
wp_redirect(add_query_arg(FLASH_KEY, $param));

然后在latte中,就像在常规Nette模板中一样。