Oxicode / cakephp-oxicode

Home Page:www.oxicode.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cakephp-modo-mantenimiento

bootstrap.php

Configure::write('MaintenanceMode', array(
	'enabled' => true,
	'view' =>   array(
		'layout' => 'error',
		'template' => 'Mantenimiento/index'
	),
	'ip_filters' => array('127.0.*.*')
));
Configure::write('Dispatcher.filters', array(
	'AssetDispatcher',
	'CacheDispatcher',
	'Oxicode.MaintenanceMode' ## this line
));

CakePHP Mailgun Plugin This package provides two Mailgun transports - one implemented using CakePHP's HttpRequest utility and the other using curl.

Installation

If you haven't already, sign up for a Mailgun account.

Usage

To enable the transport, add the following information to your Config/email.php:

class EmailConfig {
    public $default = array(
        'transport' => 'Oxicode.Basic',
        'mailgun_domain'    => 'my-mailgun-domain.com',
        'api_key'   => 'MY_MAILGUN_API_KEY'
    );
}

Use the CakeEmail class as normal, invoking the new configuration settings.

$email = new CakeEmail('default');

==========================

Gracias a

About

www.oxicode.io

License:Apache License 2.0


Languages

Language:PHP 100.0%