PHP code example of rougin / combustor

1. Go to this page and download the library: Download rougin/combustor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rougin / combustor example snippets

 php
// ciacme/application/config/database.php

// ...

$db['default'] = array(
    'dsn'   => '',
    'hostname' => 'localhost',
    'username' => '',
    'password' => '',
    'database' => '',
    'dbdriver' => 'mysqli',
    
    // ...
);
 php
<div class="mb-3">
  <?= form_label('Email', '', ['class' => 'form-label mb-0']) 
 php
<div class="mb-3">
  <?= form_label('Email', '', ['class' => 'form-label mb-0']) 
 php
<div class="mb-3">
  <?= form_label('Admin', '', ['class' => 'form-label mb-0']) 
 php
namespace Acme\Fields;

use Rougin\Combustor\Colfield;

class EmailField extends Colfield
{
    protected $class = 'form-control';

    /**
     * If $name is specified, it will check if the current field
     * name matches the in this $name field.
     */
    protected $name = 'email';

    public function getPlate()
    {
        $field = $this->accessor;

        $class = $this->getClass();

        /** @var string */
        $name = $this->getName();

        $html = '<?= form_input([\'type\' => \'email\', \'name\' => \'' . $name . '\', \'value\' => set_value(\'' . $name . '\')])