diff --git a/View/Helper/NetCommonsHtmlHelper.php b/View/Helper/NetCommonsHtmlHelper.php index 163f9bfc..840ac7e9 100644 --- a/View/Helper/NetCommonsHtmlHelper.php +++ b/View/Helper/NetCommonsHtmlHelper.php @@ -157,6 +157,21 @@ private function __getUrl($url = null) { return $url; } +/** + * ImageのURLの取得 + * + * @param mixed $path URL + * @param array $options HTML属性オプション + * @return string URL + * @link http://book.cakephp.org/2.0/ja/core-libraries/helpers/html.html#HtmlHelper::url HtmlHelper::url + */ + public function image($path, $options = array()) { + //URLの設定 + $path = $this->__getUrl($path); + $output = $this->Html->image($path, $options); + return $output; + } + /** * URLの取得 *