2017 © Pedro Peláez
 

cakephp-plugin altair

Auto converting special characters of variables to HTML entities

image

tutida/altair

Auto converting special characters of variables to HTML entities

  • Thursday, August 18, 2016
  • by tutida
  • Repository
  • 2 Watchers
  • 2 Stars
  • 11,301 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 11 Versions
  • 14 % Grown

The README.md

Altair plugin is for CakePHP3

Auto converting special characters of variables to HTML entities, (*1)

Requirements

  • PHP >=5.4.16
  • CakePHP >= ~3.0

Usage

loadComponent('Altair.Altair');
        }
        ...
    }
```

By doing above,
You do not have to write the following(h()) every time.
```
= h($variable); ?>

If you do not want to escape $object, use $object->escape property., (*2)

<?php
    class UsersController extends AppController
    {

        public function add()
        {
            $user = $this->Users->newEntity();
            ...
            $user->escape = false;
            $this->set('user', $user);
        }
        ...
    }

If you do not want to escape in the action, use $this->Altair->escape() method., (*3)

<?php
    class UsersController extends AppController
    {

        public function add()
        {
            $user = $this->Users->newEntity();
            ...
            // Not escape $viewVars in this action.
            $this->Altair->escape(false);
            $this->set('user', $user);
        }
        ...
    }

The Versions

18/08 2016

dev-master

9999999-dev

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

18/08 2016

0.8.1

0.8.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

31/05 2016

0.7.1

0.7.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

20/04 2016

0.6.3

0.6.3.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

07/04 2016

0.6.1

0.6.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

31/03 2016

0.4.1

0.4.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

31/03 2016

0.3.1

0.3.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

09/03 2016

0.2.1

0.2.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

03/12 2015

0.1.2

0.1.2.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

30/11 2015

0.1.1

0.1.1.0

Auto converting special characters of variables to HTML entities

  Sources   Download

The Requires

 

The Development Requires

30/11 2015

0.1

0.1.0.0

Altair plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires