Ver Mensaje Individual
  #13 (permalink)  
Antiguo 24/08/2006, 11:58
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
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();
      }