Hi,
I'm using Phalcon for the first time to test its features/performances, I'm currently using YII for my projects so I'm quite familiar with MVC-ish frameworks like this.
Now I've the 64bit VC9 version installed on PHP5.4 (WAMP) and webtools cloned from GIT.
I've created a simple app called dummy with the CLI (phalcon create-project dummy --enable-webtools) and a couple of tables in the db. I've used the webtools web pages to create the models (only one called users) and the scaffold. First weird thing I've noticed is that PHTML views were created instead of VOLT (the project was created with VOLT while the scaffold not).
Now when I browse through localhost/dummy/users all I get is an error as follow:
Fatal error: Class 'Tag' not found in E:\dev\wamp\www\dummy\app\views\users\index.phtml on line 28
Call Stack
# Time Memory Function Location
1 0.0003 252520 {main}( ) ..\index.php:0
2 0.0019 288920 handle ( ) ..\index.php:27
3 0.0048 397496 Phalcon\Mvc\View\Engine\Php->render( ) ..\index.php:0
the index.phtml indeed call for the tag class after the getContent() call:
<div align="right">
<?php echo $this->tag->linkTo(array("users/new", "Create users")) ?>
</div>
I've searched this error and could only find one reference on stackoverflow, saying that the TAG class should be injected in the bootstrap via the DI object. It also mentioned that the new version of webtools will have this corrected, the question was from sometime in 2012 so I guess by now this has been corrected.. yet it doesn't work.
Shall I inject the tag class with DI in the bootstrap manually? How exactly?