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

Cakegallery - error message #17

Open
monicalb opened this issue Dec 2, 2015 · 2 comments
Open

Cakegallery - error message #17

monicalb opened this issue Dec 2, 2015 · 2 comments

Comments

@monicalb
Copy link

monicalb commented Dec 2, 2015

Dear Hugo,
thanks a lot for your nice work. One question:
i used gallery associated to a model and i see very well picture in the view and in the index. In the index i have a list of several occurance of id and so i see several pictures.
But in this last case even if all is running well, i have also message:
"Undefined index: Artist [APP/Plugin/Gallery/Model/Behavior/GalleryBehavior.php, line 13".
What may be wrong?

Best wishes
Monica

@hugodias
Copy link
Owner

hugodias commented Dec 2, 2015

Hey @monicalb thanks for using cakeGallery!

This may be a small bug, i'll look into it.

But It would be so much help if you paste your Model file associated with CakeGallery in Github gists and share with us.

Thanks!

@monicalb
Copy link
Author

monicalb commented Dec 4, 2015

Hey Hugo,
i'm not sure that i pasted my Model in the right place. So i past it here and thank you!

array( 'className' => 'Artwork', 'foreignKey' => 'artist_key', 'dependent'=> true ) ); var $belongsTo = array( 'State' => array( 'className' => 'State', 'foreignKey' => 'state_key', 'type' => 'inner' ), ); ``` public $validate = array( 'name' => array( 'rule' => 'notEmpty', 'required' => true, 'message' => 'Name e Surname required' ), 'surname' => array( 'rule' => 'notEmpty', 'required' => true, 'message' => 'Name e Surname required' ), 'email' => 'email', ); public $virtualFields = array( 'longname' => 'CONCAT(trim(Artist.surname), " ", trim(Artist.name))' ); ``` }

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