【问题标题】:How to define alpha or alphanumeric rules for a ORM model using Kohana 3?如何使用 Kohana 3 为 ORM 模型定义字母或字母数字规则?
【发布时间】:2010-10-02 18:03:13
【问题描述】:

我正在我的模型中这样做......

   protected $_rules = array(
      'id' => array(
            'not_empty' => NULL,
            'numeric' => array(TRUE)
             )
....

我对数字限定符是否正确?

谢谢。

【问题讨论】:

    标签: php validation orm kohana-3


    【解决方案1】:

    是的,你做得对。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多