Example #1
0
 public function welcome()
 {
     $data = Quote::squawk();
     $quote = $data['comment'];
     $person = $data['source'];
     return $this->m->render('welcome', array("quote" => $quote, "person" => $person));
 }
Example #2
0
<?php

require_once __DIR__ . '/../vendor/autoload.php';
// Autoload files using Composer autoload
use Parrot\Quote;
$data = Quote::squawk();
echo $data['comment'] . "\n";
echo $data['source'] . "\n";