We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

interface not found

I am getting interface testInterface not found error in phalcon.

<?php
class test implements testInterface 
{
    public function __construct()
    {
    }

    public function testMethod()
    {
    }
}

interface testInterface
{
    public function testMethod();
}
?>

typo error is because of my typing mistake in forum i have updated the question. I have implemented two seprate files one for class and another for interface. Do you know how can I call interface first in that case ?

Thanks



13.7k
Accepted
answer

Was my mistake forgot to add service dir in loader file.