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
  • 46 minutes ago
  • 4 years ago

Installs

  • Total 204
  • Win 106
  • OS X 59
  • Linux 39
Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7
Windows 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
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 1 0 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 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

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);