Quote:
Originally Posted by cflsystems
Look in the class - it has filter for country I believe
|
It does, it has a parameter country, but I am not sure how to set it if I am instantiating class in schema. I tried to add it to model attributes, but it does not make a lot of sense:
$this->mainSchema['state'] = array(
self::SCHEMA_CLASS => '\XLite\View\FormField\Select\State',
self::SCHEMA_LABEL => 'State',
self::SCHEMA_REQUIRED => false,
self::SCHEMA_MODEL_ATTRIBUTES => array(
\XLite\View\FormField\Input\Base\StringInput::PARA M_MAX_LENGTH => 'length',
\XLite\View\FormField\Select\State::PARAM_COUNTRY => new \XLite\Model\WidgetParam\TypeString('Country', 'US')
)
);