Skip to content

Instantly share code, notes, and snippets.

View EvanDotPro's full-sized avatar

Evan Coury EvanDotPro

  • Roave.com
  • USA»E»SS»OA»MW»LG»VSC»TU
  • X @EvanDotPro
View GitHub Profile
@EvanDotPro
EvanDotPro / 0_reuse_code.js
Created March 30, 2017 19:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
public function addAction() {
$form = new \Zebreco\Form\Contact();
if ($this->getRequest()->isPost()) {
$service = $this->getServiceLocator()->get('Zebreco\Service\Contact');
$form->setData($this->getRequest()->getPost());