Atomik Framework Manual
Next
Atomik Framework Manual
Table of Contents
1. Introduction
2. Core principles
Simplicity and the KISS principle
Actions and Templates
Extensivity and Plugins
Selectors
3. Installation
Requirements
Download
Installation
4. Accessors and configuration
Accessors
Using paths in keys
Using accessors with any arrays
The configuration file
5. URLs
6. Actions and templates
Introduction
Actions
Templates
Calling actions or templates programmatically
Executing actions
Rendering templates
7. Selectors
8. Includes
9. Events
Listening to events
Firing events
Events naming convention
Overview of available Atomik events
10. Plugins
Using plugins
Installing a plugin
Activating and configuring a plugin
Developing plugins
The plugin file
Plugin custom configuration
Using a class
List of Figures
6.1.
A little schema to sum up!
9.1.
Simple schema illustrating Atomik events flow
List of Examples
4.1.
Using the
get
method
4.2.
Using the
set
method
4.3.
Using the
has
and
delete
methods
4.4.
Using paths
4.5.
Using accessors with any array
4.6.
Exemple
config.php
file
6.1.
A php script, the old way
6.2.
Splitting into multiple files
6.3.
Private variables in actions
6.4.
Example template
6.5.
Calling an action programmatically
6.6.
Rendering a template programmatically
7.1.
Using the built-in selector
7.2.
Using selectors with the db plugin
8.1.
Using includes
9.1.
Listening to an event
9.2.
Firing events
9.3.
Example of event naming
10.1.
Activating a plugin
10.2.
Plugin custom configuration
10.3.
Retrieving plugin custom configuration
10.4.
Plugin class
10.5.
Plugin class with event callback methods