Error filtering template: Invalid template file: 'products/attribute/grid.phtml' in module: 'MGS_Mpanel' block's name: 'products\\attributes_0 code example
Example: Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file:
> protected function isPathInDirectories($path, $directories) {
> if (!is_array($directories)) {
> $directories = (array)$directories;
> }
> $realPath = $this->fileDriver->getRealPath($path);
> $realPath = str_replace('\\', '/', $realPath);
> foreach ($directories as $directory) {
> if (0 === strpos($realPath, $directory)) {
> return true;
> }
> }
> return false; }