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を行く場合は、このソースコードを持っています。
方法のドキュメントについてはここを見て:私は1.5 \ライブラリを使用していますhttp://api.joomla.org/Joomla-Platform/JRoute.html#method_
を\ joomlaの\アプリケーションの\ router.php - このパスで、私はその方法を探していますが、私はそれにそれがでます –
を見つけることができません 'ライブラリ/ joomla/methods.php'。あなたはfindコマンド(UNIX)に慣れている場合、あなたは非常に簡単にJoomlaのソースをナビゲート見つけることができます。例えば'見つける/パス/に/ joomlaの/ -name '* .phpの' -exec grepの-l '^クラスJROUTE $' {} \;' –