See below:
Marius Rugan wrote:
> Hi all,
> if got reposted, i don't see it in discussions list and sent it almost
> 12 hrs ago
>
>
Sorry, new members are moderated and we don't get a lot of messages to
this list. It took me a while to see that you had posted.
> Hi
> photon got from svn,
>
> i'm getting an exception on a typecasted argument type in Page.php
> (constructor)
>
> function __construct (AppContext $ctx, WebRequest $request, UrlHandler
> $handler, ViewResolver $viewResolver)
>
> Catchable fatal error: Argument 4 passed to Page::__construct() must
> be an instance of ViewResolver,
> instance of PhpViewRenderer given,
> called in /home/mrugan/www/photon/classes/photon/web/
> PageControllerApp.php on line 74
> and defined in /home/mrugan/www/photon/classes/photon/web/Page.php on
> line 17
>
> the bootstraper is the same as in the manual. (http://
> www.photonframework.com/manual/ch03.html#d0e64)
>
> further diging gets me to:
>
> interface ViewResolver should be implemented by the PhpViewRenderer ?
>
> function getView ($controller, $path) // in PhpViewRenderer
> should be
> function getView (Page $controller, $path)
>
> think this should be it. otherwise it's cool. started digging in the
> code :)
>
You're right, I'll fix it today or tomorrow when I get a chance. I don't
usually use the PhpViewRenderer very often (I usually use the more
powerful PTagViewRenderer) so I probably forgot to update it after some
changes. This weekend I'll work on some unit tests to prevent these
types of bugs.
> Alvaro can you post some lines regarding AOP code ? i'm a noob into
> AOP and tryin' to pick up the concept you wrote.
>
Sure, I'll try to post some of that tonight and maybe work some more on
the documentation.
> tia
> Marius Rugan
>
Thanks for checking photon out and reporting that issue.
Alvaro