PHP code example of codaxis / cakephp-bootstrap3-helpers

1. Go to this page and download the library: Download codaxis/cakephp-bootstrap3-helpers 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/ */

    

codaxis / cakephp-bootstrap3-helpers example snippets


	// In AppController.php
	public $helpers = array('Bs3Helpers.Bs3Form');
	// or
	public $helpers = array('Form' => array('className' => 'Bs3Helpers.Bs3Form'));
	

Configure::write('Bs3.Form.styles', array(
	'horizontal' => array(
		'formDefaults' => array(
			'submitDiv' => 'col-sm-10 col-sm-offset-2'
		),
		'inputDefaults' => array(
			'label' => array(
				'class' => 'col-sm-2 control-label'
			),
			'wrap' => 'col-sm-10',
		)
	),
	'inline' => array(
		'inputDefaults' => array(
			'label' => array(
				'class' => 'sr-only'
			),
		)
	)
));
array('class' => 'form-group')
array('attributtes' => 'array('class' => 'help-block'))
<i>