JeevanisM Posted August 28, 2019 Posted August 28, 2019 Hello, I come from a CodeIgniter backgroud, and as you all know, in codeigniter, we can locate the controller file name from the URL address bar ( unless there are some heavy customization on the URL routing ), and once we get the controller file, we can read the source code and go to corresponding View & Model files for that particular Controller file. But is there any way to trace source like this, in Processwire ? It never occurred to me for the need of this situation until I had to re-use and existing Processwire Project ( its a blog project). So I had to go to the source files to make some edits and changes. It was easy to recognize php file for the Home Page, but for inner pages, I had to make some guesses and observations to find exact sourcefiles. So, I would like to know if there is any ProcessWire way to achieve this. thank you
LostKobrakai Posted August 28, 2019 Posted August 28, 2019 $page->template->altFilename; $page->template->filename; 7
JeevanisM Posted September 2, 2019 Author Posted September 2, 2019 On 8/28/2019 at 4:48 PM, LostKobrakai said: $page->template->altFilename; $page->template->filename; thank you for this wonderful tip
Recommended Posts