' System administrator ',1=> ' normal user ');?>
The page can be displayed by default. But what to do with the ' columns ' =>array ()?
An official example data dictionary in a database, how is static data handled?
Reply to discussion (solution)
As in the example code, passing an array into it can
Key stands for Name
Val represents the value.
can give a piece of code that can be run ...
' Columns ' =>array (
' ID ',
' Account ',
' Password ',
' Name ',
' Mail ',
' Nickname ',
/* */
' Type ',
Array
' Name ' = ' ' Type ',
' Value ' =>chtml::d ropdownlist (' type ', ' 0 ', Array (0=> ' system administrator ',1=> ' normal user ')),
' Filter ' =>lookup::items (' poststatus '),
//),
$this->dropdownlist (' type ', ' 0 ', Array (0=> ' system administrator ',1=> ' normal user '),
Array
' Class ' = ' Cbuttoncolumn ',
),
This is automatically generated code, how to join AH?