Inheritance: extends BcFormHelper
Exemplo n.º 1
0
 /**
  * create
  * ファイル添付の対応のためにデフォルト値を変更
  *
  * @param array $model
  * @param array $options
  * @return string
  */
 public function create($model = null, $options = array())
 {
     if (!isset($options['type'])) {
         $options['type'] = 'file';
     }
     if (!empty($options['url']) && !empty($this->request->params['Site']['same_main_url'])) {
         $options['url'] = $this->BcContents->getPureUrl($options['url'], $this->request->params['Site']['id']);
     }
     return parent::create($model, $options);
 }
Exemplo n.º 2
0
 /**
  * create
  * ファイル添付の対応のためにデフォルト値を変更
  *
  * @param array $model
  * @param array $options
  * @return string
  */
 public function create($model = null, $options = array())
 {
     if (!isset($options['type'])) {
         $options['type'] = 'file';
     }
     return parent::create($model, $options);
 }