Note: Boris requires PHP's pcntl extension.
1. Install Boris via:
composer.phar require d11wtq/boris
2. Add the provided bootstrap.php
to your document root.
; <?php /* | |
[one] | |
not empty = 1 | |
; */ ?> |
Note: Boris requires PHP's pcntl extension.
1. Install Boris via:
composer.phar require d11wtq/boris
2. Add the provided bootstrap.php
to your document root.
<?php | |
/** | |
* Rewrite internal links to always include a language prefix. | |
* Save this to a handler such as apps/myapp/handlers/langprefix.php | |
* then edit conf/config.php and add the following to the [Hooks] | |
* section: | |
* | |
* page/render[] = myapp/langprefix | |
*/ |
Rewrite incoming requests by adding bootstrap.php
to the document root folder.
Rewrite outgoing data by adding adminrewrite.php
to the apps/myapp/handlers
folder.
Add the following line to the [Hooks]
section in conf/config.php
:
page/render[] = myapp/adminrewrite
Using Nginx, add the following to your vhost:
location ~ ^/admin/?$ {
error_page 404 /404.html;
<link rel="stylesheet" type="text/css" href="/apps/filemanager/css/gallery_embedded.css" /> | |
<script> | |
var gallery_desc = '{{ desc }}'; | |
$(function () { | |
// load the first image | |
$('#gallery-view').attr ('src', $('.gallery').first ().attr ('href')); | |
if (gallery_desc === 'yes') { | |
$('#gallery-desc').html ($('.gallery').first ().data ('desc')); | |
} else { | |
$('#gallery-desc').hide (); |
; <?php /* apps/collection/conf/config.php | |
[Collection] | |
title = Collection | |
include_in_nav = On | |
; */ ?> |
This project has been moved to: | |
https://github.com/jbroadway/au |
<!-- apps/test/views/images.html --> | |
{! filemanager/util/multi-image !} | |
<script> | |
$(function () { | |
$('#sub').click (function () { | |
console.log ($('#images').val ().split ('|')); | |
}); |
<!-- apps/categories/views/admin.html --> | |
<p style="float: right">{"Sort"}: | |
{% if order === 'name' %} | |
Name | <a href="/categories/admin?order=order_by">Order</a> | |
{% else %} | |
<a href="/categories/admin?order=name">Name</a> | Order | |
{% end %} | |
</p> |
FROM ubuntu:13.04 | |
MAINTAINER Johnny Broadway "[email protected]" | |
RUN apt-get update | |
RUN apt-get install -y wget git vim postfix nginx sqlite | |
RUN apt-get install -y mysql-server mysql-client | |
RUN apt-get install -y php5-cli php5-common php5-mysql php5-sqlite php5-curl php5-fpm | |
RUN wget -O /etc/nginx/sites-available/default https://gist.github.com/jbroadway/6369183/raw/682a1ed8078cc39f59c3624f460b128addff95db/nginx-default |