traduire boutons crud
This commit is contained in:
parent
155728eb78
commit
cf7a892e08
|
@ -1,9 +1,9 @@
|
|||
<sub class="footer-note text-center"> développé par Tykayn /
|
||||
<a href="http://www.cipherbliss.com">
|
||||
<a class="btn btn-primary" href="http://www.cipherbliss.com">
|
||||
Cipher Bliss
|
||||
</a>
|
||||
|
|
||||
<a href="mailto:contact@cipherbliss.com">
|
||||
<a class="btn btn-primary" href="mailto:contact@cipherbliss.com">
|
||||
<i class="fa fa-mail"></i>
|
||||
contact
|
||||
</a>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block navigation %}
|
||||
<div class="navbar">
|
||||
|
||||
<a href="{{ path('homepage') }}">
|
||||
<a class="btn btn-primary" href="{{ path('homepage') }}">
|
||||
<i class="fa fa-home"></i>
|
||||
Homepage
|
||||
</a>
|
||||
|
|
|
@ -15,6 +15,26 @@
|
|||
<i class="fa fa-list"></i>
|
||||
Dashboard
|
||||
</a>
|
||||
<div id="menu-dashboard">
|
||||
<ul class="nav nav-pills">
|
||||
<li>
|
||||
<a class="btn btn-primary" href="#caisse-now" data-toggle="tab">Caisse</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_index') }}">
|
||||
Catégories
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary" href="{{ path('product_index') }}" data-toggle="tab">
|
||||
Produits
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary" href="#history" data-toggle="tab">Historique</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 text-right">
|
||||
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="try">
|
||||
<a href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
||||
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
|
|
@ -4,17 +4,21 @@
|
|||
<h1>Festival edit</h1>
|
||||
|
||||
{{ form_start(edit_form) }}
|
||||
{{ form_widget(edit_form) }}
|
||||
<input type="submit" value="Edit" />
|
||||
{{ form_widget(edit_form) }}
|
||||
<input type=submit value=" Envoyer
|
||||
"/>
|
||||
{{ form_end(edit_form) }}
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_index') }}">
|
||||
<i class="fa fa-arrow-left"/>
|
||||
Retour à la liste
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
<input type="submit" value="Delete">
|
||||
<input type="submit" value="Delete">
|
||||
{{ form_end(delete_form) }}
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -5,26 +5,32 @@
|
|||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Datecreation</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Datecreation</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for festival in festivals %}
|
||||
<tr>
|
||||
<td><a href="{{ path('festival_show', { 'id': festival.id }) }}">{{ festival.id }}</a></td>
|
||||
<td>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('festival_show', { 'id': festival.id }) }}">{{ festival.id }}</a>
|
||||
</td>
|
||||
<td>{{ festival.name }}</td>
|
||||
<td>{% if festival.dateCreation %}{{ festival.dateCreation|date('Y-m-d H:i:s') }}{% endif %}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('festival_show', { 'id': festival.id }) }}">show</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_show', { 'id': festival.id }) }}">voir
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('festival_edit', { 'id': festival.id }) }}">edit</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_edit', { 'id': festival.id }) }}">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -35,7 +41,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('festival_new') }}">Create a new festival</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_new') }}">Create a new festival</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('festival_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('festival_edit', { 'id': festival.id }) }}">Edit</a>
|
||||
<a class="btn btn-primary" href="{{ path('festival_edit', { 'id': festival.id }) }}"><a class="btn btn-primary" href="</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -3,24 +3,7 @@
|
|||
{% block body %}
|
||||
<div id="wrapper">
|
||||
<div id="container" class="container">
|
||||
<div id="menu-dashboard">
|
||||
<ul class="nav nav-pills">
|
||||
<li>
|
||||
<a href="#caisse-now" data-toggle="tab">Caisse</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_index') }}">Catégories</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('product_index') }}" data-toggle="tab">Produits</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#history" data-toggle="tab">Historique</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="caisse-now" class="tab-pane fade in active">
|
||||
<h2>Caisse</h2>
|
||||
{% include 'logged/caisse-main.html.twig' %}
|
||||
|
|
|
@ -4,17 +4,20 @@
|
|||
<h1>Product edit</h1>
|
||||
|
||||
{{ form_start(edit_form) }}
|
||||
{{ form_widget(edit_form) }}
|
||||
<input type="submit" value="Edit" />
|
||||
{{ form_widget(edit_form) }}
|
||||
<input type="submit" value="Edit"/>
|
||||
{{ form_end(edit_form) }}
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('product_index') }}">
|
||||
<i class="fa fa-arrow-left"/>
|
||||
Retour à la liste
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
<input type="submit" value="Delete">
|
||||
<input type="submit" value="Delete">
|
||||
{{ form_end(delete_form) }}
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -5,19 +5,22 @@
|
|||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Image</th>
|
||||
<th>Price</th>
|
||||
<th>Comment</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Image</th>
|
||||
<th>Price</th>
|
||||
<th>Comment</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for product in products %}
|
||||
<tr>
|
||||
<td><a href="{{ path('product_show', { 'id': product.id }) }}">{{ product.id }}</a></td>
|
||||
<td>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('product_show', { 'id': product.id }) }}">{{ product.id }}</a>
|
||||
</td>
|
||||
<td>{{ product.name }}</td>
|
||||
<td>{{ product.image }}</td>
|
||||
<td>{{ product.price }}</td>
|
||||
|
@ -25,10 +28,12 @@
|
|||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('product_show', { 'id': product.id }) }}">show</a>
|
||||
<a class="btn btn-default" href="{{ path('product_show', { 'id': product.id }) }}">voir</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('product_edit', { 'id': product.id }) }}">edit</a>
|
||||
<a class="btn btn-default" href="{{ path('product_edit', { 'id': product.id }) }}">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -39,7 +44,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('product_new') }}">Create a new product</a>
|
||||
<a class="btn btn-primary" href="{{ path('product_new') }}">Create a new product</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -4,13 +4,16 @@
|
|||
<h1>Product creation</h1>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<input type="submit" value="Create" />
|
||||
{{ form_widget(form) }}
|
||||
<input type="submit" value="Create"/>
|
||||
{{ form_end(form) }}
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('product_index') }}">
|
||||
<i class="fa fa-arrow-left"/>
|
||||
Retour à la liste
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('product_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('product_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('product_edit', { 'id': product.id }) }}">Edit</a>
|
||||
<a class="btn btn-primary" href="{{ path('product_edit', { 'id': product.id }) }}"><a class="btn btn-primary" href="</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Productcategory edit</h1>
|
||||
<h1>Productcategory edit</h1>
|
||||
|
||||
{{ form_start(edit_form) }}
|
||||
{{ form_widget(edit_form) }}
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -5,24 +5,32 @@
|
|||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for productCategory in productCategories %}
|
||||
<tr>
|
||||
<td><a href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">{{ productCategory.id }}</a></td>
|
||||
<td>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">{{ productCategory.id }}</a>
|
||||
</td>
|
||||
<td>{{ productCategory.name }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">show</a>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('productcategory_show', { 'id': productCategory.id }) }}">voir
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">edit</a>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -33,7 +41,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_new') }}">Create a new productCategory</a>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_new') }}">Create a new productCategory</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}">Edit</a>
|
||||
<a class="btn btn-primary" href="{{ path('productcategory_edit', { 'id': productCategory.id }) }}"><a class="btn btn-primary" href="</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Sellrecord edit</h1>
|
||||
<h1>Sellrecord edit</h1>
|
||||
|
||||
{{ form_start(edit_form) }}
|
||||
{{ form_widget(edit_form) }}
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -5,22 +5,30 @@
|
|||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for sellRecord in sellRecords %}
|
||||
<tr>
|
||||
<td><a href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">{{ sellRecord.date }}</a></td>
|
||||
<td>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">{{ sellRecord.date }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">show</a>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('sellrecord_show', { 'date': sellRecord.date }) }}">voir
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">edit</a>
|
||||
<a class="btn btn-primary"
|
||||
href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -31,7 +39,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_new') }}">Create a new sellRecord</a>
|
||||
<a class="btn btn-primary" href="{{ path('sellrecord_new') }}">Create a new sellRecord</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_index') }}">Back to the list</a>
|
||||
<a class="btn btn-primary" href="{{ path('sellrecord_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}">Edit</a>
|
||||
<a class="btn btn-primary" href="{{ path('sellrecord_edit', { 'date': sellRecord.date }) }}"><a class="btn btn-primary" href="</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ form_start(delete_form) }}
|
||||
|
|
|
@ -121,25 +121,7 @@ class DefaultController extends Controller {
|
|||
*/
|
||||
public function addSellingAction( Request $request ) {
|
||||
|
||||
// $mockJson = "{
|
||||
// 'paidByClient': 20,
|
||||
// 'sellingComment': 'sellingComment',
|
||||
// 'activeSelling': [
|
||||
// {
|
||||
// 'id': 1,
|
||||
// 'name': 'aaaaaa',
|
||||
// 'category': 1,
|
||||
// 'price': 1
|
||||
// }
|
||||
// ],
|
||||
// 'activeFestival': {
|
||||
// 'name': 'le festival',
|
||||
// 'dateCreation': '2018-04-17T10:32:00.910Z',
|
||||
// 'commentaire': 'le com de festival'
|
||||
// }
|
||||
//}";
|
||||
$json = json_decode( $request->getContent(), true );
|
||||
// $json = json_decode( $mockJson, true );
|
||||
$json = json_decode( $request->getContent(), true );
|
||||
$currentUser = $this->getUser();
|
||||
$m = $this->getDoctrine()->getManager();
|
||||
$newSellRecord = new SellRecord();
|
||||
|
@ -176,6 +158,7 @@ class DefaultController extends Controller {
|
|||
|
||||
$newSellRecord->setAmount( $sumAmount );
|
||||
$newSellRecord->setDate( new \DateTime() );
|
||||
$newSellRecord->setUser( $currentUser );
|
||||
$newSellRecord->setPaidByClient( $json[ 'paidByClient' ] );
|
||||
// $newSellRecord->setUser( $currentUser );
|
||||
$newSellRecord->setComment( $json[ 'sellingComment' ] );
|
||||
|
@ -190,13 +173,13 @@ class DefaultController extends Controller {
|
|||
|
||||
// fetch back history of selling
|
||||
$sellingRepo = $m->getRepository( 'AppBundle:SellRecord' );
|
||||
$lastSellings = $sellingRepo->findBy( [], [ 'id' => 'desc' ], 0, 3 );
|
||||
$lastSellings = $sellingRepo->findBy( [ 'user' => $currentUser->getId() ], [ 'id' => 'desc' ], 0, 3 );
|
||||
|
||||
// return var_dump( $request->getContent() );
|
||||
return new JsonResponse( [
|
||||
"message" => "ok",
|
||||
"recent_sellings" => $lastSellings,
|
||||
"recent_sellings" => json_encode( $lastSellings ),
|
||||
"dump" => $json,
|
||||
] );
|
||||
], 200 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -148,7 +148,7 @@ class PhpIniRequirement extends Requirement
|
|||
}
|
||||
|
||||
if (null === $helpHtml) {
|
||||
$helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a href="#phpini">*</a>.',
|
||||
$helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a>.',
|
||||
$cfgName,
|
||||
$evaluation ? 'on' : 'off'
|
||||
);
|
||||
|
@ -419,7 +419,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
$this->addRequirement(
|
||||
is_dir(__DIR__.'/../vendor/composer'),
|
||||
'Vendor libraries must be installed',
|
||||
'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. '.
|
||||
'Vendor libraries are missing. Install composer following instructions from <a class="btn btn-primary" href="http://getcomposer.org/">http://getcomposer.org/</a>. '.
|
||||
'Then run "<strong>php composer.phar install</strong>" to install them.'
|
||||
);
|
||||
|
||||
|
@ -443,7 +443,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
$this->addPhpIniRequirement(
|
||||
'date.timezone', true, false,
|
||||
'date.timezone setting must be set',
|
||||
'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).'
|
||||
'Set the "<strong>date.timezone</strong>" setting in php.ini<a class="btn btn-primary" href="#phpini">*</a> (like Europe/Paris).'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -458,7 +458,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
$this->addRequirement(
|
||||
isset($timezones[@date_default_timezone_get()]),
|
||||
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
|
||||
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
|
||||
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a class="btn btn-primary" href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -522,7 +522,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'),
|
||||
false,
|
||||
'suhosin.executor.include.whitelist must be configured correctly in php.ini',
|
||||
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.'
|
||||
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a>.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
create_function('$cfgValue', 'return $cfgValue > 100;'),
|
||||
true,
|
||||
'xdebug.max_nesting_level should be above 100 in php.ini',
|
||||
'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.'
|
||||
'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -558,7 +558,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
||||
true,
|
||||
'string functions should not be overloaded',
|
||||
'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a href="#phpini">*</a> to disable function overloading by the mbstring extension.'
|
||||
'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a class="btn btn-primary" href="#phpini">*</a> to disable function overloading by the mbstring extension.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -707,7 +707,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
|
||||
true,
|
||||
'intl.error_level should be 0 in php.ini',
|
||||
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
|
||||
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -735,7 +735,7 @@ class SymfonyRequirements extends RequirementCollection
|
|||
$this->addRecommendation(
|
||||
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
|
||||
'realpath_cache_size should be at least 5M in php.ini',
|
||||
'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
|
||||
'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a class="btn btn-primary" href="#phpini">*</a> may improve performance on Windows significantly in some cases.'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ $hasMinorProblems = (bool) count($minorProblems);
|
|||
|
||||
<ul class="symfony-install-continue">
|
||||
<?php if ($hasMajorProblems || $hasMinorProblems): ?>
|
||||
<li><a href="config.php">Re-check configuration</a></li>
|
||||
<li><a class="btn btn-primary" href="config.php">Re-check configuration</a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue