Automatically choose a file location before loading it in php
<p>I need to create a simple file overloading system like symfony does with php files and templates. I will give an example to explain what I need:</p>

<p>Given this folder structure:</p>

<pre><code> - root_folder
    - modules
       -module1
         -file1.php
         -file2.php
         -file3.php

    - specific_modules
       -module1
         -file2.php
</code></pre>

<p>I would like to find a way that automatically loads a file if it is found inside the specific_modules folder (file2.php) when called, if it is not found, it should load file2.php normally from the modules directory.</p>

<p>I would like to do it unobstrusively for the programmer, but not sure if it's possible!!</p>

<p>Any help or advice is welcome, thanks in advance!</p>

<p>skarvin</p>
