This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ Form::text('username', 'null', array('placeholder' => 'hold') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"repositories": { | |
"doctrine-fixtures-bundle": { | |
"name": "doctrine/doctrine-fixtures-bundle", | |
"type": "symfony-bundle", | |
"version": "2.0.0", | |
"require": { | |
"php": ">=5.3.2", | |
"symfony/symfony": ">=2.0" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$errors = array(); | |
foreach (array('email', 'name', 'age', 'occupation') as $key) { | |
if (!isset($_GET[$key]) || empty($_GET[$key])) { | |
$errors[] = "You need to fill in $key"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo\SiteBundle\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
class CmsController implements ContainerAwareInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace SiteBundle\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
class CmsController implements ContainerAwareInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace CellCare\SiteBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
class CmsController extends Controller | |
{ | |
public function dynamicAction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "symfony/framework-standard-edition", | |
"license": "MIT", | |
"type": "project", | |
"description": "The \"Symfony Standard Edition\" distribution", | |
"autoload": { | |
"psr-0": { "": "src/", "SymfonyStandard": "app/" } | |
}, | |
"require": { | |
"php": ">=5.3.3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dvd | |
* | |
* @ORM\Table(name="dvd") | |
* @ORM\Entity | |
*/ | |
class Dvd | |
{ | |
/** | |
* @var integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R $USER:www-data /var/www | |
find /var/www -type d -exec chmod 775 {} \; | |
find /var/www -type d -exec chmod 664 {} \; | |
chmod g+s /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irssi_notifier() { | |
ssh freaks 'echo -n "" > ~/.irssi/fnotify; tail -f ~/.irssi/fnotify' | \ | |
while read heading message; do | |
url=`echo \"$message\" | grep -Eo 'https?://[^ >]+' | head -1`; | |
if [ ! "$url" ]; then | |
terminal-notifier -title "\"$heading\"" -message "\"$message\"" | |
else | |
terminal-notifier -title "\"$heading\"" -message "\"$message\"" -open "\"$url\""; | |
fi; |