44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace CakeAccounting\Controller;
|
|
|
|
use Cake\Datasource\Exception\RecordNotFoundException;
|
|
use Cake\Http\Response;
|
|
use CakeAccounting\Controller\AppController;
|
|
use CakeAccounting\Model\Table\DeExternalAccountStatementsTable;
|
|
|
|
/**
|
|
* DeExternalAccountStatements Controller
|
|
*
|
|
* @property DeExternalAccountStatementsTable $DeExternalAccountStatements
|
|
*/
|
|
class DeExternalAccountStatementsController extends AppController
|
|
{
|
|
/**
|
|
* Index method
|
|
*
|
|
* @return Response|null|void Renders view
|
|
*/
|
|
public function index()
|
|
{
|
|
$query = $this->DeExternalAccountStatements->find();
|
|
$deExternalAccountStatements = $this->paginate($query);
|
|
|
|
$this->set(compact('deExternalAccountStatements'));
|
|
}
|
|
|
|
/**
|
|
* View method
|
|
*
|
|
* @param string|null $id De External Account Statement id.
|
|
* @return Response|null|void Renders view
|
|
* @throws RecordNotFoundException When record not found.
|
|
*/
|
|
public function view($id = null)
|
|
{
|
|
$deExternalAccountStatement = $this->DeExternalAccountStatements->get($id, contain: []);
|
|
$this->set(compact('deExternalAccountStatement'));
|
|
}
|
|
}
|