An open API service indexing awesome lists of open source software.

https://github.com/kdevelopement/hookssl

Força SSL No Codeigniter
https://github.com/kdevelopement/hookssl

Last synced: 5 months ago
JSON representation

Força SSL No Codeigniter

Awesome Lists containing this project

README

          

# HookSSL
Força SSL No Codeigniter

# COMO ATIVAR E USAR:
Abra o arquivo de configuração do local application/config/config.phpe ative ou defina os hooks como true:

$config['enable_hooks'] = TRUE;

Em seguida, crie um novo arquivo chamado hooks.phpdentro da configpasta (por exemplo, application/config/hooks.php) e
adicione o seguinte código:


$hook['post_controller_constructor'][] = array(
'function' => 'redirect_ssl',
'filename' => 'ssl.php',
'filepath' => 'hooks'
);


Agora crie um novo diretório chamado hooksdentro da applicationpasta (por exemplo, application/hooks) e,
em seguida, crie um novo arquivo chamado ssl.phpdentro da hookspasta (por exemplo, application/hooks/ssl.php).