Skip to content

Instantly share code, notes, and snippets.

@ludwigmair
ludwigmair / snippet.xml
Created November 10, 2012 04:50 — forked from JeffreyWay/snippet.xml
Laravel Resource - Sublime Text 2 Snippet
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');
@ludwigmair
ludwigmair / ext_tables
Created November 6, 2012 21:30 — forked from kitsunet/ext_tables
multi plugin extbase
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Frontend',
array(
'Post' => 'list, archivelist, latestlist, show',
'Comment' => 'create',
),
// non-cacheable actions
array(
@ludwigmair
ludwigmair / gist:4017957
Created November 5, 2012 15:56 — forked from kitsunet/gist:1845639
TYPO3: page teaser
lib.myContent = COA
lib.myContent {
10 < styles.content.get
10.select.pidInList = INSERT_YOUR_PAGE_ID_HERE
10.stdWrap.stripHtml = 1
10.stdWrap.crop = 100 | ... | 1
20 = TEXT
20.value = READ MORE
20.typolink.parameter = INSERT_YOUR_PAGE_ID_HERE