2017 © Pedro Peláez
 

cakephp-plugin cakephp-font-awesome

CakePHP helper for creating Font Awesome links

image

drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  • Monday, January 22, 2018
  • by drmonkeyninja
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12,445 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 10 % Grown

The README.md

CakePHP FontAwesome

License, (*1)

This plugin provides a simple helper for creating links containing markup for Font Awesome icons with properly escaped link text. You will need to install Font Awesome separately., (*2)

Requirements

  • CakePHP 3.x

Use the 2.x version for CakePHP 2., (*3)

Installation

This plugin can be installed using Composer:-, (*4)

composer require drmonkeyninja/cakephp-font-awesome:3.*

Then add the following line to your bootstrap.php to load the plugin., (*5)

Plugin::load('FontAwesome');

You need to ensure the helper is loaded before you use it in your templates. You can do this from your AppView.php file in the initialize() method:-, (*6)

public function initialize()
{
    $this->loadHelper('FontAwesome.Fa');
}

Usage

To render a link containing the markup for the fa-chevron-circle-right icon at the end you can do:-, (*7)

<?= $this->Fa->link('chevron-circle-right', __('Proceed'), ['controller' => 'pages', 'display', 'next']) ?>

If you want the icon to appear before the text you can use the before option:-, (*8)

<?= $this->Fa->link('chevron-circle-right', __('Proceed'), ['controller' => 'pages', 'display', 'next'], ['before' => true]) ?>

The Versions

22/01 2018

dev-master

9999999-dev https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

 

cakephp helper

06/09 2017

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cakephp helper

17/02 2017

3.0.0

3.0.0.0 https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

 

cakephp helper

17/02 2017

3.x-dev

3.9999999.9999999.9999999-dev https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

 

cakephp helper

07/08 2015

2.0.2

2.0.2.0 https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cakephp helper

16/06 2015

2.0.1

2.0.1.0 https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cakephp helper

15/06 2015

2.0.0

2.0.0.0 https://github.com/drmonkeyninja/cakephp-font-awesome

CakePHP helper for creating Font Awesome links

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cakephp helper