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

Nova Framework Snippets

Collection of Nova Framework Snippets for Sublime Text

Labels snippets

Details

Installs

  • Total 4K
  • Win 3K
  • Mac 518
  • Linux 411
Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 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
Mac 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
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
01234Jun 8Jun 5Jun 2May 30May 27May 24May 21May 18May 15May 12May 9May 6May 3Apr 30Apr 27Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Jun 8 Linux: 0 Mac: 0 Windows: 0Jun 7 Linux: 0 Mac: 0 Windows: 0Jun 6 Linux: 0 Mac: 0 Windows: 0Jun 5 Linux: 0 Mac: 0 Windows: 0Jun 4 Linux: 0 Mac: 0 Windows: 0Jun 3 Linux: 0 Mac: 0 Windows: 0Jun 2 Linux: 0 Mac: 0 Windows: 0Jun 1 Linux: 0 Mac: 0 Windows: 0May 31 Linux: 0 Mac: 0 Windows: 0May 30 Linux: 0 Mac: 0 Windows: 0May 29 Linux: 0 Mac: 0 Windows: 0May 28 Linux: 0 Mac: 0 Windows: 0May 27 Linux: 0 Mac: 0 Windows: 0May 26 Linux: 0 Mac: 0 Windows: 0May 25 Linux: 0 Mac: 0 Windows: 0May 24 Linux: 0 Mac: 0 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 0 Windows: 0May 21 Linux: 0 Mac: 0 Windows: 1May 20 Linux: 0 Mac: 0 Windows: 0May 19 Linux: 0 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 0 Mac: 0 Windows: 0May 16 Linux: 0 Mac: 0 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 0May 14 Linux: 0 Mac: 0 Windows: 0May 13 Linux: 0 Mac: 0 Windows: 0May 12 Linux: 0 Mac: 0 Windows: 0May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 0May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 0 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 1Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

Nova Framework Snippets

This is a Sublime Text package which includes a collection of Snippets for Nova Framework.

Installation

With Package Control

If you have Package Control installed, you can install Nova Framework Snippets from inside Sublime Text itself. Open the Command Palette and select “Package Control: Install Package”, then search for Nova Framework Snippets.

All shortcuts start with the sm prefix to use type the snippet and press tab.

List of avaiable shortcuts

(placeholder) = cursor will be placed on each tab.

Routes

Core

Helpers

Assets
Csrf (Cross Site Request Forgeries)
Data
Database
Date
Document
Form
FTP
Number
Paginator
Password
Request
Url
Session

Router

Any

smanyroute
Router::any((placeholder), 'Controllers\Welcome@index');
smanyrouteany
Router::any('(placeholder)/(:any)', 'Controllers\Welcome@index');
smanyroutenum
Router::any('(placeholder)/(:num)', 'Controllers\Welcome@index');
smanyrouteall
Router::any('(placeholder)/(:all)', 'Controllers\Welcome@index');

Get

smgetroute
Router::get((placeholder), 'Controllers\Welcome@index');
smgetrouteany
Router::get('(placeholder)/(:any)', 'Controllers\Welcome@index');
smgetroutenum
Router::get('(placeholder)/(:num)', 'Controllers\Welcome@index');
smgetrouteall
Router::get('(placeholder)/(:all)', 'Controllers\Welcome@index');

Post

smpostroute
Router::post((placeholder), 'Controllers\Welcome@index');
smpostrouteany
Router::post('(placeholder)/(:any)', 'Controllers\Welcome@index');
smpostroutenum
Router::post('(placeholder)/(:num)', 'Controllers\Welcome@index');
smpostrouteall
Router::post('(placeholder)/(:all)', 'Controllers\Welcome@index');

Controller

smcontroller
namespace Controllers;

use Core\View;
use Core\Controller;

/*
*
* class_name controller
*/
class class_name extends Controller
{

    /**
     * Call the parent construct
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Define Index method
     */
    public function index()
    {

    }
}
smcon
public function __construct()
{
    parent::__construct();
    (placeholder)
}
smdocblock
/**
 * (placeholder) (placeholder)
 *
 * @author (placeholder)
 * @version (placeholder)
 * @date (placeholder)
 */
