Changes between Version 55 and Version 56 of AjaxList
- Timestamp:
- 2010-09-08T16:02:11Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxList
v55 v56 40 40 Next, create the following 3 functions in the controller: 41 41 {{{ 42 #!php 42 43 // 1) Sets up the data for the ajax list. 43 44 function setUpAjaxList () { … … 66 67 }}} 67 68 {{{ 69 #!php 68 70 // 2) Processes an Ajax request from the client. 69 71 function ajaxList() { … … 75 77 }}} 76 78 {{{ 79 #!php 77 80 // 3) Creates the initial list to display by the client. 78 81 function list() { … … 92 95 The $columns variable is an array of arrays. Each entry in the top array described a column. Each column entry is an array itself. The is the general format is the following: 93 96 {{{ 97 #!php 94 98 $columns = array( 95 99 array(<Model.column 1>[, <Column Name 1>[, <CSS width of column 1>[, <column 1 type>> [, column 1 type parameters]]]]),