### Alternate Snippets for View Files ### `[ProjectRoot]/app/Views/**.php`
Command | Description | Output |
---|---|---|
ci4:views:endSection | Make end Section in View files | ```php = $this->endSection() ;?> ``` |
ci4:views:extend | Using Layouts in Views | ```php = $this->extend('layouts') ;?> ``` |
ci4:views:foreach | Make foreach in View files |
```php
|
ci4:views:if | Make if in View files |
```php ``` |
ci4:views:if-else | Make if else in View files |
```php ``` |
ci4:views:if-elseif | Make if elseif in View files |
```php ``` |
ci4:views:if-elseif-else | Make if elseif else in View files |
```php ``` |
ci4:views:include | Including View Partials | ```php = $this->include('sidebar') ;?> ``` |
ci4:views:php | Make php tag in View files | ```php ``` |
ci4:views:php-echo | Make php echo tag in View files | ```php = code ;?> ``` |
ci4:views:renderSection | Make render Section in View files | ```php = $this->renderSection('content') ;?> ``` |
ci4:views:section | Make Section in View files | ```php = $this->section('content') ;?> ``` |
ci4:views:section-endSection | Make Section with end Section in View files | ```php = $this->section('content') ;?> = $this->endSection() ;?> ``` |