HosipLan

Untitled

Oct 17th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $this->template->users = $users = $this->db->select('*, user.id as user_id')->from('napad')
  2.         ->innerJoin('user')->on('napad.id_user = user.id')
  3.     ->fetchAssoc('user_id[]');
  4.  
  5.  
  6. //latte
  7.  
  8. {foreach $users as $userId => $ideas}
  9. <tr><td>ID uživatele {$idea->user_id}</td></tr>
  10.  
  11. <tr n:foreach="$ideas as $idea">
  12.   <td>Nápad {$idea->nazev}</td>
  13. </tr>
  14. {/foreach}
Advertisement
Add Comment
Please, Sign In to add comment