public function accountCategories(Account $account)
    {
        $this->dataCollection->add('account', $account);

        $categoryMapper = new CategoryMapper(Database::get('money'));
        $categories     = $categoryMapper->findAllByAccountId($account->getId());

        $this->dataCollection->add('categories', $categories);

        return $this->render('Categories');
    }
public function accountCategories(Account $account)
    {
        $this->dataCollection->add('account', $account);

        $categoryMapper = new CategoryMapper(Database::get('money'));
        $categories     = $categoryMapper->findAllByAccountId($account->getId());

        $this->dataCollection->add('categories', $categories);

        return $this->render('Categories');
    }
public function accountCategories ( Account $ account ) { $ this -> dataCollection -> add ( 'account' , $ account ) ; $ categoryMapper = new CategoryMapper ( Database :: get ( 'money' ) ) ; $ categories = $ categoryMapper -> findAllByAccountId ( $ account -> getId ( ) ) ; $ this -> dataCollection -> add ( 'categories' , $ categories ) ; return $ this -> render ( 'Categories' ) ; }
Category component for account categories list.

@param  Account $account
@return string
Category component for account categories list .