main.CRITICAL: Invalid template file: 'One97_Paytm::form/paytm.phtml' in module: 'One97_Paytm' block's name: 'paytm' [] [] 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; }