pageID from block in view.php

Permalink 1 user found helpful
Actually I want to transfer some data from page attributes as GET Request data. URL for request I create in block's view.php. How to get pageID from block in view.php?

theneptune
 
theneptune replied on at Permalink Best Answer Reply
theneptune
I have got the solution
$currentPageCID = Page::getCurrentPage()->getCollectionID();


It may be helpful to other.

Thanks