Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 465 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 465 Bytes

CakePHP InlineStyle helper

A CakePHP 3 helper to automatically transform styles from <style> blocks to style="" attributes. Useful for HTML emails.

Internally uses the library https://github.com/christiaan/InlineStyle

Installation

composer require bigfishtv/cakephp-inline-style

Usage

For emails:

$email->helpers(['InlineStyle']);

For regular pages. In your App\View\AppView class:

$this->loadHelper('InlineStyle');