This is default featured post 1 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
This is default featured post 2 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
This is default featured post 3 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
This is default featured post 4 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
This is default featured post 5 title
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Senin, 20 Desember 2010
Jumat, 17 Desember 2010
javascript Cache in firefox
Kamis, 02 Desember 2010
Contoh Konfigurasi Pagination CodeIgniter
//contoh url index.php/folder/control/function/offset
//maka urutan offset adalah yang ke-4
$offset = $this->uri->segment(4);
$config['base_url'] = site_url() . '/admin/materi/index/';
$config['total_rows'] = $this->mmateri->get_count();
$config['per_page'] = 5;
$config['uri_segment'] = 4; //penting
$this->pagination->initialize($config);
$paginator=$this->pagination->create_links();
$data["offset"] = $offset;
$data['result'] = $this->mmateri->get_paged($config['per_page'],$offset);
$data['total_page'] = $paginator;
$this->load->view('admin/materi', $data);
Jumat, 26 November 2010
PHP Programming Pattern
Got this from fluppycat.com
PHP Design Patterns Reference and Examples
GoF Creational Patterns | |
Sets of methods to make various objects. | |
Make and return one object various ways. | |
Methods to make and return components of one object various ways. | |
Make new objects by cloning the objects which you set as prototypes. | |
A class distributes the only instance of itself. | |
GoF Structural Patterns | |
A class extends another class, takes in an object, and makes the taken object behave like the extended class. | |
An abstraction and implementation are in different class hierarchies. | |
Assemble groups of objects with the same signature. | |
One class takes in another class, both of which extend the same abstract class, and adds functionality. | |
One class has a method that performs a complex process calling several other classes. | |
The reusable and variable parts of a class are broken into two classes to save resources. | |
One class controls the creation of and access to objects in another class. | |
GoF Behavorial Patterns | |
A method called in one class can move up a hierarchy to find an object that can properly execute the method. | |
An object encapsulates everything needed to execute a method in another object. | |
Define a macro language and syntax, parsing input into objects which perform the correct opertaions. | |
One object can traverse the elements of another object. | |
An object distributes communication between two or more objects. | |
One object stores another objects state. | |
An object notifies other object(s) if it changes. | |
An object appears to change its` class when the class it passes calls through to switches itself for a related class. | |
An object controls which of a family of methods is called. Each method is in its` own class that extends a common base class. | |
An abstract class defines various methods, and has one non-overridden method which calls the various methods. | |
One or more related classes have the same method, which calls a method specific for themselves in another class. | |
Other PHP Design Patterns | |
MVC - Model View Controller - shown using procedural and not OO architecture. | |
Object Oriented PHP Basics | |
The basics of creating a class with OO PHP. | |
The basics of creating an abstract class with OO PHP. | |
The basics of creating an interface with OO PHP. | |
The basics of using Statics with OO PHP. | |
The basics of using this and parent with OO PHP. | |
PHP Performance Testing | |
Which is faster in PHP - if / elseif or switch? | |
Other PHP Stuff | |
As a contractor and freelancer I`ve had a number of interviews, and the same questions seem come up on a regular basis. | |
A few of the many emails about patterns and PHP I have gotten over the past few years. | |









