Skip to content

Commit f7fb01b

Browse files
committed
#16 documentation as presentation and manual
1 parent c512148 commit f7fb01b

File tree

9 files changed

+420
-70
lines changed

9 files changed

+420
-70
lines changed

app/code/community/LeMike/DevMode/doc/introduction.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

app/code/community/LeMike/DevMode/doc/phpdoc.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/00-introduction.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# LeMike_DevMode
2+
3+
An extension to help you develop beautiful Magento Stores.
4+
5+
<small>
6+
Created by [Mike Pretzlaw](http://mike-pretzlaw.de) / [@fxrmp](http://twitter.com/fxrmp)
7+
</small>

doc/30-core.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# The Magento_Core
2+
3+
4+
## E-Mail
5+
6+
- See an E-Mail in the Browser instead of sending them
7+
8+
9+
### Easily design an E-Mail
10+
11+
- In the Backend go to: `System > Configuration > Developer Mode - Core`
12+
- Open E-Mail
13+
- Set "Send mails" to "No"
14+
15+
Note: Now the mails will stuck in your browser instead of sending them.

doc/60-additional.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Additional tricks
2+
3+
via URL or Shell
4+
5+
6+
## Mighty URL
7+
8+
- See what events and observer has been used.
9+
10+
11+
### Events and Observers
12+
13+
- Add `?__events` to the URL (or Query)
14+
- The original output will be replaced with something like this:
15+
16+
```
17+
Array (
18+
[global] => Array (
19+
[controller_front_init_before] =>
20+
[controller_front_init_routers] => Array (
21+
[observers] => Array (
22+
[cms] => Array (
23+
[type] =>
24+
[model] => Mage_Cms_Controller_Router
25+
[method] => initControllerRouters
26+
[args] => Array ()
27+
...
28+
```
29+
30+
Note:
31+
This will show all used events and observer only almost in the called order.
32+
Global means that they are used in frontend and backend.
33+
So the other keys are `frontend` and `backend`.
34+
35+
36+
## Shell Tools
37+
38+
- Change the admin password without nagging mail
39+
40+
41+
### Change admin password
42+
43+
- Run `shell/adminPassword.php`
44+
- You can promt the username of the admin
45+
- and a new password
46+
47+
Note: The admin have to exist.

doc/getWiki.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
git clone [email protected]:sourcerer-mike/magento-devMode.wiki.git wiki

doc/makeManual.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
echo Convert MD to PDF
4+
gimli
5+
6+
echo Merge PDF to Manual.pdf
7+
if hash pdftk 2>/dev/null; then
8+
pdftk *.pdf cat output Manual.pdf
9+
else
10+
echo "Need pdftk installed but didn't found it."
11+
while true; do
12+
read -p "Do you wish to install this program? [y/n] " yn
13+
case $yn in
14+
[Yy]* ) sudo apt-get install pdftk; break;;
15+
[Nn]* ) echo "Then please merge the created PDF somehow."; exit;;
16+
* ) echo "Please answer yes or no.";;
17+
esac
18+
done
19+
fi
20+
21+
echo "Remove obsolete PDF."
22+
for FILE in `ls *.md`; do
23+
rm `basename -s .md $FILE`.pdf;
24+
done;

0 commit comments

Comments
 (0)