fork download
  1. <?php
  2.  
  3.  
  4. class constantes {
  5.  
  6.  
  7. private $path;
  8. private $path_admin;
  9. private $base_url;
  10. private $base_url_admin;
  11.  
  12.  
  13. public function __construct(){
  14.  
  15. $this->path = '/home/axitech/www/dent';
  16. // ...
  17.  
  18. }
  19.  
  20. public function getPath(){
  21.  
  22. return $this->path;
  23.  
  24. }
  25.  
  26.  
  27. }
  28.  
  29.  
  30. $constantes = new Constantes();
  31.  
  32. echo $constantes->getPath();
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
/home/axitech/www/dent