Advertisement
Guest User

Untitled

a guest
Mar 28th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function UserConstants(){
  2. $constants = get_defined_constants(true)['user'];
  3. $AL = new ArrayList();
  4. foreach($constants as $key => $val){
  5. $AL->push(new ArrayData(array('key' => $key,
  6. 'val' => $val)));
  7. }
  8. return $AL;
  9. }
  10.  
  11.  
  12. <% loop $UserConstants %>
  13. <p>$key - $val</p>
  14. <% end_loop %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement