[template compile error: set_error_handler() expects the argument () to be a valid callback]
Template tags

raPHPid

raPHPid in Facebook

Template tags

Here is brief exaplanation of tags that can be currently used in templates.
<%var:test%>			
- Prints out variable value. Does effectively same as "echo $test;"

<%var:test.attr%>		
- Prints out variable attribute value. Does effectively same as "echo $test->attr;"

<%foreach:array%>		
- Loops through $array, setting key to $key and value to $value.

<%foreach%>				
- End of the foreach.

<%include:sub_file.tpl%>	
- Includes subfile template to this location, all variables are usable in that file.

<%img:filename.png%>			
- Includes image from application image-directory to here.

<%img:filename.png:alt_text_here%>	
- Same as above using, using alt text.

<%code%>				
- Text between <%code%> tags is treated as PHP-code.

<%hook:plugin:function:param1:param2:...:paramN%>	
- Call plugin function in application directory using params plugin 
  namespace must be \raphpid\plugin\ 
  directory is APPLICATION_DIR\class\
													
<%path%>				
- Translate application URL path to here (for images or CSS or something).

<%action:action_id%>	
- Get action URL text for place, note that this is only the URL text not like link object.
  example: SITE_URL/myapplication/myaction
  URL constructed out of site_url and application and action. Does NOT check if such 
  action exists.
						
<%form:parseFormObject%>	
- Creates form out of ParseForm object. Inside tags <%form%>, each parseform input will 
  implement that HTML-code. 2 tags can be used inside <%form:label%> which produces 
  label and <%form:input%> which produces input element. <%form:tooltip%> reserved.
							
<%siteurl%>				
- Plain site URL (for example to get img/css/js dir)

<%title:page title%>		
- Set page title

<%description:page desc%>	
- Add page description (does not remove others)

<%author:page desc%>		
- Add page author (does not remove others)

<%css:cssfile.css%>			
- Register (=add once) cssfile.css from application .../css/ directory

<%javascript:jscript.js%>	
- Register (=add once) javascript.js from application .../js/ directory
 Page was loaded in 0.076709 seconds.