-
Notifications
You must be signed in to change notification settings - Fork 7.6k
SCITE Abbreviations
I'm SCITE user to program PHP. SCITE have a abbreviation feature that I love.
newc=<?php\nclass ClassName extends Controller {\n\n\tfunction ClassName() \n\t{\n\t\tparent::Controller();\n\t}\n\t|\n}\n ?>
newm=<?php\nclass ClassName extends Model {\n\n\tfunction ClassName() \n\t{\n\t\tparent::Model();\n\t}\n\t|\n}\n ?>
loadv=$this->load->view('view_name');
loadvd=$this->load->view('view_name', $data);
loadm=$this->load->model('model_name');
loadh=$this->load->helper('helper_name');
urlb=<?= base_url();?>
anchor=<?= anchor ('url', 'text');?>
scaff=$this->load->scaffolding('table_name');
formo=form_open('url');
hid=form_hidden('name', 'value');
input=form_input('name', 'value');
pass=form_password('name', 'value');
upload=form_upload('name', 'value');
text=form_textarea('name', 'value');
combo=form_dropdown('name', 'value');
chk=form_checkbox('name', 'value', $checked);
radio=form_radio('name', 'value', $checked);
submit=form_button('name','content');
arwhere=$this->db->where('name', $name);
arget=$query = $this->db->get('table_name');
Put above lines in Abbreviation File Options. To test: type 'newc' and Ctrl+B.
Hope this help!