Class loops itself until php is out of memory and db have too many connections
===

I have a class let's call it sub_class which extends the prime class let's class it prime_class. And sub_class declared inside prime_class, like that - 

    class Loader
	{	
		
		public $sql;
		public $logger;
		public $view;
		public $model;
		public $config;
		public $url_data;
		
		
		
		public function __construct()
		{
			$url_accepted = $_GET['url'];
			$this->config = $GLOBALS['config'];
			
			$database_connection = some array...
			$this->sql = new dbHandler($database_connection);

			$this->logger = new logger();

			$this->view = new view();
			$this->view->set_view($config['view']['view']);
			$this->model = new model();

and view and model extends Loader. 
For some reason it looping itself until the sql have to many connections and php is out of memory, while index.php is the only place where Loader is declared - 

    require_once("app/includes/loader.php");
	
	$loader = new Loader();

I don't know what is the problem but I know that the source is the declaring of view and model. Both model and view have no refrence to Loader, except in the "extends Loader" and accesing loader value by using $this.

Can someone help me solving this problem?