Re: ページリストの表示について
2017年6月9日 at 22:24
もしくは・・・
特に日付のフォーマットを何度も使う必要がなければ、
以下でもいけると思います。
$c = Page::getCurrentPage();
$pagedate = $c->getCollectionDatePublic();
$day = date('w', strtotime( $pagedate ));
$date = $c->getCollectionDatePublicObject()->format('Y年m月d日(' . $week[$day] . ')');
相変わらず、未検証ですが・・・
参考
http://documentation.concrete5.org/api/class-Concrete.Core.Page.Page.html
Your post has been saved and will be published after approval by the forum moderator.