Guest User

Untitled

a guest
May 13th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. ---nefunkcni basepresenter.php----------------------------------------------------------
  2.  
  3. public $db;
  4. /** @var \Nette\Caching\Cache */
  5. protected $cache;
  6.  
  7.  
  8. public function __construct(\DibiConnection $db)
  9. {
  10. $this->db = $db;
  11.  
  12. $storage = new Nette\Caching\Storages\FileStorage('../temp/cache');
  13. $this->cache = new Nette\Caching\Cache($storage,'baze');
  14.  
  15.  
  16. }
  17. ------------------------------------------------------------------------------
  18.  
  19.  
  20.  
  21.  
  22. ---funkcni basepresenter.php----------------------------------------------------------
  23.  
  24.  
  25. public $db;
  26. /** @var \Nette\Caching\Cache */
  27. protected $cache;
  28.  
  29.  
  30. public function __construct(\DibiConnection $db)
  31. {
  32. $this->db = $db;
  33.  
  34.  
  35.  
  36.  
  37. }
  38.  
  39. public function startup()
  40. {
  41.  
  42. $storage = new Nette\Caching\Storages\FileStorage('../temp/cache');
  43. $this->cache = new Nette\Caching\Cache($storage,'baze');
  44. //..... Funguje
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment