Snippets gEdit / Spaghetti* PHP





if
bruno_if




el
bruno_else



ei
bruno_endif




fe
bruno_foreach




ef
bruno_endforeach


]]>
php
bruno_php



${1:News}->all(${2:array('conditions' => array())});]]>
al
bruno_all


]]>

rt
bruno_title


]]>
rx
bruno_text



substr_phrase(strip_tags($result['text']), ${1:140}, ${2:true}, ${3:true})?>]]>
rp
bruno_phrase


format('${1:d.m.Y}', $result['date'])?>]]>

rd
bruno_date



eif
bruno_elseif ..



model('${1:News}'); ?>
numbers(array('tag' => '${2:li}', 'current' => '${3:current}')); ?>]]>
pg
bruno_pagination


arrView['results'] = $this->${1:News}->paginate(array(
'conditions' => array('status' => 1),
'perPage' => Config::read('app.conv.perpage'),
'page' => $this->page()
));
}]]>

bruno_index
index



mc
bruno_mapper




aring]]>
bruno_acento_a




mu
bruno_mapper_url


	

]]>
im
bruno_if_image




i]]>
bruno_acento_i


]]>

rl
bruno_result_link


${1:News}->first(array('conditions' => array('id' => $id, ${2:'status' => 1})))):	
$this->arrView['result'] = $new;
else:
Session::writeFlash('news.alert', '${3:Notícia} não encontrada.');
$this->redirect('/$4');
endif;
}]]>
view
bruno_view



getId($result['url']) ?>/0.jpg]]>
yt
bruno_youtube_img