×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Aug 6, 2017 11:43 AM
Modified: Aug 6, 2017 11:48 AM
Views: 1
Tags: no tags
  1. class morzsa {
  2.     // private $kiir='';
  3.     public $m=array();
  4.  
  5.     function __construct() {
  6.         global $smarty;
  7.         $this->s=$smarty;
  8.     }
  9.  
  10.     function add($link,$nev) {
  11.         return $this->m[]=array('link'=>$link,'nev'=>$nev);
  12.     }
  13.     function get() {
  14.         // return $this->kiir;
  15.     }
  16.  
  17.     function display() {
  18.         $this->s->assign("morzsa",$this->m);
  19.     }
  20. }
  21.  
  22. // $morzsa=new morzsa();
  23. // $morzsa->add('/','Főoldal');
  24. // $morzsa->display();