2
JRoute 클래스에는 _이있는 메소드가 없지만 우리는 그것을 사용합니까 ??, JRoute 클래스는 JObjects 만 확장하지만 _ 함수는 어디에 있습니까? joomla에서JRoute :: _() - 함수는 어디에 있습니까? joomla에서
JRoute 클래스에는 _이있는 메소드가 없지만 우리는 그것을 사용합니까 ??, JRoute 클래스는 JObjects 만 확장하지만 _ 함수는 어디에 있습니까? joomla에서JRoute :: _() - 함수는 어디에 있습니까? joomla에서
어떤 버전을 사용하고 있습니까? 그래서 방법은 바로 시작 (라인 33 개 이하)에서 정의가
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)
{
: 당신이 to the API page을 갈 경우,이 소스 코드가 있습니다.
여기에 방법의 설명서를 찾으십시오 : http://api.joomla.org/Joomla-Platform/JRoute.html#method_
이 경로에서 1.54 라이브러리 \ joomla \ application \ router.php를 사용하고 있습니다 -이 방법에서 찾고 있는데 찾을 수 없습니다 –
'라이브러리/joomla/methods.php'. find 명령 (UNIX)에 익숙해지면 Joomla 소스를 훨씬 쉽게 탐색 할 수 있습니다. 예 : 'find/path/to/joomla/-name '* .php'-exec grep -l '^ class JRoute $'{} \;' –