abstract and Gadgets system
<p>i'm trying to make in my cms Gadgets system
it mean the layput is daynamic</p>

<p>example:</p>

<h2>left menu</h2>

<h2>poll</h2>

<h2>ad</h2>

<h2>right menu</h2>

<h2>content</h2>

<p>the user can change these things from the admin panel</p>

<p>the files structure</p>

<pre><code>gadgets/
gadgets/gadgets.php
gadgets/polls/bootstrap.php
gadgets/polls/menu/menu.php
gadgets/polls/menu/results.php
</code></pre>

<p>how it works</p>

<p>start from <strong>menu.php</strong></p>

<pre><code>class poll_menu extends Poll_Bootstrap{

}
</code></pre>

<p><strong>bootstrap.php</strong></p>

<pre><code>class Poll_Bootstrap extends Gadgets_Abstract{

}
</code></pre>

<p><strong>gadgets.php</strong></p>

<pre><code>abstract class Gadgets_Abstract{


}
</code></pre>

<p>thats mean gadgets.php contain the main codes and bootstrap.php has the sub-main code</p>

<p>my question is
when i want to show the poll menu and other thing like other menu of result
i will make</p>

<pre><code>new poll_menu();
new poll_result();
</code></pre>

<p>is every new will start all extended class?
is that will make overload?</p>
