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 | |
echo "Hello " . (isset($_GET['name']) ? $_GET['name'] : "World") . "!"; | |
?> |
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 | |
// Homepage | |
$coll->addItem(new SFINode('homepage', 'The homepage node containing the introduction', array( | |
'type' => 'page', | |
'title' => 'Welcome to our website', | |
'body' => StructuralFixtureItemBase::getLipsum(), | |
'field_list_items' => array( | |
'item #1', | |
'another item', |
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 | |
$node = (object) array( | |
'type' => 'page', | |
'title' => 'Welcome to our website', | |
'body' => array( | |
'nl' => array( | |
0 => array( | |
'value' => '[lorem ipsum etc...]', | |
'format' => 'filtered_html', |
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 | |
$nodeOne = $coll->addItem(new SFINode('none_one', 'the first node ever', array( | |
'type' => 'page', | |
'title' => 'Node One', | |
'body' => StructuralFixtureItemBase::getLipsum(), | |
))); | |
$coll->addItem(new SFINode('none_two', 'the second node', array( | |
'type' => 'page', |
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 | |
// Vocabulary | |
$maincats = $coll->addItem(new SFIVocabulary(array( | |
'machine_name' => 'main_categories', | |
'name' => 'Main Categories', | |
'i18n_mode' => 1, | |
))); | |
// Term |
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
svn ps svn:externals "voiture file:///repos/svn/demo/voiture/tags/v7.0.0" . && svn commit -m "local externals" && rm -rf voiture && svn up |
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
#!/bin/bash | |
# | |
# Displays the current git branch name and the dirty state in your Bash shell | |
# prompt. Add a line like this to your ~/.bashrc file: | |
# | |
# . ~/path/to/gist/bash-git-prompt | |
# | |
# To use this, you must enable "enable programmable completion features". | |
# Look at your ~/.bashrc for something like: | |
# |
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 | |
description = Symfony Integration | |
core = 7.x |
OlderNewer