Código PHP:
class Alumnos extends ActiveRecord {}
class indexController
{
public function __construct() {
//INSTANCIAS A OTRAS CLASES COMO DB
}
public function indexAction() {
// CONTENIDO DEFECTO;
}
public function insertAction( $something ) {
$alumnos = new Alumnos();
$alumnos->nombre = "Fulanito";
$alumnos->apellido = "Perez";
$alumnos->edad = "35";
// Insertamos valores
$alumnos->Agregar();
// Borramos valores existentes
$alumnos->clean();
}
}