jcode/framework

J!Code PHP framework

1.0.2 2018-03-08 12:26 UTC

This package is not auto-updated.

Last update: 2024-05-07 01:38:52 UTC


README

Example application.json file:

{
    "application": {
        "layout": "{{LAYOUT}}",
        "unsecure_base_url": "{{UNSECURE_BASE_URL}}",
        "secure_base_url": "{{SECURE_BASE_URL}}",
        "use_ssl": false,
        "force_ssl": false,
        "encryption_key": "{{ENCRYPTION_KEY}}",
        "title": "{{APPLICATION_TITLE}}",
        "default_route": "{{DEFAULT_ROUTE}}",
        "database": {
            "adapter": "mysql",
            "host": "{{MYSQL_HOST}}",
            "name": "{{MYSQL_DBNAME}}",
            "user": "{{MYSQL_USER}}",
            "password": "{{MYSQL_PASSWD}}"
        },
        "cache": {
            "enabled": false
        }
    }
}

Example .htaccess file:

DirectoryIndex index.php

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

RewriteRule .* index.php [L]