dbms_primeidc/extdbms/lib/Controllers/DBMS/Client/MemoController.php
2025-04-07 10:44:52 +09:00

29 lines
966 B
PHP

<?php
namespace lib\Controllers\DBMS\Client;
use lib\Services\ClientService;
class MemoController extends ClientController
{
public function __construct()
{
parent::__construct();
$this->getView()->setPath('memo');
} //
//사용자용메모장 , customer_memo.php
//CLI 접속방법 : php index.php site/client/memo/insert_form/client_code/코드번호
//WEB 접속방법 : http://localhost/site/client/memo/insert_form/client_code/코드번호
public function insert_form(mixed $client_code = null)
{
if ($client_code === null) {
$client_code = $this->getSegments('client_code');
if ($client_code === null) {
throw new \Exception("client_code 값이 정의되지 않았습니다.");
}
}
$this->entity = $this->getClientService()->getModel()->where("Client_Code", $client_code);
return $this->render(__FUNCTION__);
}
} //Class