Php/symfony Netbeans Cheat Sheet

ADVERTISEMENT

PHP/Symfony - Netbeans - CheatSheet
2010
Please keep in mind that most of this cheats are only working when you have included the Netbeans-Settingsfile from
Keyboard-Shortcuts
Shortcut
Action
Shortcut
Action
Strg + Shift + 1
Show File in Project-View
Strg + Shift + Minus
Collapse All
Strg + Alt + c
symfony cc
Strg + Minus
Collapse Fold
Strg + Alt + r
Run Symfony task
Strg + Shift + Plus
Expand All
Strg + Alt + j
Symfony Jump to View /
Strg + Plus
Expand Fold
Action
Alt + Shift + o
Go to file
Strg + R
Rename
Strg + O
Go to type
Code Templates Controller
Short
Filetype
Trigger
Sourcecode
Prr
PHP
Tab
echo "<pre>";
print_r(${cursor});
echo "</pre>";
Execute
PHP
Tab
/**
* Action ${name}
*/
public function execute${name}(sfWebRequest $request) {
${cursor}
}
success
PHP
Tab
return sfView::SUCCESS;
none
PHP
Tab
return sfView::NONE;
getuser
PHP
Tab
$this->getUser()
layout
PHP
Tab
$this->setLayout(${cursor});
template
PHP
Tab
$this->setTemplate(${cursor});
parameter
PHP
Tab
$request->getParameter('${cursor}'${cursor});
attribute
PHP
Tab
$this->getUser()->getAttribute('${cursor}'${cursor});
Code Templates View
Short
Filetype
Trigger
Sourcecode
__
PHP
Tab
__('${cursor}');
__
HTML
Tab
<?php echo __('${cursor}'); ?>
slot
HTML
Tab
<?php
slot('${cursor}'); ?>
${cursor}
<?php end_slot();?>
ipart
HTML
Tab
<?php include_partial('{cursor}', array({$cursor}));?>
ijs
HTML
Tab
<?php include_javascript('{cursor}');?>
tif
HTML
Tab
<?php if(${condition}):?>
${cursor}
<?php endif; ?>
tfe
HTML
Tab
<?php foreach(${source} as ${value}):?>
${cursor}
<?php endif; ?>
ufo
HTML
Tab
<?php echo url_for('{route}{cursor}');?>
Version 2 – 2010 by Timo Haberkern (timo.haberkern@shift-up.de)
Page 1

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2