X7ROOT File Manager
Current Path:
/home/hamdjcne/app.hamdalillahitravel.com/system/Commands/Generators/Views
home
/
hamdjcne
/
app.hamdalillahitravel.com
/
system
/
Commands
/
Generators
/
Views
/
ðŸ“
..
📄
command.tpl.php
(1.28 KB)
📄
config.tpl.php
(111 B)
📄
controller.tpl.php
(2.86 KB)
📄
entity.tpl.php
(223 B)
📄
filter.tpl.php
(1.32 KB)
📄
migration.tpl.php
(1.26 KB)
📄
model.tpl.php
(1.2 KB)
📄
seeder.tpl.php
(147 B)
📄
validation.tpl.php
(134 B)
Editing: command.tpl.php
<@php namespace {namespace}; use CodeIgniter\CLI\BaseCommand; use CodeIgniter\CLI\CLI; <?php if ($type === 'generator'): ?> use CodeIgniter\CLI\GeneratorTrait; <?php endif ?> class {class} extends BaseCommand { <?php if ($type === 'generator'): ?> use GeneratorTrait; <?php endif ?> /** * The Command's Group * * @var string */ protected $group = '{group}'; /** * The Command's Name * * @var string */ protected $name = '{command}'; /** * The Command's Description * * @var string */ protected $description = ''; /** * The Command's Usage * * @var string */ protected $usage = '{command} [arguments] [options]'; /** * The Command's Arguments * * @var array */ protected $arguments = []; /** * The Command's Options * * @var array */ protected $options = []; /** * Actually execute a command. * * @param array $params */ public function run(array $params) { <?php if ($type === 'generator'): ?> $this->component = 'Command'; $this->directory = 'Commands'; $this->template = 'command.tpl.php'; $this->execute($params); <?php else: ?> // <?php endif ?> } }
Upload File
Create Folder