Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



8.0k
Accepted
answer

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