Foren / Cotonti / Support / Help with Xtemplate functions

Dyllon
#35066 3. August 2012, 17:56

I'm aware that php functions can be called through Xtemplate simply by using {PHP|function_name('param1','param etc')} however I'm curious if it supports functions through classes. For example:

class Example {
	
	function doThis($param1, $param2)
	{
		// do this function
	}

}

Is it possible to create a tag that uses the Example class, and perform the doThis function?

 

We are what we repeatedly do. Excellence then, is not an act, but a habit.