PHP code example of acplo / acploui

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

    

acplo / acploui example snippets



//Will use the local minified version  
echo $this->acploHeadScript()->appendJquery();

//Will use the CDN version  
echo $this->acploHeadScript()->appendJquery(true);
 
//Will use the 2.1.0 unminified CDN version  
echo $this->acploHeadScript()->appendJquery(true, false, '2.1.0'); 

 
//Will use the local minified version
echo $this->acploHeadLink()->appendFontAwesome();

//Will use the minified CDN version
echo $this->acploHeadLink()->appendFontAwesome(true);
 
//Will use the 4.2.0 unminified CDN version  
echo $this->acploHeadLink()->appendFontAwesome(true, false, '4.2.0');

<?= $this->acploIcon('fa-user') 

<?= $this->acploIcon('fa-user', 'margin-right:4px;float:none') 

<?= $this->acploIcon('fa-user pull-right') 

<?= $this->acploIcon()->FaUser() 

<?= $this->acploIcon('fa-user','',true) 

<script>
<?= $this->acploChosen() 

<script>
<?= $this->acploChosen(false) 

 echo $this->acploHeadLink()->appendChosen() 

 echo $this->acploHeadScript()->appendMoment() 

 echo $this->acploHeadScript()->appendMoment(['pt-br','en']) 

 echo $this->acploHeadScript()->appendMoment(['pt-br','en'],false) 

 echo $this->acploHeadScript()->appendMoment(['*']) 

 
//Will use the minified local version
echo $this->acploHeadLink()->appendBootstrap();
echo $this->acploHeadScript()->appendBootstrap();

//Will use the minified CDN version
echo $this->acploHeadLink()->appendBootstrap(true);
echo $this->acploHeadScript()->appendBootstrap(true);  

//Will use the 3.3.1 unminified CDN version  
echo $this->acploHeadLink()->appendBootstrap(true, false, '3.3.1');
echo $this->acploHeadScript()->appendBootstrap(true, false, '3.3.1');

<?= $this->acploForm($form) 

<?= $this->acploForm($form, true) 

<?= $this->acploFormRow($form->get('password') 

echo $this->acploForm()->openTag($form, true);
foreach (['name','gender','email','password','passwordVerify','captcha','newsletter','submit'] as $element) {
    echo $this->acploFormRow()->render($form->get($element), true, 4);
}
echo $this->acploForm()->closeTag();

<?= $this->acploAlert('test') 

<?= $this->acploAlert()->success('test') 

<?= $this->acploAlert()->setDismissible(true)->success('test') 

<?= $this->acploBadge('2') 

<?= $this->acploButton('Test') 

<?= $this->acploIcon('glyphicon-user') 

<?= $this->acploIcon('glyphicon-user', 'margin-right:4px;float:none') 

<?= $this->acploIcon('glyphicon-user pull-right') 

<?= $this->acploIcon()->GlyphiconUser() 

 echo $this->acploImage('/images/logo.png') 

 echo $this->acploImage('/images/logo.png')->setResponsive(false) 

<?= $this->acploLabel('test') 

<?= $this->acploNavigation('Navigation')->menu()

'navigation' => [
    'default' => [
        'crud' => [
            'pages' => [
                [
                    'label' => 'Client',
                    'route' => 'client',
                    'pages' => [
                        [
                            'label' => 'Edit Client',
                            'route' => 'client/edit',
                        ],
                        [
                    		'type' => 'AcploUi\Navigation\Page\Divider'
                 		],
                  		[
                            'label' => 'Remove Client',
                            'route' => 'client/remove',
                        ],
                    ]
                ]
            ]
        ]
    ]
]

<?= $this->acploPaginationControl($this->paginator); 

<?= $this->acploWell('test') 
 echo $this->acploHeadLink()->appendChosenBootstrap()