Skip to content

Instantly share code, notes, and snippets.

@davialexandre
Created June 1, 2011 20:36
Show Gist options
  • Save davialexandre/1003259 to your computer and use it in GitHub Desktop.
Save davialexandre/1003259 to your computer and use it in GitHub Desktop.
<?php
$fichas = Movimentos::model()->PegaFichas();
$servicos = array();
if(isset($_POST['Model'])) {
$model->attributes = $_POST['Model'];
...
}
if(isset($model->ficha)) {
$servicos = metodoParaPegarServicosDaFicha($model->ficha);
}
$this->render('nome_da_view', array('model' => $model, 'fichas' => $fichas, 'servicos' => $servicos));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment