(Available since DotKernel 1.3.0)

The dots.xml file stores a part of the global settings used by the dots. Its structure is similar with the xml files from configs/dots/ that store the settings for the current dots. This file is meant to be a bridge between multiple dots.
It will always be loaded, before any other xml file, so its values can be overwritten by the current xml dots file.

configs/dots.xml sample code:

<?xml version="1.0" encoding="utf-8"?>
<!-- This file is the default file used for config dots. 
Always dots.xml will be loaded, and it's value can be overwritten by the 
current xml dots file. -->
<config>
   <dots>
 	<variable option="global">
  	</variable>
	<variable option="admin">
	    <session>
		  <name>admin</name>
		  <rememberMeSeconds>864000</rememberMeSeconds>		
	    </session>
	</variable>
	<variable option="frontend">
	    <session>
		  <name>frontend</name>
		  <rememberMeSeconds>864000</rememberMeSeconds>		
	    </session>
	    <warningMessage>
		  <userPermission>You don't have enough credentials to access this url.</userPermission>
	    </warningMessage>
	</variable>		
  </dots>	
</config>

One Comment

  1. How to use Alerts in DotKernel | DotKernel PHP Application Framework

    […] If you’re not familiar with the dots.xml, you should see this article. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>