adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

call_user_func_array() expects parameter 1 to be a valid callback #76

Closed amraei closed 8 years ago

amraei commented 9 years ago

I get error when using:

    BootForm::text('Field Label', 'field_name')

The error is:

call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object

/var/www/html/payment24/laravel/vendor/adamwathan/bootforms/src/AdamWathan/BootForms/BootForm.php

return call_user_func_array(array($this->builder, $method), $parameters);
adamwathan commented 9 years ago

Make sure you call BootForm::open first

On Sat, Oct 17, 2015 at 4:20 AM Omid Amraei notifications@github.com wrote:

I get error when using:

BootForm::text('Field Label', 'field_name')

The error is:

call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object

/var/www/html/payment24/laravel/vendor/adamwathan/bootforms/src/AdamWathan/BootForms/BootForm.php

return call_user_func_array(array($this->builder, $method), $parameters);

— Reply to this email directly or view it on GitHub https://github.com/adamwathan/bootforms/issues/76.