panique / mini3

Just an extremely simple naked PHP application, useful for small projects and quick prototypes.
274 stars 100 forks source link

PDO Debug d'ont work #55

Open ribafs opened 5 years ago

ribafs commented 5 years ago

In application/Model/Song.php

it's missing

use Mvc\Libs\Helper;

Correct it this:

<?php
/**
 * Class Songs
 * This is a demo Model class.
 *
 * Please note:
 * Don't use the same name for class and method, as this might trigger an (unintended) __construct of the class.
 * This is really weird behaviour, but documented here: http://php.net/manual/en/language.oop5.decon.php
 *
 */
namespace Mini\Model;

use Mini\Core\Model;
use Mvc\Libs\Helper;

class Song extends Model
panique commented 5 years ago

Thanks, thats true! Personal notice: TODO add use Mini\Libs\Helper; to Model/Song.php I ll add when i have time :)