Nurasto.com Website

My digital scrapbook

Kohana : Mengenal Controller dan Routing

on under Software and Web Development2 Comments

Controller pada kohana diterapkan sebagai suatu kelas. Dalam pemograman berorientasi obyek kita mengenal tiga konsep utama yaitu enkapulasi, pewarisan, dan polymorpishm (perubahan bentuk). Kelas Controller memiliki fitur tersebut dan dilarang untuk mengubah apapun dalam direktori system.

Kohana telah menyediakan kelas super untuk diturunkan pada modul ataupun aplikasi, yaitu:

  • Controller
    Kelas Controller bertugas menerapkan metoda – metoda yang nantinya akan dieksekusi dan digunakan oleh kelas route, request, request_client. Controller berhubungan erat dengan kelas request dan response.
  • Controller_Template
    Kelas Controller_Template merupakan kelas sub dari Controller. Kelas ini merupakan dasar kelas untuk anda yang ingin menggunakan sistem template pada view.

Read More

Penerapan MVC di Kohana

on under Software and Web Development3 Comments

Secara konsep, Model View Controller atau disingkat MVC merupakan suatu pola pengembangan aplikasi yang sudah ada sejak bertahun – tahun yang lalu. Dalam penerapan konsep MVC banyak perbedaan antara satu framework PHP dan yang lain. Dalam artikel kali ini kita membahas / belajar mengenai MVC yang berlaku dan spesifik pada Kohana, apa tanggung jawab masing – masing entitas berserta contoh kode untuk entitas tersebut.

Dalam artikel ini saya akan memberikan gambaran besar dari komponen MVC yang terdapat pada Framework PHP Kohana.

Read More

Exporting Comments to Disqus on WordPress

on under Software and Web Development16 Comments

I was wondering how to export my website comments into Disqus. It’s very easy to move all comments to Disqus because they already made a plugin to help WordPress users to move existing comments into their system. Before using Disqus WordPress Plugin, you need to sign up to disqus to get API (Application Programming Interface) Key.

If you already have Disqus API Key. You need to download Disqus Comment System plugin from WordPress plugin repository or direct download from your WordPress Admin interface. After installation, you’ll find Disqus Plugin menu under Comments section then you can start exporting existing comments to Disqus by pressing Export Comments. You could manage comments on Disqus inside WordPress Admin, they give an iframe interface to their site.

The good thing from Disqus Plugin is Sync Comments feature which allowing you to sync between Disqus and WordPress built-in comment system. So, in next feature you’re able to retrieve comments for a post. Another point that makes me want to use Disqus is their system could help me in combating spam comments.

About Internet Explorer

on under Software and Web DevelopmentOne Comment

Obviously, I was grown up with Internet Explorer 6. I want to write up about Internet Explorer and why we should love this browser. Internet Explorer always be victim for browser war and no one could tear IE down from browser market share. Its still has good market share until today.

We all know that IE 6, IE 7, and IE 8 has different implementation. There’s known hacks know as conditional comment, but I prefer say conditional comments are not hacking because the condition located inside HTML comments which will successfully validated by W3C Validation tool.

IE 9 has different story. This browser is the first browser implementing hardware acceleration using GPU on browser’s canvas. You will find smooth transition between scroll and animation on good GPU. Internet Explorer 9 not supporting HTML 5 and CSS 3 widely for good reason, both specification are still in draft until this article written.

Read More

Show Advertisement in The Middle of WordPress Archive Post

on under Software and Web DevelopmentOne Comment

You want to monetizing your wordpress powered blog and you pick strategic places to put your ads. One of your ads unit place is in the middle of archive posts list and you want to modify your template / theme to accomplish the task.

There’s many way to edit your template but I want to give an example using simple template. The template will contains index.php and style.css which is the basic requirement for creating wordpress theme. If you get the idea, you may applying this technique in any theme.

Read More