Are you a regular stikked user? Signup so you can keep track of your pastes!
  1.         function users()
  2.         {      
  3.                 $u = new User();       
  4.                 // Get User Array
  5.                 $u->get();                     
  6.                 // Get User Countrys
  7.                 foreach( $u->all as $c):
  8.                         $c->country->get();
  9.                 endforeach;    
  10.                 // Get User Sites & The Zones
  11.                 foreach( $u->all as $s):
  12.                         // Get Site Array Per User
  13.                         $s->site->get();
  14.                        
  15.                         // Loop site Array to collect Zones
  16.                         foreach($s->site->all as $z):
  17.                                 $z->zone->get();
  18.                         endforeach;
  19.                 endforeach;                                                    
  20.                 $this->data['user'] = $u->all; # "test";
  21.                 $this->mysmarty->view( 'root/welcome', $this->data);
  22.         }

Reply to "Untitled"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.