Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using language class with ORM validation
  • Any advice for using the language class with ORM validation?

    class Model_User extends \Orm\Model
    {
    protected static $_properties = array(
    'id',
    'email' => array(
    'data_type' => 'varchar',
    'label' => __('account.email'),

    doesn’t work because it’s a function, but that’s what I’m trying to achieve.
  • HarroHarro
    Accepted Answer
    You can just use

    label' => 'account.email',

    ORM will call __() automatically.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion