<?php
class ReportsController extends CController
{
public function __call($name,$argument)
{
echo "test";
}
}
?>
This is my Yii controller class and when calling index.php?r=reports/test URL it has to call the __call method as test method is not exists but it gives error The system is unable to find the requested action test error.
Implement
missingActionmethod in your controller,As said @xdazz, it checks if method exists and if not it calls
missingActionmethod.