<p>How to extend <code>craft</code>'s front end controllers?
I don't want to use <code>twig</code>.
I like twig but I don't want to use it in <code>craft</code>.</p>
<p>Respect my decision and help me.</p>
<p>Is there a good way to do that?. So I can render using my own <code>views</code> file. So I can use it like in <code>Yii</code>:</p>
<pre><code>public function actionView($id)
{
    $entryData = null; //get the entry data here

    return $this-&gt;render('view', [
        'entryData' =&gt; $entryData,
    ]);
}
</code></pre>

CC BY-SA 4.0
2022-05-20T19:14:22.660Z
Respect the decision but can I ask why?
Steven Grant
<controller><yii><extends>
How to Extend Craft CMS frontend controller?
# How to Extend Craft CMS frontend controller?

(Asked by: username_0 on 2022-05-20)

How to extend craft's front end controllers?
I don't want to use twig.
I like twig but I don't want to use it in craft.
Respect my decision and help me.
Is there a good way to do that?. So I can render using my own views file. So I can use it like in Yii:
public function actionView($id)
{
    $entryData = null; //get the entry data here

    return $this->render('view', [
        'entryData' => $entryData,
    ]);
}

**Tags:** controller, yii, extends

> **Comments:**
> **username_1**: Respect the decision but can I ask why?  

---

## 0 answers

