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 / .gitignore
Last active September 26, 2015 07:48
Kohana .gitignore
Thumb.bd
.DS_Store
.svn
.htaccess
*.log
*~
*.swp
*.mwb
*.bak
Icon?
@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 <[email protected]>
*/
abstract class Controller_Template extends Kohana_Controller_Template {
@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 <[email protected]>
*/
abstract class Controller_Ajax_Template extends Controller {
@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 / 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 <[email protected]>
* @license MIT License
* @copyright 2011 Kohana-World Development Team
@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 <[email protected]>
*/
abstract class Controller_Template extends Kohana_Controller_Template {
/**