Re: 情報共有:concrete5教科書172Page
2018年6月13日 at 16:34
Yamachann11さま
108 echo \HtmlObject\Image::create($src)->entities($title)); // alt属性にページ名を指定して表示
c5_download\halfway-data\Lesson10\blocks\page_list\templatesにあるnew_list.phpも同じです。
記述が間違ってます。
ダウンロードしたサンプルデータの『news_list.php』の108行目は、
『echo \HtmlObject\Image::create($src)->alt($th->entities($title));// alt属性にページ名を指定して表示』
です。
指摘されているコードは『($src)->』あとに『alt($th->』が抜けてます。
Your post has been saved and will be published after approval by the forum moderator.
Yamachann11
Re: Re: 情報共有:concrete5教科書172Page
ありがとうございます。
注意力不足ですね!!
108 echo \HtmlObject\Image::create($src)->alt($th->entities($title)); // alt属性にページ名を指定して表示
に修正しました。