Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php JRoute::\函数在哪里?在乔姆拉_Php_Joomla_Content Management System - Fatal编程技术网

Php JRoute::\函数在哪里?在乔姆拉

Php JRoute::\函数在哪里?在乔姆拉,php,joomla,content-management-system,Php,Joomla,Content Management System,为什么在类JRoute中没有带u的方法,但我们使用它???类JRoute只扩展了作业对象,但是u函数在哪里?在joomla中,您使用的是什么版本?如果你去,你有以下源代码: class JRoute { /** * Translates an internal Joomla URL to a humanly readible URL. * * @param string $url Absolute or Relative URI to Joom

为什么在类JRoute中没有带u的方法,但我们使用它???类JRoute只扩展了作业对象,但是u函数在哪里?在joomla中,您使用的是什么版本?如果你去,你有以下源代码:

class JRoute
{
    /**
     * Translates an internal Joomla URL to a humanly readible URL.
     *
     * @param   string   $url    Absolute or Relative URI to Joomla resource.
     * @param   boolean  $xhtml  Replace & by & for XML compilance.
     * @param   integer  $ssl    Secure state for the resolved URI.
     *                              1: Make URI secure using global secure site URI.
     *                              0: Leave URI in the same secure state as it was passed to the function.
     *                             -1: Make URI unsecure using the global unsecure site URI.
     *
     * @return  The translated humanly readible URL.
     *
     * @since   11.1
     */
    public static function _($url, $xhtml = true, $ssl = null)
    {
        // Get the router.
        $app = JFactory::getApplication();
        $router = $app->getRouter();

        // Make sure that we have our router
        if (!$router)
        {

因此,方法就在那里,从一开始就定义好了(第33行左右)。
在这里查找该方法的文档:

我正在使用1.5\libraries\joomla\application\router.php-在这个路径中,我正在搜索该方法,但在
libraries/joomla/methods.php中找不到它。如果您熟悉find命令(UNIX),您会发现在joomla源代码中导航要容易得多;e、 g.
find/path/to/joomla/-name'*.php'-exec grep-l'^class JRoute$'{}