Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 58f3992

Browse files
committed
added build_archive.sh script and updated docs
1 parent 6df2519 commit 58f3992

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

build_archive.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
TMPDIR=/tmp/atomik
4+
5+
mkdir -p $TMPDIR
6+
7+
(
8+
cd $TMPDIR
9+
composer create-project atomik/skeleton .
10+
)
11+
12+
cd $(dirname $TMPDIR) && zip -r atomik.zip $(basename $TMPDIR)

docs/error_log_debug.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,39 @@ Also, if *atomik.debug* is true, the error reporting level will be set to the ma
7979
Atomik::debug($myVar2); // no output
8080
Atomik::debug($myVar2, true); // use true to force the output even if debug set to false
8181

82+
## Debug Bar
83+
84+
Atomik provides a plugin to easily integrate [PHP DebugBar](http://phpdebugbar.com).
85+
The skeleton application comes with the debug bar thus you don't need to do the following steps.
86+
87+
You'll need to install PHP Debug Bar by yourself. If you are using the skeleton, this
88+
can be done as follow:
89+
90+
- add the requirement in the *composer.json* file (`"maximebf/debugbar": "1.*"`)
91+
- run `$ composer.phar update`
92+
93+
Activate the plugin in the config and enable debug mode:
94+
95+
Atomik::add('plugins', 'DebugBar');
96+
Atomik::set('atomik.debug', true);
97+
98+
Render the debug bar in your layout:
99+
100+
<html>
101+
<head>
102+
...
103+
<?php if ($this['atomik.debug']) echo $this->renderDebugBarHead(); ?>
104+
</head>
105+
<body>
106+
...
107+
<?php if ($this['atomik.debug']) echo $this->renderDebugBar(); ?>
108+
</body>
109+
</html>
110+
111+
Be aware that the debug bar includes jQuery and FontAwesome. The debug bar needs
112+
at least jQuery to run properly. If you are using jQuery in your project, you can
113+
disable debug bar's own version using:
114+
115+
// this only includes FontAwesome
116+
// set to false to include none of them
117+
Atomik::set('plugins.DebugBar.include_vendors', 'css');

docs/introduction.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ from [here](https://github.com/maximebf/atomik/releases).
4646
If you want to activate pretty URLs under Apache, rename the *htaccess.example* file
4747
to *.htaccess*.
4848

49+
## About the skeleton
50+
51+
Atomik Skeleton Application is a base Atomik application with a basic directory structure
52+
which let you start building your project in a matter of seconds!
53+
54+
It includes [Twitter Bootstrap](http://getbootstrap.com/), [jQuery](http://jquery.com) and
55+
[PHP DebugBar](http://phpdebugbar.com).
56+
57+
The skeleton comes with debug mode activated. Don't forget to change *atomik.debug* to
58+
`false` in the config file when you switch to production mode.
59+
4960
## Directory structure
5061

5162
Your application per se goes into the *app* directory. Actions and views have their own

0 commit comments

Comments
 (0)