187 | | array( "joinTable" => "table_name", // - The name of the table to be joined in |
188 | | "joinModel" => "Model Name", // - The name of the Model to create from this table. |
189 | | // this does not have to march any CakePHP model at all, and |
190 | | // in fact, should be different if you're joining in the same table |
191 | | // twice, or don't want to interfere with a model joined by CakePHP. |
192 | | "localKey" => "group_id", |
193 | | }}} |
194 | | |
195 | | |
196 | | {{{ |
197 | | #!php |
198 | | $serge =1 |
199 | | }}} |
| 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. |
| 189 | // this does not have to march any CakePHP model at all, and |
| 190 | // in fact, should be different if you're joining in the same table |
| 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 substituted |
| 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 user a joined-in |
| 196 | // list's column to join another table, user this variable to specify |
| 197 | }}} |
| 198 | |