In yii framework helloworld, I defined a variable in controller class
class MessageController extends Controller
{
public $time = 'ok';
Supposely I could reference the variable $time in relevant view class using $this->$time.
But I am seeing variable undefined error.
Anything I might be missing.
Thanks.