PHP code example of kacospro / bootscake

1. Go to this page and download the library: Download kacospro/bootscake 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/ */

    

kacospro / bootscake example snippets


Plugin::load('BootsCake');

public function initialize()
{
    $this->loadHelper('BootsCake.BootsCakeFlash');
    $this->loadHelper('BootsCake.BootsCakeForm');
    $this->loadHelper('BootsCake.BootsCakeModal');
    $this->loadHelper('BootsCake.BootsCakePaginator');
}


echo $this->BootsCakeForm->create($article);
echo $this->BootsCakeForm->control('title');
echo $this->BootsCakeForm->control('body');
echo $this->BootsCakeForm->control(__('Submit'), ['type' => 'submit']);
echo $this->BootsCakeForm->end();

<?= $this->BootsCakeForm->control(
    'email',
    [
        'placeholder' => '[email protected]',
        'size' => 'sm',
    ]
) 

<?= $this->BootsCakeForm->control('Submit', ['type' => 'submit', 'color' => 'primary']) 

<?= $this->BootsCakeFlash->render() 

<nav>
    <ul class="pagination">
        
        echo $this->BootsCakePaginator->first();
        echo $this->BootsCakePaginator->prev();
        echo $this->BootsCakePaginator->numbers();
        echo $this->BootsCakePaginator->next();
        echo $this->BootsCakePaginator->last();
        

<?=
$this->BootsCakeForm->postLink(__('Delete'),
[
  'action' => 'delete',
  $article->id
], [
  'data-name' => $article->id,
  'escape' => false,
  'title' => 'Eliminar usuario'
])

<?= $this->element('BootsCake.modal/default') 

<?= $this->BootsCakeModal->render()