当我写图片的网址时, 我无法运行服务器。如果我删除了网址,我就无法保存图片..
public function createAction()
{
// initial entity creation
$entity = new MySuperClass();
// here i retrieve form data and recreate entity with class chosen in form
$request = $this->get('request');
if (in_array($request->getMethod(), array('POST', 'PUT'))) {
$form = clone $this->get('my_app.my_super_class.form');
$form->submit($request);
$entityClass = $form['entityClass']->getData();
$entity = new $entityClass();
}
// here i call form handler
return $this->update($spend);
}
请建议一个解决方案,我尝试了一些SO的解决方案,但无法解决。