Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The sifo.me source code. This is an instance of SIFO framework. You can use it as a sample to understand how SIFO works
tree: 6eaf6e541c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
controllers
docs
external/PHP_Markdown_Extra_1.2.4
locale
public
templates
.gitignore
README.md

README.md

README

Sifoweb is the source code of the site http://sifo.me, which is also a an instance of SIFO. You can use this instance to understand a little bit how to code a SIFO instance.

Installation

To install this instance the first thing you need is a full copy of the SIFO code. Then copy the sifoweb project inside the folder sifo/instances/sifoweb (ensure there is no dash: sifo-web would be incorrect, the instance must be named sifoweb)

Then in your Apache virtualhosts you should add something like:

# SIFO.ME
<VirtualHost *:80>
        ServerName static.sifo-web.local
        ServerName static.sifo.local
        DocumentRoot /var/www/sifo/instances/sifoweb/public/static
</VirtualHost>

<VirtualHost *:80>
        ServerName sifo-web.local
        ServerAlias *.sifo-web.local
        DocumentRoot /var/www/sifo/instances/sifoweb/public/root

        RewriteEngine On
        #Allowed media extensions (includes .txt files for robots or .html, e.g: Google hosted HTMLs):
        RewriteCond %{REQUEST_FILENAME} !^(.+)\.(js|css|gif|png|jpe?g|swf|ico|txt|html)$
        RewriteRule ^/(.+) /index.php [QSA,L]
</VirtualHost>

Note that there are 2 hosts. One for static files, and another for dynamic files. Change the route /var/www/sifo/ by the route where your project is.

Something went wrong with that request. Please try again.