echo $this->Html->link(
'<i class="icon-plus"></i>',
array('action' => 'upload', $aGalleries[$i]['gallery']['picture']),
array('data-gal' => 'prettyPhoto[portfolio1]', 'escape' => false)
);
編輯:看了您的修改
的建議在http://book.cakephp.org/2.0/en/views/themes.html後,你必須創建指向應用程序webroot內的文件夾的鏈接。之後,你可以這樣做:
使app/webroot/theme/default/upload/
點app/View/Themed/default/webroot/upload/
echo $this->Html->link(
'<i class="icon-plus"></i>',
FULL_BASE_URL.'/webroot/theme/default/upload/'.$aGalleries[$i]['gallery']['picture'],
array('data-gal' => 'prettyPhoto[portfolio1]', 'escape' => false)
);
請解釋更好:你說的關於雲燕位置是內CakePHP的IMG文件夾?即app/webroot/img /主題/默認/ webroot /上傳 – arilia
@arilia是我剛剛更新 – prameshwer