Changeset 2949 for documentation/trunk/topics/agavi-services.dita
- Timestamp:
- 09/27/08 16:00:05 (3 months ago)
- Files:
-
- 1 modified
-
documentation/trunk/topics/agavi-services.dita (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/topics/agavi-services.dita
r2747 r2949 17 17 the "context" of the application. This envelope is exposed to 18 18 your application as the global singleton <apiname>Context</apiname> object.</p> 19 <p>The Context object is available to all of your code. You use 20 the Context object to access the global framework services. For 21 example, if you want to retrieve a named database connection 22 from Agavi <apiname>DatabaseManager</apiname>, you'll do approximately the following:</p> 23 <codeblock class="php" conref="examples.xml#services-example-context"/> 19 <p>The Context object is available to all of your code. It is an 20 important object, since you use it to access 21 the global services of the framework. For example, if you wanted to 22 retrieve a named database connection from 23 Agavi <apiname>DatabaseManager</apiname>, you'd do 24 it like this:</p> <codeblock class="php" 25 conref="examples.xml#services-example-context"/> 24 26 </section> 25 27 <section> 26 28 <title>Application configuration</title> 27 <p>Agavi configuration system is a general purpose service is 29 <p>Agavi configuration system stores names and their 30 corresponding values. It is a general purpose service that's 28 31 used both by Agavi applications and the framework itself. The 29 32 configuration system compiles XML configuration files into 30 executable PHP code. Here's some example code: 33 executable PHP code. Agavi defines some configuration files 34 for its own purposes. Here's some example code: 31 35 </p> 32 36 <codeblock class="php" conref="examples.xml#services-example-config"/> … … 83 87 code makes.</p> 84 88 <p>On the application level, Agavi provides a security mechanism 85 that distinguishes between users and between permissions,86 opening a clear way to specify who is allowed to access what in87 your application. Access security is enforced on the framework88 levelas well.</p>89 that understands individual user permissions, allowing to 90 specify who is allowed to access what in your 91 application. Access security is enforced on the framework level 92 as well.</p> 89 93 </section> 90 94 <section> … … 99 103 <p>Agavi also ships with a date manipulation library.</p> 100 104 </section> 101 <section>102 <title>103 </title>104 </section>105 105 </body> 106 106 </topic>

