PHP code example of maksuco / b4c
1. Go to this page and download the library: Download maksuco/b4c 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/ */
maksuco / b4c example snippets
{!! \B4C::text($name,$label,$value,$attributes,$extra,$version) !!}
//formtext('video','Video',$property->video,['placeholder' => 'Video code'],'
{!! \B4C::textarea($name,$label,$value,$attributes,$version) !!}
//formtextarea('video','Video',$property->video,['css' => 'color-primary'],'')
{!! \B4C::file($name,$label,$attributes,$extra,$version) !!}
//formfile('floorplan',__('Floor Plan'),['class' => 'mt-5','accept' => '.jpg,.jpeg,.png,.pdf'],'
{!! \B4C::select($name,$label,$value,$options,$first,$attributes,$extra,$version) !!}
//formselect('zone',__('zone'),$property->zone,['N','E','W','S','NE','NW','SE','SW'],'Choose one',['class' => 'h-20'],'','')
{!! \B4C::check($name,$label,$value,$extra,'disabled') !!}
//formswitch('show',__('Show'),1)
{!! \B4C::switch($name,$label,$value,$extra,'') !!}
//formswitch('show',__('Show'),$item->show)
{!! \B4C::radio($name,$label,$value,$extra,'') !!}
{!! \B4C::textswitch($name,$label,$value,$attributes,$switch_name,$switch_value) !!}
//formtext('video','Video',$property->video,['placeholder' => 'Video code'],'video_on',$property->video_on)