Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Model;
- class Novinky extends \Nette\Object
- {
- /** @var */
- private $db;
- public function __construct(\DibiConnection $connection)
- {
- $this->db = $connection;
- }
- public function getAll()
- {
- return $this->db->fetchAll('SELECT * FROM novinky');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement