Atomik Plugins Manual


Table of Contents

1. Ajax
2. Cache
3. Console
Creating custom scripts
Using commands
Built-in commands
Utility methods
4. Controller
Differences with the classic Atomik way
Creating controllers
Creating simple controllers
Creating controllers by subclassing Atomik_Controller
5. Db
Connecting to a database
Querying the database
Using PDO-like methods
Using find methods
Manipulating data
Insert
Update
Delete
Advanced use of the plugin
6. Lang
Creating language files
Detecting the user language
Translating strings
7. Session

List of Examples

1.1. Render views instead of returning variables
2.1. Caching requests
3.1. Calling custom scripts
3.2. Calling custom scripts with arguments
3.3. Creating a command
3.4. Creating a command with arguments
3.5. Using the init command
3.6. Using the generate command
3.7. Printing a message
3.8. Creating directories
3.9. Creating files
4.1. Creating routes
4.2. Creating a simple controller
4.3. Creating a simple controller with view variables
4.4. Mapping route parameters to method arguments
4.5. Defining route parameters inside controllers
5.1. Automatically connecting to a database
5.2. Connecting to a database manually
5.3. Using Atomik_Db::query()
5.4. Using other PDO methods with Atomik_Db
5.5. Finding records from one table
5.6. Finding records from multiple tables
5.7. Finding records with order by and limit clauses
5.8. Working with the result of find methods
5.9. Inserting data into the database
5.10. Updating data
5.11. Deleting data
5.12. Using Atomik_Db_Instance
6.1. A translation file
6.2. Setting the language manually
6.3. Retreiving the current language
6.4. Translating a string
6.5. Translating a string using the shortcut function
6.6. Translating a string with replacements
7.1. Creating flash messages
7.2. Retreiving flash messages
7.3. The session selector
7.4. Accessing $_SESSION from the global store