16 May 2011

joomla JController->execute()

Joomla JController->execute



<?phpclass kelas{
    function 
papar($var1 "lk"){
        echo 
"kod dalam function papar";  
    }
    function 
execute($task){
        
$this->$task();
    }
}
$objek = new kelas();$objek->execute("papar");
?>

No comments:

Post a Comment

Terima kasih