Code Monkey home page Code Monkey logo

cheese's Introduction

Welcome to Cheese

cheese is a lightweight PHP framework follow the instructions below:

Installing cheese can be done in two ways


  • Downloading the zip file directly from the repository.

head over to [GitHub.com/CheeseFramework](https://github.com/CheeseFramework/cheese,"Cheese Framework Download")

  • Cloning with gitbash
    git clone https://github.com/CheeseFramework/cheese
Setting up the .htaccess file
    <IfModule mod_rewrite.c>
      Options -Multiviews
      RewriteEngine On
      RewriteBase /cheese/public
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule  ^(.+)$ index.php?url=$1 [QSA,L]
    </IfModule>

By default the RewriteBase is set to /cheese/public.


Change it to:

    <IfModule mod_rewrite.c>
      Options -Multiviews
      RewriteEngine On
      RewriteBase /your_directory/public
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule  ^(.+)$ index.php?url=$1 [QSA,L]
    </IfModule>

Editing the config.php file

Head over to the config directory in there you will find a config.php file open it and edit it. Example:

 // Database config section
    define(DB_HOST,'localhost');
    define(DB_USER,'root');
    define(DB_PASS,'123456');
    define(DB_NAME,'cheese');

 // Site config section
    define(APPROOT,dirname(dirname(__FILE__)));
    define(URLROOT,'http://localhost/cheese');
    define(SITENAME,'Welcome to Cheese');
    define(APPVERSION,'v1.3.0');

 // Core control
    define(CONTROLLER,'Pages');
    define(METHOD,'index');

Read more

cheese's People

Contributors

murnitur avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.