mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
update
This commit is contained in:
parent
e53a643e3d
commit
1ab37bd478
209 changed files with 79957 additions and 0 deletions
118
my-snippets/codeigniter4/snippets/php_controllers.json
Normal file
118
my-snippets/codeigniter4/snippets/php_controllers.json
Normal file
|
@ -0,0 +1,118 @@
|
|||
{
|
||||
"Codeigniter4_Controller": {
|
||||
"prefix": "ci4:controller",
|
||||
"lang": ["php"],
|
||||
"body": [
|
||||
"public function ${1:index}(${2:\\$request})",
|
||||
"{",
|
||||
"\t\\\\${3:code}",
|
||||
"}$0"
|
||||
],
|
||||
"description": "CodeIgniter 4 - Make Controller"
|
||||
},
|
||||
"Codeigniter4_Controller_Resources": {
|
||||
"prefix": "ci4:controller:resources",
|
||||
"lang": ["php"],
|
||||
"body": [
|
||||
"public function __construct()",
|
||||
"{",
|
||||
"\t\\\\__construct code",
|
||||
"}",
|
||||
"",
|
||||
"public function index()",
|
||||
"{",
|
||||
"\t\\\\index code",
|
||||
"}",
|
||||
"",
|
||||
"public function show(\\$id = null)",
|
||||
"{",
|
||||
"\t\\\\show code",
|
||||
"}",
|
||||
"",
|
||||
"public function new()",
|
||||
"{",
|
||||
"\t\\\\new code",
|
||||
"}",
|
||||
"",
|
||||
"public function create()",
|
||||
"{",
|
||||
"\t\\\\create code",
|
||||
"}",
|
||||
"",
|
||||
"public function edit(\\$id = null)",
|
||||
"{",
|
||||
"\t\\\\edit code",
|
||||
"}",
|
||||
"",
|
||||
"public function update(\\$id = null)",
|
||||
"{",
|
||||
"\t\\\\update code",
|
||||
"}",
|
||||
"",
|
||||
"public function delete(\\$id = null)",
|
||||
"{",
|
||||
"\t\\\\delete code",
|
||||
"}$0"
|
||||
],
|
||||
"description": "CodeIgniter 4 - Make Controller Resources"
|
||||
},
|
||||
"Codeigniter4_Controller_Presenter": {
|
||||
"prefix": "ci4:controller:presenter",
|
||||
"lang": ["php"],
|
||||
"body": [
|
||||
"public function __construct()",
|
||||
"{",
|
||||
"\t\\__construct code",
|
||||
"}",
|
||||
"",
|
||||
"public function index()",
|
||||
"{",
|
||||
"\t\\index code",
|
||||
"}",
|
||||
"",
|
||||
"public function show(\\$id = null)",
|
||||
"{",
|
||||
"\t\\show code",
|
||||
"}",
|
||||
"",
|
||||
"public function new()",
|
||||
"{",
|
||||
"\t\\new code",
|
||||
"}",
|
||||
"",
|
||||
"public function create()",
|
||||
"{",
|
||||
"\t\\create code",
|
||||
"}",
|
||||
"",
|
||||
"public function edit(\\$id = null)",
|
||||
"{",
|
||||
"\t\\edit code",
|
||||
"}",
|
||||
"",
|
||||
"public function update(\\$id = null)",
|
||||
"{",
|
||||
"\t\\update code",
|
||||
"}",
|
||||
"",
|
||||
"public function remove(\\$id = null)",
|
||||
"{",
|
||||
"\t\\remove code",
|
||||
"}",
|
||||
"",
|
||||
"public function delete(\\$id = null)",
|
||||
"{",
|
||||
"\t\\delete code",
|
||||
"}$0"
|
||||
],
|
||||
"description": "CodeIgniter 4 - Make Controler Presenter"
|
||||
},
|
||||
"Codeigniter4_Controller_Request": {
|
||||
"prefix": "ci4:controller:request",
|
||||
"lang": ["php"],
|
||||
"body": [
|
||||
"\\$this->request->${1|getVar,getGet,getPost,getMethod,isAjax,isCLI,isSecure|}('${2:field name}');$0"
|
||||
],
|
||||
"description": "CodeIgniter 4 - Make Controller Request Class"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue