cotonti.com : Help with Xtemplate functions https://www.cotonti.com Последние сообщения в теме Cotonti en Sat, 31 Jan 2026 11:21:43 -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.

]]>
пт, 03 авг 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?

 

]]>
пт, 03 авг 2012 17:56:49 -0000