mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-22 06:23:12 -06:00
26 lines
531 B
PHP
26 lines
531 B
PHP
|
<?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);
|
||
|
}
|
||
|
|
||
|
}
|