hugodias / cakegallery

Gallery plugin for CakePHP
http://galleryopenshift-cakeupload.rhcloud.com/gallery
MIT License
28 stars 23 forks source link

Helper error on fresh clone #9

Closed greenmanspirit closed 9 years ago

greenmanspirit commented 9 years ago

I just cloned this repo into my project and I get them Warning immediately.

Warning (512): Method GalleryHelper::new_gallery_button does not exist [CORE/Cake/View/Helper.php, line 192]

I checked the file here on github as well and that function does not exist.

greenmanspirit commented 9 years ago

I also noticed that there is no code in general for adding albums. Why is this?

ptica commented 9 years ago

I believe that a

# in Plugin/Gallery/View/Gallery/index.ctp
echo $this->Gallery->link(null, null,
       array('class' => 'btn btn-primary pull-right', 'style' => 'margin-top: 10px')
);

is now used instead -- ie. a link to upload photos without specified gallery, as used for example here: https://github.com/hugodias/cakegallery/blob/master/View/Gallery/index.ctp#L11

hugodias commented 9 years ago

@ptica fixed that in the master branch on #10 . Check that out @greenmanspirit