Skip to content

Instantly share code, notes, and snippets.

@davialexandre
Created June 1, 2011 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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