Skip to content

0.3.0 - Number City

Compare
Choose a tag to compare
@ScreamingDev ScreamingDev released this 07 Sep 13:33
· 165 commits to master since this release

Every time it was raining cats 'n dogs I wrote some more lines for my extension.
By now I feel very satisfied with it because this really simplifies many things.
Especially changing the configuration on the fly is the best part of it.

Have fun coding!

General

Security

Only allow restricted IPs

Magento can restrict IPs in System > Config > Devleoper.
This can be inherited to LeMike_DevMode via System > Config > Developer Mode > General.

2013-09-07-selection_002

Note: When Magento is in developer mode (Mage::getIsDeveloperMode()) everyone is allowed.

Core

Config

Resource

Rerun setup scripts with a single click

2013-09-07-tooltip_003

You see the name, the cached version, the installed as in the database and the available filesystem version.
With an click on "Run setup again" the version will be set back to "0.0.0" and the config cache will be cleaned up.

Rewrites

See what rewrites you have via console: with php shell/coreConfig_rewrite.php which will produce something like this:

magento/shell$ php coreConfig_listRewrites.php

 Config path                                       | New class
---------------------------------------------------+-----------------------------------------------------
 global/models/core/rewrite/email                  | LeMike_DevMode_Model_Core_Email
 global/models/core/rewrite/email_template         | LeMike_DevMode_Model_Core_Email_Template
 global/models/core/rewrite/email_transport        | LeMike_DevMode_Model_Core_Email_Transport
 global/models/tax/rewrite/config                  | FireGento_GermanSetup_Model_Tax_Config
 global/blocks/customer/rewrite/account_navigation | Webguys_CustomerNavigation_Block_Account_Navigation

Or take a look in the backend by the menu Development > Core > Config to see a table with the current rewrites.

Rewrites in menu "Development" > "Core" > "Config"

PHP

Look up a PHP-Info in Development > Core > PHP if you want to know what the environment says.

Lookup phpinfo

Additional

Change the config on the fly

Imagine the config dev/translate_inline/active.
Enable it with foo.html?__dev__translate_inline__active=1

Enable translation on the fly

Note: A prefix is added and the slashes became the same. Think about a JavaScript Bookmark to enable this even faster.

Power of the documentation

  • Use it for release notes
  • Generate a manual
  • Have something to read in GitHub
  • Use it as presentation in no time

Tools

Within the doc folder you find some helpful scripts:

  • makeManual.sh - will generate a Manual.pdf
  • makePresentation.php - will create a reveal.js presentation

Note: This is all generated by using the MD

Structure

To make this possible the MD must have this:

  • Double-New-Line to let it be a new slide (e.g. above headings)
  • "Note: " as prefix for paragraphs that shall be a note in presentation.
  • A limit of 5 bullets or one image per slide.
  • Clean structure and short sentences.

Why "Number City"? - Coheed and Cambria - Number City
Because this release goes deep in the core of Magento which is filled with numbers and magic.
Every minor version is a music title so check the others for more music.


What do you think?
Use it, test it and leave a reply.
I hope this speed up your development and makes it much more easier.

Cheers,
Mike