Changes between Version 62 and Version 63 of AjaxList
- Timestamp:
- 2010-09-08T16:49:46Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AjaxList
v62 v63 186 186 $joinTables = array( 187 187 array( "joinTable" => "table_name", // - The name of the table to be joined in 188 "joinModel" => " ModelName", // - The name of the Model to create from this table.188 "joinModel" => "JoinModel", // - The name of the Model to create from this table. 189 189 // this does not have to march any CakePHP model at all, and 190 190 // in fact, should be different if you're joining in the same table 191 191 // twice, or don't want to interfere with a model joined by CakePHP. 192 "localKey" => "local_key", // - The key to match in local table. If left out, " localModel.id" is substituted.193 "foreignKey"=>"foreign_key", // - The key to match in foreign table. If left out, " joinModel.id" is substituted192 "localKey" => "local_key", // - The key to match in local table. If left out, "id" is substituted. 193 "foreignKey"=>"foreign_key", // - The key to match in foreign table. If left out, "id" is substituted 194 194 "localModel" => "LocalModel", // - Usually left out, because the Ajax List's local model is specified in 195 // the setUpAjaxList() function. However, if you'd like to use ra joined-in195 // the setUpAjaxList() function. However, if you'd like to use a joined-in 196 196 // list's column to join another table, user this variable to specify 197 }}} 197 // that joined Model's name here. 198 }}} 199 200 The joined in columns should be included in the $columns list, if you'd like to display them. The columns you're joining on (in local model) also need to be present in the $columns list, but may be of hidden-type if you prefer not to display them. Remember, all the columns that are referred to by Ajax List must be in the $columns list. 198 201 199 202