Skip to content

Instantly share code, notes, and snippets.

View yuya-matsushima's full-sized avatar
🏢
Working from Office

Yuya Matsushima yuya-matsushima

🏢
Working from Office
View GitHub Profile
@yuya-matsushima
yuya-matsushima / go-sparks.php
Created May 5, 2011 14:54
Sparksのインストールスクリプト
<?php
$zip = "http://getsparks.org/static/install/spark-manager-0.0.3.zip";
$loader = "http://getsparks.org/static/install/MY_Loader.php.txt";
if(!file_exists("application/core"))
{
echo "Can't find application/core. Currently this script only works with the default instance of Reactor. You may need to try a manual installation..\n";
exit;
}
@yuya-matsushima
yuya-matsushima / copyright.php
Created May 8, 2011 05:55
seezooでサイト名に基づいて著作権表示を行うスニペット
<?php
//config/someclass.php
$config['sample_a'] = 'test';
$config['sample_b'] = 'test2';
<?php
// ---コントローラ記述関係省略---
public function logs()
{
$this->load->spark('fire_log/0.6.0');
}
php tools/spark install -v0.6.0 fire_log
php tools/spark install -v1.0.9 table_torch
<?php
$config['table_torch_tables'] = array(
'test'=>array( 'edit'=>TRUE, 'delete'=>TRUE, 'add'=>TRUE )
);
<?php
// controller記述省略
public function torch(){
$this->load->spark( 'table_torch/1.0.9');
$this->table_torch->route();
}
snippet cc
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class `Cucfirst(expand("%"))` extends MY_Controller {
public function __construct()
{
parent::__construct();
}