1

I am a learner in zend framework. I tried This link and its working fine. Now i want to use .tpl files instead of .phtml files. For that i referred This . link and i followed all the steps. But when i run the project its a null page...! Whats wrong and what did i missed? Or any other way to use .tpl files instead of .phtml files?

The error i am getting is :

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (SmartyModule-dev) could not be initialized.

Actually i added "SmartyModule-dev" in Vendor folder

Shashikala
  • 457
  • 1
  • 8
  • 25

1 Answers1

1

Installation steps via composer from library's manual

  1. Add "murganikolay/smarty-module": "1.0.0" to your composer.json file and run php composer.phar update.
  2. Add SmartyModule to your config/application.config.php file under the modules key.

You forgot to add SmartyModule to your config/application.config.php file

newage
  • 899
  • 7
  • 18
  • Actually the mistake is in smarty/module.php.I added namespace and class Module and getAutoloaderConfig() function and it works fine.Your suggestion on displaying error helped me a lot. thank u :) actual upvote is for that solution. – Shashikala Jul 07 '16 at 10:38