programming:php-singlethon-pattern

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programming:php-singlethon-pattern [2014/06/21 11:55] Giuseppe Di Terlizziprogramming:php-singlethon-pattern [2014/08/21 18:40] (current) Giuseppe Di Terlizzi
Line 1: Line 1:
-====== Singleton Pattern in PHP ======+====== PHP: Singleton Pattern ======
  
 {{http://php.net/images/php.gif }} Con questa guida descriveremo come creare una classe che implementa il pattern //singleton//. {{http://php.net/images/php.gif }} Con questa guida descriveremo come creare una classe che implementa il pattern //singleton//.
Line 45: Line 45:
 <file php Registry.php> <file php Registry.php>
 <?php <?php
-  include Singleton.php;+  include 'Singleton.php';
      
   class Registry extends Singleton {   class Registry extends Singleton {
Line 79: Line 79:
 <?php <?php
  
-include Registry.php;+include 'Registry.php';
  
 $registry = Registry::getInstance(); $registry = Registry::getInstance();
  • programming/php-singlethon-pattern.1403344530.txt.gz
  • Last modified: 10 years ago
  • by Giuseppe Di Terlizzi