cmd + alt + p - Mac
ctrl + alt + p - Windows
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
## CLONE THE SVN | |
git svn clone -s <repo-url> Repository | |
## CREATING THE BRANCH REMOTELY AND LOCALLY | |
# Create the branch on the remote | |
git svn branch -m "BRANCH: Create DEV-branch_name - Description of branch" DEV-branch_name | |
# Create the branch locally | |
git checkout --track -b DEV-branch_name remotes/DEV-branch_name |
{% for entry in blx.entries.findEntries({ section: 'Blog', limit: '100', order: "postdate"}) %} | |
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li> | |
{% endfor %} |
<?php | |
class App extends \Slim\Slim | |
{ | |
public function mount($pattern, $method) | |
{ | |
list($controller, $action) = explode('::', $method); | |
$app = $this; | |
return $this->map($pattern, function() use ($app, $controller, $action) { |
<?php | |
// Silex Style Controllers | |
class App extends \Slim\Slim | |
{ | |
public function mount($controller) | |
{ | |
if (! is_object($controller)) { | |
throw new \InvalidArgumentException('Controller must be an object.'); | |
} |
Every vagrant box starts out as a bare, minimal linux distribution. In our case, this was Ubuntu 12.04 LTS.
This page is a record of every command that was given to this base VM before it was repackaged as the lamp.box
that we use. I've also included the vagrant commands used to generate it.
taylorlapeyre: vagrant init precise32
taylorlapeyre: vagrant ssh
# All passwords: "vagrant"
<?php | |
namespace Acme\DemoBundle\Presenter; | |
class BasePresenter | |
{ | |
protected $subject; | |
public function __construct($subject) | |
{ |
<?php | |
class Post | |
{ | |
protected $table = 'posts'; | |
/** | |
* You can define your own custom boot method. | |
* | |
* @return void | |
**/ |