Entradas

Mostrando entradas de agosto, 2018

Url amigables en yii2 (basic)

1. en el direcctorio web crear un archivo con el nombre .httpacess RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php 2. en el archivo /config/web.php descomentar las siguientes lienas. 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => true, 'rules' => [ ], ], ..... NOTA: si se esta usando ventanas modales, no aplica esta solución

Deshabilitar el el módulo debug en yii2

Imagen
1. Editar el archivo /config/web.php y comentar las siguientes lineas:     $config['modules']['debug'] = [         'class' => 'yii\debug\Module',         // uncomment the following to add your IP if you are not connecting from localhost.         //'allowedIPs' => ['127.0.0.1', '::1'],     ];