PHP - detect if current page is static

Post Reply
rahuldottech
Ssr. Bludit
Posts: 16
Joined: Fri Sep 22, 2017 8:13 pm

Mon Jan 07, 2019 4:41 pm

I'm writing some custom code for my blog's sidebar, and I need to check if the current page being viewed is static. I'm sure this a super simple if condition, but I can't figure it out. Any help?
User avatar
bayerberg
Master Bludit
Posts: 78
Joined: Wed Jun 07, 2017 1:05 pm

Mon Jan 07, 2019 5:28 pm

yep, its very simple ;)

Code: Select all

if ($page->isStatic()) { }
i do things, check them out on behance | check out startups undiluted - london's startup ecosystem
rahuldottech
Ssr. Bludit
Posts: 16
Joined: Fri Sep 22, 2017 8:13 pm

Tue Jan 08, 2019 5:44 am

Haha, thanks!
Post Reply