firefly-iii/app/controllers/TransactionController.php

26 lines
531 B
PHP
Raw Normal View History

2014-07-14 23:58:08 -05:00
<?php
use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
class TransactionController extends BaseController {
protected $accounts;
public function __construct(ARI $accounts) {
$this->accounts = $accounts;
View::share('menu','home');
}
public function createWithdrawal() {
// get accounts with names and id's.
$accounts =$this->accounts->getActiveDefaultAsSelectList();
return View::make('transactions.withdrawal')->with('accounts',$accounts);
}
}