Get all files executed in magento


Get all files executed in magento : If You are debugging and wants to get all files executed during the page load or on any event you can use the following method.


How can you code & Get all files executed in Magento

The following function will return the include, include_once, require or require_once files. If you are debugging any framework it will help you a lot to get the files and flow.

$includedFiles = get_included_files();

foreach ($includedFiles as $filename) {
    echo "$filename\n\n";
}

Which will generate the following query as below.

//Select count(*) from users where id=’100′;

where $id = 5;


Advertisements

Add Comment

📖 Read More