Skip to content

scottyadean/kiss-cm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

------------------------------- 
| |   (_)          
| | __ _  ___  ___ 
| |/ /| |/ __|/ __|
|   < | |\__ \\__ \
|_|\_\|_||___/|___/

Kiss (Keep It Simple Stupid). 
-------------------------------

License:
-------------------------------
GNU GENERAL PUBLIC LICENSE

About:
-------------------------------
A very lightweight mvc framework that uses propel (http://propelorm.org/) Or php-activerecord
(http://www.phpactiverecord.org/) as the Object-Relational Mapping (ORM) and bramus
(http://www.bram.us/) as the base router. 

Requres:
-------------------------------
 - PHP: 5.4
 - phpunit: 3.7+
 - mod_rewrite
 - Composer

Set up:
-------------------------------
$ clone https://github.com/scottyadean/kiss-cm.git kiss-app
$ cd kiss-app
$ cd app/library/
$ mkdir vendor
$ php composer.phar
$ cd assets
$ npm install
$ grunt


Create a new Vhost:
-------------------------------
<VirtualHost *:80>
   DocumentRoot "/home/[your_path_here]/kiss/public"
   ServerName kiss.local
   
   # This should be omitted in the production environment
   SetEnv APPLICATION_ENV development

   <Directory "/home/[your_path_here]/kiss/public">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>
   
</VirtualHost>

Create a host entry:
-------------------------------
127.0.0.1   kiss.local

Kiss your new app:
-------------------------------
http://kiss.local

Hello World MVC:
-------------------------------
 ROUTE:
 - Edit the file:  app/libray/kiss/Router.php
 - Inside the pre existing index route add a new action "hello".
 - $this->add("index", "/", array('index', 'about-us', 'hello'));
 
 ACTION:
 - Edit the file: app/controllers/Index.php
 - Add a new action method to the Index controller called helloAction,
 - public function helloAction() { }

 VIEW:
 - Create a new view in /app/kiss/views/index/hello.phtml
 - Inside your new hello.phtml file add <h1>Hello World</h1> and save.

 TEST:
 http://kiss.local/index/hello



Test the simple auth mvc with php-activerecord
-------------------------------
Install the kiss.sql into your db
update the settings in the config/database.php

About

simple mvc php framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published