for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas\Api\Controllers;
use Canvas\Models\SystemModules;
use Phalcon\Http\Response;
/**
* Class SystemModulesController.
*
* @package Canvas\Api\Controllers
*/
class SystemModulesController extends BaseController
{
/*
* fields we accept to create
* @var array
protected $createFields = [];
protected $updateFields = ['show'];
* set objects.
* @return void
public function onConstruct()
$this->model = new SystemModules();
$this->additionalSearchFields = [
['is_deleted', ':', '0'],
['apps_id', ':', $this->app->getId()],
];
}
* Delete a Record.
* @throws Exception
* @return Response
public function delete($id): Response
return $this->response('Cant delete System Modules at the moment');