[PHPTAL] problem with proteced function
kornel at aardvarkmedia.co.uk
Fri May 30 14:38:27 CEST 2008
On Fri, 30 May 2008 13:20:38 +0100, anru chen <ctx2002 at gmail.com> wrote:
> zend framework has a Zend_Config class, in that class, __isset is a
> protected function.
> so if i am pass a Zend_Config object to PHPTal, and try to do some thing
> like <a href="www.foo.com" tal:attributes="href config/webhost" >here</a>
> PHP throws this error:
> Fatal error: Call to protected method Zend_Config::__isset() from
> context '' in e:\php\PEAR\PHPTAL\Context.php on line 269.
I've replaced method_exists with is_callable and this should solve the
problem. Please try the SVN version:
svn co https://svn.motion-twin.com/phptal/trunk/classes phptal
More information about the PHPTAL