Welcome Guest, Not a member yet? Register   Sign In
Code-igniter integration in editors
#11

[eluser]GSV Sleeper Service[/eluser]
I'm tempted to make some CI snippets for vim snippets plugin, but I'm a lazy sod and this will probably never happen!
#12

[eluser]adwin[/eluser]
[quote author="GSV Sleeper Service" date="1209475284"]I'm tempted to make some CI snippets for vim snippets plugin, but I'm a lazy sod and this will probably never happen![/quote]
plzzz do it ... plzzz... I am using VIM at the moment Big Grin
cheeersss GSV Big Grin
#13

[eluser]TheLoops[/eluser]
Integration with Coda would be more than great!
#14

[eluser]GSV Sleeper Service[/eluser]
ok, here we go, first attempt, I've only done loader and part of the db class so far.

CI snippets for VIM SnippetsEmu plugin.

install snippetsEmu, stick this in .vim/after/ftplugin

I will be adding more to this at some point, but please feel free to contribute!

ldl = load library
ldv = load view
ldd = load database
lds = load scaffolding
ldh = load helper
ldp = load plugin

dbq = db query
dbsq = db simple_query
dbg = db get
dbgw = db get_where
dbi = db insert
dbid = db insert_id
dbar = db affected_rows
dbca = db count_all
dbpf = db platform
dbv = db version
dblq = db last_query
dbis = db insert_string
dbus = db update_string

[edit]great, I can only upload images, how very useful...[/edit]
save this as codeigniter_snippets.vim
Code:
if !exists('loaded_snippet') || &cp;finish
endif

let st = g:snip_start_tag
let et = g:snip_end_tag
let cd = g:snip_elem_delim

exec "Snippet ldl $this->load->library('".st."classname".et."');"
exec "Snippet ldv $this->load->view('".st."view".et."');"
exec "Snippet ldd $this->load->database();"
exec "Snippet lds $this->load->scaffolding('".st."tablename".et."');"
exec "Snippet ldva $this->load->vars($".st."array".et.");"
exec "Snippet ldh $this->load->helper('".st."filename".et."');"
exec "Snippet ldp $this->load->plugin('".st."filename".et."');"

exec "Snippet dbq $this->db->query('".st."query".et."');"
exec "Snippet dbsq $this->db->simple_query('".st."query".et."');"
exec "Snippet dbg $this->db->get('".st."tablename".et."');"
exec "Snippet dbgw $this->db->get_where('".st."tablename".et."', $array, $limit, $offset);"
exec "Snippet dbi $this->db->insert('".st."table_name".et."', $".st."data".et.");"

exec "Snippet dbid $this->db->insert_id();"
exec "Snippet dbar $this->db->affected_rows();"
exec "Snippet dbca $this->db->count_all('".st."tablename".et."');"
exec "Snippet dbpf $this->db->platform();"
exec "Snippet dbv $this->db->version();"
exec "Snippet dblq $this->db->last_query();"
exec "Snippet dbis $this->db->insert_string('".st."tablename".et."', $".st."data".et.");"
exec "Snippet dbus $this->db->update_string('".st."tablename".et."', $".st."data".et.", $".st."where".et.");"
[code]
#15

[eluser]benofsky[/eluser]
[quote author="Jemgames" date="1208807813"]I've been looking for something like this. There was a TextMate bundle avaliable for CI stuff, but it is very outdated.[/quote]

Not anymore see: http://ellislab.com/forums/viewthread/77952/ Big Grin
#16

[eluser]Tom Glover[/eluser]
Has anyone thought of doing an add-in for Dreamweaver?
#17

[eluser]exodus7[/eluser]
an add-on for Dreamweaver would be awesome!!




Theme © iAndrew 2016 - Forum software by © MyBB