我在 JOOMLA 中挖掘这段代码
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));
80% 我理解但停留在“任务”的事情上。
文档说 getCMD
* The default behaviour is fetching variables depending on the
 * current request method: GET and HEAD will result in returning
 * an entry from $_GET, POST and PUT will result in returning an
 * entry from $_POST.
 *
 * You can force the source by setting the $hash parameter:
 *
 * post    $_POST
 * get     $_GET
 * files   $_FILES
 * cookie  $_COOKIE
 * env     $_ENV
 * server  $_SERVER
 * method  via current $_SERVER['REQUEST_METHOD']
 * default $_REQUEST
我只是在 netbeans 调试会话中搜索几乎所有变量,但找不到任务变量。
现在我的问题是这个“任务”指向什么?它代表什么?