$this->partial() within a plugin view

arhhhh :slight_smile:

Why aren’t my paths working? In the file located in the directory /MyPlugin/views/public/index, there’s a file named index.php where I have $this->partial(‘partial/index-en.php’), but I’m getting a 404 error." :confused:

directory and file structure is as follows:


I’ve tried to use $this->addScriptPath() but it not works

The view name you use for a partial starts after the public (or admin or shared) folder, so in the file structure you’re talking about, the partial is called index/partial/index-en.php