Example #1
0
 public function __construct(Currency $currencyModel, Note $noteModel)
 {
     $notes = $noteModel->getLastNote();
     if (count($notes) < 1) {
         $notes = false;
     }
     //GLOBAL SETTINGS
     $this->_glob = array('_note' => $notes, '_curr' => $currencyModel->getRate(), '_baseCurrency' => 'RUB', '_precision' => 2, '_countProductsOfPage' => Auth::User() ? Auth::User()->count_products : 100, '_maxCountProductsOfPage' => 500, '_alerts' => AbsentController::shortView());
     View::share('_glob', $this->_glob);
 }