These are the default files that I will usually start with when setting up a symfony2 project to use vagrant and puppet. I'm putting this readme file here for future updates.
Make sure the files that end in .sh are executable.
| <form id="that-one-form"> | |
| {{ form_widget(form) }} | |
| </form> |
| {% set email_class = '' %} | |
| {% if form.email.vars.errors %} | |
| {% set email_class = 'error' %} | |
| {% endif %} | |
| {{ form_label(form.email, 'Email', {'label_attr':{'class':email_class}}) }} | |
| {{ form_widget(form.email, {'attr':{'class':email_class}}) }} | |
| {% if form.email.vars.errors %} | |
| {% for error in form.email.vars.errors %} | |
| <small class="error">{{ error.message }}</small> |
| mysql -u USERNAME -p DATABASE -e "select * from TABLE;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' |
| #!/bin/sh | |
| ### | |
| # | |
| # Runs phpcs to check for violations | |
| # | |
| PHPCS_BIN=$(command -v phpcs) | |
| if [ ! $PHPCS_BIN ]; then | |
| exit 0 | |
| fi |
| heroku config:set $(cat .env | tr '\n' ' ' | sed -e 's/export //g') |
| export SYMFONY__SECRET=ReplaceWithToken | |
| export SYMFONY__LOCALE=en | |
| export SYMFONY__ASSETIC__CONTROLLER=true | |
| export SYMFONY__DATABASE__DRIVER=pdo_sqlite | |
| export SYMFONY__DATABASE__HOST=127.0.0.1 | |
| export SYMFONY__DATABASE__NAME=symfony | |
| export SYMFONY__DATABASE__PASSWORD=root | |
| export SYMFONY__DATABASE__PORT=3667 | |
| export SYMFONY__DATABASE__USER=root | |
| export SYMFONY__MAILER__TRANSPORT=smtp |
| http --auth USERNAME:PASSWORD http://127.0.0.1:18332 method=getaccountaddress params:='[""]' |