|
Tuesday 08 July 2003 8:45:02 am
Comment38277
Okay, as much as I hate to admit it, I'm stumped. While I am relatively experienced with PHP I'm still learning the OOP side of it, which in combination with the eZp learning curve is proving quite daunting. I have been studying the operators and looking through the documentation, but I just don't see how to take my existing code (which is object-oriented) and include it as an operator within a template. I think I may be missing something basic as my experiments run into problems; usually displaying a variant of " Unknown template variable 'eZSniff' in namespace '' ". If you don't mind could you write up a short list of the exact steps to create an operator starting from a blank file in the extensions directory and including the modifications to the site.ini and the template file? Perhaps a simple "hello world" PHP script that echoes"hello world" which is then included in the template. This would be immensely helpful. I'm sure this is simple as the template itself doesn't require any logic, it just needs to call the PHP which does the browser detection and spits out the appropriate HTML. If this is confusing, I apologize, but I'm rather confused myself. ;) Hopefully I will reach a deeper understanding soon so I can help answer questions like these. Thanks! Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|