Git Product home page Git Product logo

v1's Introduction

#Version 2 has been relased https://github.com/simple-mvc-framework/v2 #What is Simple MVC Framework?

Simple MVC Framework is a PHP 5.3 MVC system. It's designed to be lightweight and modular, allowing developers to build better and easy to maintain code with PHP.

The base framework comes with a few helper classes, this is to keep code bloat down to a minimum. Classes can easily be added at any stage of development.

Documentation

Full docs & tutorials are available at simplemvcframework.com

##Requirements

The framework requirements are limited

  • Web Server
  • PHP 5.3 or greater is required

Although a database is not required, if a database is to be used the system is designed to work with a MySQL database. The framework can be changed to work with another database type.

###Recommended mod_rewrite - To remove the index.php from the URL. Otherwise index.php?url= is required

Installation

  1. Download the framework
  2. Unzip the package.
  3. Upload the framework files to your server. Normally the index.php file will be at your root.
  4. Open the index.php file with a text editor and set your base URL and database credentials (if a database is needed). Set the default theme and controller to be loaded.
  5. If using a Linux server edit .htaccess file and save the base path.

Acknowledgement

I'd like to thank Jessie from jream.com, for producing an excellent video series on making an MVC system, this framework was evolved from that foundation.

v1's People

Contributors

daveismynamecom avatar andre2 avatar carwynnelson avatar

Stargazers

Ribamar FS avatar Arnaud Tiérant avatar Tobias Helfenstein avatar André Philip avatar Azeez Akinkunmi avatar Wellington Oliveira avatar  avatar Dinesh Nagar avatar David Costa avatar Faruk Cankaya avatar  avatar Sacha Corazzi avatar Yair avatar Rıza Sabuncu avatar Mucahit Tutuncu avatar Kerry Owston avatar Pawel Jonik avatar  avatar  avatar Subhash Kapil avatar David Carr avatar

Watchers

André Philip avatar James Cloos avatar Sacha Corazzi avatar Ko Ko Zin avatar David Carr avatar James avatar Ed Little avatar Pulak avatar Faruk Cankaya avatar  avatar Luiz Venturote avatar Subhash Kapil avatar  avatar  avatar Kjell avatar

v1's Issues

Pagination

How to use pagination helper, what to write in the model,view and controller.

I want to add pagination to posts
Can You help me?

Not found page

Hi, I wanted to ask how can I make an error page (404) instead of File does not exist: asd or Method does not exist: asd

Help please, the first small cms ready, this error page is only ..
I mean the page that appears when the controller are not found. Then, for example, is loaded controller called 'error'.

Proposal

Hello, proposes to enter service subfolders in controllers and models. Alternatively, the possibility of separation of selected directories for example "admin" from frontend.
I think that would be useful, what do You think?

Add versioning?

Hi,

Is there any way you can release the framework in versions, just so we can better track the changes, especially via a change log?

Thanks!

PDO utf8 charset

I suggest to add utf8 charset for db class

array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")

Model Bug

Hello.
I have problems with model files on framework.
Look source code, there are any errors?

http://snipet.co.uk/30

When i call for page, server return to me blank page without any code source.
help.

Database helper

Hello,
After last updates in database helper i have errors, logger:

Error on Feb 02, 2014 22:09PM - Invalid argument supplied for foreach() in /var/www/mvc/helpers/database.php on line 56

this is error? if I'm doing something wrong?
before update all works okay.

Folders

How to create a subfolder in the controller, eg. controller/admin
to be able to open it from the address http://localhost/admin

i use htaccess.

i try create folder admin on controller, and add index file but framework doesn't show me this page.

help please.

Framework don't check if method exists

This code has error in my opinion, but i don't know how to repair it, bootstramp, _callControllerMethod:

// Make sure the method we are calling exists
if ($length > 1) {
    if (!method_exists($this->_controller, $this->_url[1])) {
        $this->_error("Method does not exist: ".$this->_url[1]);
        return false;
    }
}

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.