Mohamed IDBRAHIM
Mohamed IDBRAHIM
C'est quoi ?
Mohamed IDBRAHIM
Mohamed IDBRAHIM
Laravel
Symfony
Codeigniter
Yii
CakePHP
Zend
Sinatra
Ruby & Rails
Django
Flesk
Angular
Express
Mohamed IDBRAHIM
Mohamed IDBRAHIM
Mohamed IDBRAHIM
Mohamed IDBRAHIM
View
Controller
Router
Model
Database
Browser
User
Mohamed IDBRAHIM
<?php
//Exemple de code contrôleur
class SiteController extends Controller
{
public function indexAction()
{
return $this->render('AppBundle:Default:index.html.twig', $data);
}
}
Exemple de code
//Exemple d'une Route
site_home:
path: /site
defaults: { _controller: AppBundle:Site:index }
//Exemple de view
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
Mohamed IDBRAHIM