php - where is symfony2 formerror class/component? -


i doing following in controller manually check form, error saying

fatal error: class 'biztv\contentmanagementbundle\controller\formerror' not found in /var/www/cloudsign_beta/src/biztv/contentmanagementbundle/controller/defaultcontroller.php on line 233

so suppose there fancy symfony form component must add use statement on top, know one?

    if ($nameoccupied=1) {                   $error = new formerror("det finns redan innehåll på denna plats med samma namn, vänligen välj ett annat namn (eller välj en annan plats).");         $form->get('name')->adderror($error);        } 

you missing following use statement:

use symfony\component\form\formerror 

reference: http://api.symfony.com/2.3/symfony/component/form/formerror.html

important: when creating object, should use same case 1 class definition avoid failure on case sensitive systems.
here, new formerror should new formerror


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -