Slate is a Basic Web Framework built above CodeIgniter.
- Download and unpackage code.
- Setup URL Rewriting depending on the server you have. (see below)
- Import slate.sql into your database.
- configure applications/config/database.php to match your mysql setup.
- configure applications/config/slate.php.
- Start coding.
If you get stuck or find a bug feel free to contact me chris.shylor@gmail.com!
If you are using Apache for your web server, you will need to create a '.htaccess' file in your website root directory.
Example '.htaccess' file:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
If you are using nginx, simply ensure that in your server block '=404' is not at the end of the 'try_files' line but '/index.php' is.
Example of a wrong server block snippet:
location / {
try_files $uri $uri/ =404;
}
Example of a correct server block snippet:
location / {
try_files $uri $uri/ /index.php;
}
If you do not have a built in mail server to send emails, use the settings below with a smtp service like sendgrid, mandrill, or mailgun.
<?php
$config['protocol'] = 'smtp';
$config['smtp_host'] = '';
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
$config['mailtype'] = 'html';
?>