Пример #1
0
 protected function _initialize(Library\ObjectConfig $config)
 {
     $config->append(array('model' => 'com:attachments.model.attachments', 'request' => array('view' => 'attachment')));
     parent::_initialize($config);
     $config->view = 'com:attachments.view.' . $config->request->view . '.' . $config->request->format;
 }
Пример #2
0
 protected function _initialize(Library\ObjectConfig $config)
 {
     $config->append(array('request' => array('view' => 'attachments'), 'behaviors' => array('editable')));
     parent::_initialize($config);
 }