Friday, March 22, 2013

what does ReflectionMethod in php

Invokes the reflected method and pass its arguments as array. 
<?phpclass getclass{

    public function heloname
($name) {
        return 
'Hi' $name;
    }

}
$reflectionMethod = new ReflectionMethod('getclass''heloname
');
echo 
$reflectionMethod->invokeArgs(new
getclass(), array('Mike'));?>

joomla dynamic url rewite iis using web.config

<rewrite>
            <rules>
                <clear />
                <rule name="Imported Rule 1">
                    <match url="(.*)" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                        <add input="{URL}" pattern="^/index.php" ignoreCase="false" negate="true" />
                        <add input="{URL}" pattern="(/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>