smdata
$data[(placeholder)] = (placeholder);
smdatatitle
$data['title'] = (placeholder);
smechodata
$data[(placeholder)];
smview
View::renderTemplate('header', $data);
View::render('(placeholder)/(placeholder)', $data);
View::renderTemplate('footer', $data);
smloadlang
$this->language->load((placeholder));
smgetlang
$this->language->get((placeholder));
smsetlang
$lang[(placeholder)] = (placeholder);
smuse
use Core\View;
smalias
use Helpers\(placeholder);
smfun
public function (placeholder)((placeholder)){
    (placeholder)
}
smpostdata
$postdata = array();
smthis
$this->(placeholder);
smdatarow
$data[''][0]->(placeholder);
smcss
Assets::css((placeholder));
smjs
Assets::js((placeholder));
smmaketoken
Csrf::makeToken();
smistokenvalid
Csrf::isTokenValid();
smpr
Data::pr((placeholder));
smsl
Data::sl((placeholder));
smstl
Data::stl((placeholder));
smstu
Data::stu((placeholder));
smucw
Data::ucw((placeholder));
smvd
Data::vd((placeholder));
smdbselect
$this->db->select("SELECT (placeholder) FROM ".PREFIX."(placeholder)"(placeholder));
smdbinsert
$this->db->insert(PREFIX.(placeholder),$data);
smdblastid
$this->db->lastInsertId((placeholder));
smdbupdate
$this->db->update(PREFIX.(placeholder),$data, $where);
smdbdelete
$this->db->delete(PREFIX.(placeholder),$data);
smdbtrun
$this->db->truncate($table);
smdifferencedate
Date::difference((placeholder), (placeholder));
smformatbytes
Document::formatBytes((placeholder));
smbytessize
Document::getBytesSize((placeholder));
smextension
Document::getExtension((placeholder));
smgetfiletype
Document::getFileType((placeholder));
smfoldersize
Document::getFolderSize((placeholder));
smremoveextension
Document::removeExtension((placeholder));
smformbutton
Form::button(array('name' => (placeholder), 'value' => (placeholder), 'class' => (placeholder)));
smformcheckbox
Form::checkbox(array('name' => (placeholder)));
smformclose
Form::close();
smformhidden
Form::hidden(array('name' => (placeholder), 'value' => (placeholder)));
smforminput
Form::input(array('name' => (placeholder), 'value' => (placeholder), 'class' => (placeholder)));
smformopen
Form::open(array('method' => 'post' (placeholder)));
smformradio
Form::radio(array('name' => (placeholder)));
smformselect
Form::select(array('name' => (placeholder)));
smformtextbox
Form::textarea(array('name' => (placeholder), 'value' => (placeholder), 'class' => (placeholder)));
smftpclose
$ftp->close();
smftpconnect
$ftp = new Ftp((placeholder), (placeholder), (placeholder), (placeholder));
smftpdeletedirectory
$ftp->deleteDirectory((placeholder));
smdeletefile
$ftp->deleteFile((placeholder));
smftpfolderpermission
$ftp->folderPermission((placeholder),(placeholder));
smftpmakedirectory
$ftp->makeDirectory((placeholder));
smftpuploadfile
$ftp->uploadFile((placeholder));
smnumberformat
$Number::format((placeholder));
smnumberpercentage
$Number::percentage((placeholder), (placeholder));
smpagconnect
$pages = new Paginator((placeholder), (placeholder));
smpaggetinstance
$pages->getInstance();
smpaggetlimit
$pages->getLimit();
smpaggetperpage
$pages->getPerPage();
smpaggetstart
$pages->getStart();
smpagpagelinks
$pages->pageLinks();
smpagsettotal
$pages->setTotal((placeholder));
smpasswordgetinfos
Password::getInfos((placeholder));
smpasswordmake
Password::make((placeholder));
smpasswordneedsrehash
Password::needsRehash((placeholder));
smpasswordverify
Password::verify((placeholder), (placeholder));
smrequestfiles
Request::files((placeholder), (placeholder));
smrequestisajax
Request::isAjax();
smrequestisget
Request::isGet();
smrequestispost
Request::isPost();
smrequestpost
Request::post((placeholder));
smrequestquery
Request::query((placeholder));
smautolink
Url::autolink((placeholder), (placeholder));
smtemppath
Url::templatePath();
smprev
Url::previous();
smredirect
Url::redirect((placeholder));
smgeneratesafeslug
Url::generateSafeSlug((placeholder));
smsegments
Url::segments();
smgetsegment
Url::getSegment((placeholder), (placeholder));
smfirstsegment
Url::firstSegment((placeholder));
smlastsegment
Url::lastSegment((placeholder));
smsetses
Session::set((placeholder),(placeholder));
smpullses
Session::pull((placeholder));
smgetses
Session::get((placeholder));
smidses
Session::id();
smdisplayses
Session::display();
smdestroyses
Session::destroy((placeholder));