Skip to content

Instantly share code, notes, and snippets.

View smgladkovskiy's full-sized avatar
💻
Senior Refactoring Engineer

Sergey Gladkovskiy smgladkovskiy

💻
Senior Refactoring Engineer
View GitHub Profile
@smgladkovskiy
smgladkovskiy / template.php
Created October 20, 2010 08:16
Modified Kohana 3 Controller_Template
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Базовый класс контроллера-шаблона
*
* @author avis <smgladkovskiy@gmail.com>
*/
abstract class Controller_Template extends Kohana_Controller_Template {
/**
@smgladkovskiy
smgladkovskiy / error.php
Created November 2, 2010 13:14
Error Controller
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Controller Error
*
* @package Templates
* @author Kohana-World Development Team
* @author Sergei Gladkovskiy <smgladkovskiy@gmail.com>
* @license MIT License
* @copyright 2011 Kohana-World Development Team
@smgladkovskiy
smgladkovskiy / kohana_exception.php
Created February 17, 2011 11:59
Kohana Exception extention
<?php defined('SYSPATH') or die('No direct access allowed.');
class Kohana_Exception extends Kohana_Kohana_Exception {
public static function handler(Exception $e)
{
if (Kohana::$environment > Kohana::PRODUCTION)
{
parent::handler($e);
}
@smgladkovskiy
smgladkovskiy / Controller_Ajax_Template.php
Last active September 25, 2015 00:18
Ajax Template Controller for Kohana v3.3
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Ajax Template Controller template
*
* @package Templates
* @author Sergei Gladkovskiy <smgladkovskiy@gmail.com>
*/
abstract class Controller_Ajax_Template extends Controller {
@smgladkovskiy
smgladkovskiy / Controller_Template.php
Last active September 6, 2019 12:03
template controller for kohana v3.3
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Template Controller
*
* @package Templates
* @author Sergei Gladkovskiy <smgladkovskiy@gmail.com>
*/
abstract class Controller_Template extends Kohana_Controller_Template {
@smgladkovskiy
smgladkovskiy / .gitignore
Last active September 26, 2015 07:48
Kohana .gitignore
Thumb.bd
.DS_Store
.svn
.htaccess
*.log
*~
*.swp
*.mwb
*.bak
Icon?
@smgladkovskiy
smgladkovskiy / README
Created January 30, 2012 04:33
Kohana 3.2 project creation script
Run this in your command line to make the process begin:
$ curl -o ko3_structure.sh https://raw.github.com/gist/1702555/ko3_structure.sh && ./ko3_structure.sh
@smgladkovskiy
smgladkovskiy / README.md
Last active October 4, 2015 13:27
Kohana 3.3 project creation script

Run this in your command line to make the process begin:

$ curl -o ko3.3_structure.sh https://raw.github.com/gist/2643818/ko3.3_structure.sh &amp;&amp; ./ko3.3_structure.sh
@smgladkovskiy
smgladkovskiy / README.md
Last active August 22, 2023 21:54
Скрипты развёртывания продакшен, дев и тестовой сред на сервере.

Скачивание/обновление файла deploy.sh:

$ curl -o deploy.sh https://gist.githubusercontent.com/smgladkovskiy/6133041/raw/deploy.sh

Скачивание файла project.sh:

$ curl -o project.sh https://gist.githubusercontent.com/smgladkovskiy/6133041/raw/project.sh

Скачивание файла доп комманд extra_commands.sh:

@smgladkovskiy
smgladkovskiy / site.php
Last active December 20, 2015 22:29
Site config for Kohana v3.3 site
<?php defined('SYSPATH') OR die('No direct access allowed.');
$version = 'wip';
$version_config = Kohana::$config->load('version');
if($version_config->as_array())
{
$version = $version_config->version;
}
return array(