Skip to content

Instantly share code, notes, and snippets.

Avatar

Evan Coury EvanDotPro

  • Roave.com
  • USA»E»SS»OA»MW»LG»VSC»TU
  • @EvanDotPro
View GitHub Profile
@EvanDotPro
EvanDotPro / 0_reuse_code.js
Created Mar 30, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:3090469
<?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());