Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while dealing with images #333

Open
hassansaqib opened this issue Feb 23, 2016 · 1 comment
Open

Getting error while dealing with images #333

hassansaqib opened this issue Feb 23, 2016 · 1 comment

Comments

@hassansaqib
Copy link

Hi, I am getting the following error.

FatalErrorException in FormBuilder.php line 282:
Call to a member function exists() on string

Can you guide me how to resolve it?

My code is as follows:

title('Index Images')->filters(function () { })->columns(function () { Column::string('id', 'ID'); Column::string('title', 'Title'); })->form(function () { FormItem::text('title', 'Title'); FormItem::textarea('discription', 'Description'); FormItem::image('path', 'Image'); }); where path is the full address including the name of image relative to the public folder. i.e. "images\index2.png".
@strotmann
Copy link

I think you got error here -> FormItem::image('path', 'Image');
must be - > FormItem::image('image', 'Image');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants