これが私のモデルです:
class Persona extends AppModel {
    // This is just some arbitrary property I need to populate in the controller.
    public $TipoPersona = ''; 
}
そして、これが私のコントローラーのアクション関数です:
public function details($id = null) {
    // Just a typical load by id.
    $this->Persona->id = $id;
    $this->set('persona', $this->Persona->read()); 
    // Can I do something like?
    $this->Persona->TipoPersona = "Mafa Woogly";
}
$TipoPersonaここで「モデル」にプロパティを設定するにはどうすればよいですか?私の意図は、ビューでそのプロパティを次のように使用することです。
<tr>
    <th>Tipo de Persona:</th>
    <td><?php echo h($persona->TipoPersona); ?></td> // Or similar?
</tr>
助言がありますか?
これは機能しますが、不安定で強く型付けされていないように感じます。
public function details($id = null) {
    $this->Persona->id = $id;
    $this->set('persona', $this->Persona->read());
    $this->set('tipoPersona', "Mafa woogly");
}
<tr>
    <th>Tipo de Persona:</th>
    <td><?php echo h($tipoPersona); ?></td>
</tr>