Senin, 09 Juni 2014

Taking Advantage of Using PHP Class in Netbeans

I have done many things in my favorite IDE; Netbeans.

I have done java code, javascript code, HTML code and PHP code with it.

For now, I want to tell you how I take an advantage of using Netbeans and PHP class.
Here, I give you an example and showing an advantage of using Netbeans

Class Something {

    /**
    * 
    * @param string $title
    */
    public static function getFixedNav($title)
    {
        ?>
        <div id="fixed_nav"><?= $title; ?></div>
        <?php 
    } 
}



From above class, when you need to call it, you can type Something::getFix and Netbeans autocompleted it into like this figure below