Calling template from controller redirects to dashboard How can I call a template with variable from a controller method? I tried following but it redirects to dashboard:

public function actionsetDate() {
        return craft()-&gt;templates-&gt;render('index');
    }
You will need to include your plugin handle, like:

$this-&gt;renderTemplate('myPluginHandle/index', array());