cotonti.com : Help with Xtemplate functions https://www.cotonti.com Son konu mesajları Cotonti en Fri, 31 Jul 2026 17:10:15 -0000 Trustmaster Currently it isn't. It can be added, but it will cost us some lines of code and performance. Is it really necessary or you can make a wrapper function? Also consider that doThis() method in the above example isn't static, so you can't call it without object context.

]]>
Cum, 03 Ağu 2012 19:18:32 -0000
Dyllon 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?

 

]]>
Cum, 03 Ağu 2012 17:56:49 -0000