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.
我是 Modx 的新手,我想在处理传入帖子数据的片段中编写自定义但代码。不幸的是,我似乎无法使用 $_POST 收集帖子数据。谁能指出我正确的方向?干杯约翰
此外,如果您不希望缓存片段调用的结果,请使用 [[!getPost]] 而不是 [[getPost]]。
我用过
<?php var_dump($_POST);
和[[getPost]]
[[getPost]]
它起作用了(我得到了一个 0 数组,但我没有在帖子中发送任何东西)
Vardump 是一个非常糟糕的主意。
MODx 革命对象是巨大的......
请试试:
<?php print_r($_REQUEST);