- actions_apply_to
- admin.scope.col.wrap
- adminhtml.block.report.product.lowstock.grid.container
- adminhtml.catalog.product.set.edit.wrapper
- after.body.start
- alert.urls
- assign_products_container
- available_sort_by_group
- backend.page
- backend.session.activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'app/Mage.php'; | |
| Mage::app()->getCache()->getBackend()->clean('old'); | |
| Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); | |
| $installer = new Mage_Sales_Model_Mysql4_Setup; | |
| $attribute = array( | |
| 'type' => 'int', | |
| 'label'=> 'Show Breadcrumb Image', | |
| 'input' => 'select', | |
| 'source' => 'eav/entity_attribute_source_boolean', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| try { | |
| require __DIR__ . '/app/bootstrap.php'; | |
| } catch (\Exception $e) { | |
| echo $e->getMessage(); | |
| exit(1); |
87 Multiple Choice items (85 scored, 2 unscored)
120 minutes to complete the exam
Based on Magento Community Edition 1.9 and Magento Enterprise Edition 1.14
Magento Certified Developer Plus exam: For sections 11 & 12 combined a score of 7 or higher AND meet the overall passing score of 48 or higher
5% 1-Basics (config, events, cron, translations, theme, locating template/layout file)
6% 2-Request Flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isHighDensity(){ | |
| return ((window.matchMedia && (window.matchMedia('only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)').matches)) || (window.devicePixelRatio && window.devicePixelRatio > 1.3)); | |
| } | |
| function isRetina(){ | |
| return ((window.matchMedia && (window.matchMedia('only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)').matches)) || (window.devicePixelRatio && window.devicePixelRatio >= |
# Skip .git, .htpasswd etc
location ~ /\.(git|svn|ht) {
return 404;
}
<Directorymatch "^/(.*/)*\.(git|svn)/">
Order deny,allow
Deny from all
</Directorymatch>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // yo can follow this guide to http://www.benrlodge.com/blog/post/how-to-generate-an-instagram-access-token# | |
| #1 first you need to create a Client in Instgram Developer Dashboard | |
| // https://www.instagram.com/developer/clients/manage/ | |
| #2 after you need to retrive a oAuth code for after get access_token | |
| // https://www.instagram.com/developer/authentication/ | |
| // change the params with your one and open link in browser |
Composer and M2: http://devdocs.magento.com/guides/v2.0/extension-dev-guide/build/composer-integration.html
Dependency Injection (and di.xml details): http://devdocs.magento.com/guides/v2.1/extension-dev-guide/depend-inj.html
Object Manager: