Prestashop: override core module class
<p>I would like to override the HomeSlide class for the module homeslider, for that I created a file HomeSlide.php and i placed it under <code>override/modules/homeslider</code>. I tried this <code>HomeSlide.php</code> :</p>

<pre><code>class HomeSlide  extends HomeSlideCore
{
    public $start_date;
    public $end_date;

    public  function __construct($id_slide = null, $id_lang = null, $id_shop = null, Context $context = null)
    {
        self::$definition['fields']['start_date'] =   array('type' =&gt; self::TYPE_DATE, 'validate' =&gt; 'isDate');
        self::$definition['fields']['end_date'] =   array('type' =&gt; self::TYPE_DATE, 'validate' =&gt; 'isDate');

        parent::__construct($id_slide, $id_lang, $id_shop);
    }
}
</code></pre>

<p>But I got this error </p>

<pre><code> Class 'HomeSlideCore' not found
</code></pre>

<p>Any help would be appreciated.
Thanks.</p>