Skip to content
Taufik Firmansyah edited this page Jan 29, 2015 · 1 revision

This function used for retrieve data with spesific table . Function only available for module created via Code Builder

Usage

$row = $this->model->getRows( $argument  )

Option

$argument  = array 
(
	'page' 		=> '0' , // number of page to display 
	'limit'  	=> '0' , // Limit row displayed  per page  
	'sort' 		=> '' , // Order By Field
	'order' 	=> '' , // Order ASC or DESC
	'params' 	=> '' , // Params
	'global'	=> '1'	 // Set 1 for displaying all rows , 0 for rows input by current users
)

RESULT

The ouput result will contain 2 values

  • Rows Object
  • Total Rows

Module Structure

BaseController

BaseModel

SiteHelpers

Clone this wiki locally