Example #1
0
<?php

$eggs_on_the_page = Eggs::getEggsFromUri(Utils::getCurrentRequest()->getURI());
//#### TEMPORARY FOR EVENT
?>

<?php 
require_once MODEL . 'partners.php';
?>

<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="theme-color" content="#1a7bd4">

		<link rel="stylesheet" type="text/css" href="<?php 
echo isset($css) ? $css : CSS . 'style.min.css';
?>
">

		<?php 
isset($currentPage) ? include VIEW . 'layouts/pages/' . $currentPage . '/meta.php' : (include VIEW . 'layouts/pages/default/meta.php');
?>

		<link rel="icon" href="<?php 
echo IMG . 'favicon.png';
?>
" />
Example #2
0
 public function rank()
 {
     $data = ['bests' => Eggs::getBestUsers()];
     return new ViewResponse('egg/rank', $data);
 }
Example #3
0
 public function destroy($id, $request)
 {
     $egg = Eggs::find($id);
     $result = $egg->delete();
     return new JsonResponse(['result' => $result]);
 }