Jump to content
JeevanisM

Processwire way to trace the php source code files

Recommended Posts

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

 

Share this post


Link to post
Share on other sites
$page->template->altFilename;
$page->template->filename;

 

  • Like 7

Share this post


Link to post
Share on other sites
On 8/28/2019 at 4:48 PM, LostKobrakai said:

$page->template->altFilename;
$page->template->filename;

 

thank you for this wonderful tip

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...