public function welcome() { $data = Quote::squawk(); $quote = $data['comment']; $person = $data['source']; return $this->m->render('welcome', array("quote" => $quote, "person" => $person)); }
<?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";