Cakephp-modo-mantenimiento, (*1)
bootstrap.php, (*2)
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., (*3)
Installation, (*4)
If you haven't already, sign up for a Mailgun account., (*5)
Usage, (*6)
To enable the transport, add the following information to your Config/email.php:, (*7)
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., (*8)
$email = new CakeEmail('default');
==========================, (*9)
Gracias a
* https://github.com/awebdeveloper/cakephp-maintenance-mode
* http://josediazgonzalez.com/2013/12/13/simple-application-maintenance-mode/
* https://github.com/faranshery/cakephp-mailgun, (*10)