P. 1
Manual Kumbia PHP Framework v0-5

Manual Kumbia PHP Framework v0-5

4.8

|Views: 4,398|Likes:
Published by Mauro Miguel Melo

More info:

Published by: Mauro Miguel Melo on Jan 23, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

11/15/2014

Valida que el campo tenga determinado formato según una expresión regular antes de
insertar o actualizar.

1. 2.  class Clientes extends ActiveRecord {
3.
4.    public function __construct(){
5.     $this­>validates_format_of("email", "^(+)@((?:[?a?z0?9]+\.)+[a?z]{2,})

$");
6.    }
7.
8.  }
9. ?>

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->