OOP design - Decentralizing methods in seperate files
<p>I have two files: <code>config.php</code> and <code>init.php</code>.</p>

<p><code>config.php</code> has a <code>config</code> class with configurations for various server setups. <code>init.php</code> has the <code>init</code> class with all the methods for business logic. </p>

<p><code>init extends config</code></p>

<p>I use the ezsql library for MySQL interfacing. I call it as a variable in init (<code>$init-&gt;sql</code>). So far so good.</p>

<p>My <code>init.php</code> has grown to be a huge file with numerous methods. Some pages use it just for calling ezsql. I want to move all the methods related to certain area of the site in their respective files and include those files only when I need them.</p>

<p>How do I implement this in actual code?</p>
