Smutty

MVC Framework

SmuttyOverview

This document describes how a Smutty application is laid out. All files in your application will reside under the application/ folder, it's layout is shown below.

The Application Folder

application/
    controllers/
    models/
    plugins/
    public/
    views/
    app.cfg-sample

controllers/

This directory holds all your controllers?. Controllers should be named with a single capitol letter to start, then postfixed with Controller. So a controller that responds to the following URL - /post/show/1 - will be called PostController.php.

models/

plugins/

This folder contains your Smarty? plugins. Information on how to use Smarty plugins is available in the Smarty manual.

public/

This folder contains all files that you want to make publicly visible. This will include things like stylesheets and images. These resources will then be available from the root of your application. So a file located at public/css/layout.css will be visible as /MySite/css/layout.css (assuming the Smutty application base is /MySite/).

views/

app.cfg-sample

Links: Post a comment

Useful Pages

Links