Version 1, last updated by Deivinson Tejeda at September 01, 2007 07:47 UTC

25.4.1 create

Crea un registro a partir de los valores de los atributos del objeto ActiveRecord.


Ejemplo

  1. $Album = new Album();
  2. $Album->nombre = “Take Off Your Pants and Jacket”;
  3. $Album->valor = 40000;
  4. $Album->create();
  5. $Album = new Album();
  6. $Album->create("nombre: Take Off Your Pants and Jacket",
  7. "valor: 40000");
  8. Album = new Album();
  9. $Album->create(array("nombre" => "Take Off Your Pants and Jacket",
  10. "valor" => 40000));

Regresar al indice