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

Kohana 2.​x Snippets

by golf3gtiii ALL

Kohana v 2.3.4, Keyboard shortcut for sublime text 2

Labels snippets

Details

  • 2013.03.11.08.11.47
  • github.​com
  • github.​com
  • 11 years ago
  • 39 minutes ago
  • 11 years ago

Installs

  • Total 255
  • Win 139
  • Mac 67
  • Linux 49
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 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25
Windows 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 0 0 0 0 0
Mac 1 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 0 0
Linux 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 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);