0
我在我的模型做這個....如何使用Kohana 3爲ORM模型定義alpha或字母數字規則?
protected $_rules = array(
'id' => array(
'not_empty' => NULL,
'numeric' => array(TRUE)
)
....
我這樣做是正確的數字預選賽?
謝謝。
我在我的模型做這個....如何使用Kohana 3爲ORM模型定義alpha或字母數字規則?
protected $_rules = array(
'id' => array(
'not_empty' => NULL,
'numeric' => array(TRUE)
)
....
我這樣做是正確的數字預選賽?
謝謝。
是的,你做得對。