For each request in Symfony2, the goal of the developer is always the same: to construct and return a Response
object that represents the resource being requested. This is most obvious inside a controller, which almost always returns a Response
object:
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
These two files provide limited syntax highlighting using the most | |
excellent codemirror syntax highlighter. | |
See: | |
http://marijn.haverbeke.nl/codemirror/ | |
Stick the .js and .css files in the appropriate spots for your | |
codemirror installation. | |
You can enable it on a textarea using 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
# -*- coding: iso-8859-1 -*- | |
""" | |
MoinMoin - PageEditor class | |
PageEditor is used for r/w access to a wiki page (edit, rename, delete operations). | |
TODO: | |
* See comments in Page.py, most apply here, too. | |
* The editor code should be modularized so we will be able to use it for any | |
text/* mimetype data with some special features enabled depending on the |
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 | |
// Define the 'class' class | |
$class = Obj() | |
->fn('new', function ($class) { | |
$newClass = Obj($class->methods) | |
->fn('new', function($class) { | |
$obj = Obj($class->imethods); | |
$args = func_get_args(); | |
array_shift($args); |
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 | |
// Define the 'class' class | |
$class = Obj() | |
->fn('new', function ($class) { | |
$newClass = Obj($class->methods) | |
->fn('new', function($class) { | |
$obj = Obj($class->imethods); | |
$args = func_get_args(); | |
array_shift($args); |
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
doctrine_user.config: | |
db_driver: odm | |
class: | |
model: | |
user: Bundle\ExerciseUserBundle\Document\User | |
group: ~ | |
permission: ~ | |
form: | |
user: ~ | |
group: ~ |
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 Doctrine\ORM\Query\Filter; | |
abstract class SQLFilter | |
{ | |
final public function __construct(Connection $conn); | |
final function setParameter($name, $value, $type); | |
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.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
(function() { | |
var commits = [], repo = document.location.href.match(/github\.com\/([^\/]+\/[^\/]+)\//)[1]; | |
// Play for all commits | |
$('.commit-group .commit-links') | |
.append($('<a href="#" class="browse-button github-play-select">Play</a>')); | |
// show next commit | |
var nextCommit = function () { | |
$('.site .container').load(commits.shift() + ' #.site .container', function () { |
OlderNewer