Cahe php site web jour 1

Par arcoss 3x, il y a 10 ans


Bonjour,
Je suis le tuto Cake php pour créer un site web et j'ai une erreur avec mysql :

Strict (2048): Declaration of Mysql::describe() should be compatible with DataSource::describe($model) [CORE\Cake\Model\Datasource\Database\Mysql.php, line 29]

Mon code mysql est :

<?php /** * MySQL layer for DBO * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package Cake.Model.Datasource.Database * @since CakePHP(tm) v 0.10.5.1790 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::uses('DboSource', 'Model/Datasource'); /** * MySQL DBO driver object * * Provides connection and SQL generation for MySQL RDMS * * @package Cake.Model.Datasource.Database */ class Mysql extends DboSource {

et je suis sous wamp 2.5 avec php 5.5.12
merci d'avance

7 réponses

Lartak, il y a 10 ans

Bonsoir.
Est-ce que tu utilises les sources du tutoriel ou est ce que tu utilises une nouvelle installation de CakePHP ?

arcoss 3x, il y a 10 ans

j'utilise une nouvelle installation de cake php
p.s : j'utilise la version 2.0.0 rc2 de cake php

Lartak, il y a 10 ans

Pourquoi la 2.0, ce n'est pas la plus récente de la V2 ?
Il te faut utiliser la plus récente, elle sera compatible avec PHP 5.

arcoss 3x, il y a 10 ans

non elle ne s'affiche pas par rapport a une fonction

Lartak, il y a 10 ans

La version que tu utilises n'est pas compatible avec PHP 5, regardes mon post précédent.

arcoss 3x, il y a 10 ans

ah ok merci !!!

Lartak, il y a 10 ans

ah ok merci !!!

De rien.