Skip to content

Class 'yidas\rest\Controller' not found #8

@owf18916

Description

@owf18916

This error occured when i hit the api
this is my controller :


<?php
defined('BASEPATH') OR exit('No direct script access allowed');

use yidas\rest\Controller;

class PostApiController extends Controller
{
    public function index()
    {
        return $this->response->json(['bar'=>'foo']);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions