ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Kohana 2.​x Snippets

by golf3gtiii ST2/ST3

Kohana v 2.3.4, Keyboard shortcut for sublime text 2

Labels snippets

Details

  • 2013.03.11.08.11.47
  • github.​com
  • github.​com
  • 5 years ago
  • 4 minutes ago
  • 5 years ago

Installs

  • Total 207
  • Win 107
  • OS X 61
  • Linux 39
Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Kohana234-sublimeText2-plugin

Kohana v 2.3.4, Keyboard shortcuts for sublime text 2

Usage

Enter shortcut and press enter or tabulate.

shortcut :

description

kohana

kconf :

Kohana::config('')

klang :

Kohana::lang('')

ORM

korm :

ORM::factory('')

kmodel :

defined('SYSPATH') OR die('No direct access allowed.');

    class _Model extends ORM {

    }

sessions

ktsg :

$this->session->get('')

ktss :

$this->session->set('', )

kflash :

$this->session->set_flash()

url shortcuts

kbase :

url::base()

kcurrent :

url::current()

kredirect :

url::redirect()

Others

krender :

$this->auto_render = false

ktc :

$this->template->content

mail

kswift :

$swift = email::connect();
    $from = '';

    $subject = '';
    $message = '';

    $recipients = new Swift_RecipientList;
    $recipients->addTo('');
    $message = new Swift_Message($subject, $message, "text/html");
    $swift->send($message, $recipients, $from);
    $swift->disconnect();

Database

kquery :

$db = new database('');
    $query = "";
    $results = $db->query($query);