Controller access


I’ve put someone else’s work in maintenance and I am unable to add a controller. Do could help me?

The Controller is thus:

namespace api\controllers;

use Yii;

use yii\db\Query;

use api\controllers\ApiController;

use api\models\Newsletter;

use yii\helpers\Url;

class NewsletterController extends ApiController{

public $modelClass = 'api\models\Newsletter';

public function actions() {

	$actions = parent::actions();


	return $actions;


public function actionIndex() {


	$response = array();

	return $response;



The route is thus:

‘components’ => [

	'urlManager' => [

		'class' => 'yii\web\UrlManager',

		'enablePrettyUrl' => true,

		'enableStrictParsing' => true,

		'showScriptName' => false,

		'rules' => [

			'POST,OPTIONS	login' => 'authentication/index',

                               ['class' => 'yii\rest\UrlRule', 'controller' => 'newsletter'],

The url access and error: …/api/newsletter?access-token=…Bg2…QSnm-Htq1udBj&lang=pt 500 (Internal Server Error)