Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
okay, maybe you need to put this content down here into /app_helper.php and call it from the view like: Html->show_path(); ?> function show_path($photo, $size, $params = array()) { if(empty($photo)) { return ''; } else { $id = 0; $secret = ''; if(arr

Re: photo_show.php helper

2012-09-30 Thread Chris
hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (ar

Re: photo_show.php helper

2012-09-30 Thread Chris
hi Ivan,... thank you for your reply now I'm reading photo_show helper: Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> But,... can nor read FULL_BASE_URL from helper webroot . 'photos/' . $size . '/' . $id . '-' . $sec

Re: photo_show.php helper

2012-09-30 Thread Tilen Majerle
i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/30 Ivan Rimac > Html->link($this->photoShow->thumb($user_obj), > '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> > > maybe you are missing $this

Re: photo_show.php helper

2012-09-30 Thread Ivan Rimac
Html->link($this->photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> maybe you are missing $this 2012/9/30 Chris > hi guys, I have a photo_show helper which works on 1.2 pre Beta > version,... > now I'm trying to migrate to 1.3 and I can

photo_show.php helper

2012-09-30 Thread Chris
hi guys, I have a photo_show helper which works on 1.2 pre Beta version,... now I'm trying to migrate to 1.3 and I can't bring it up in a view: link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> what am I doing wrong...??? than