This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:13.04 | |
MAINTAINER Johnny Broadway "johnny@johnnybroadway.com" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <?php /* apps/collection/conf/config.php | |
[Collection] | |
title = Collection | |
include_in_nav = On | |
; */ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This project has been moved to: | |
https://github.com/jbroadway/au |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- apps/test/views/images.html --> | |
{! filemanager/util/multi-image !} | |
<script> | |
$(function () { | |
$('#sub').click (function () { | |
console.log ($('#images').val ().split ('|')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // apps/test/models/Document.php | |
namespace test; | |
class Document extends \Model { | |
public $table = 'test_document'; | |
public $fields = array ( | |
'types' => array ( | |
'many_many' => 'test\Type', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace myapp; | |
class Type { | |
const A = 1; | |
const B = 2; | |
const C = 4; | |
public static function is_a ($type) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- apps/test/views/select.html --> | |
<select name="type"> | |
{% foreach options as val, label %} | |
<option value="{{val}}"{% if selected == $data->val %} selected{% end %}>{{label}}</option> | |
{% end %} | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- apps/test/views/multiple.html --> | |
<form method="post" id="{{_form}}"> | |
<select name="type[]" multiple> | |
{% foreach options as val, label %} | |
<option value="{{val}}"{% if in_array ($data->val, $data->selected) %} selected{% end %}>{{label}}</option> | |
{% end %} | |
</select> |