I hereby claim:
- I am jamescowie on github.
- I am jcowie (https://keybase.io/jcowie) on keybase.
- I have a public key whose fingerprint is C346 4D1C AC9F 12F9 E85B C081 F5DA 2598 AFEB 95E8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Im exploring the different ways that can be used to install Magento 2 both locally for extension development and then how this could be deployed into production.
Warning this will be a evolving living gist as I have time to play around.
I found that I could run:
composer create project magento/project-community-edition=dev-master magento2
| Hello World from CLI |
| <?php | |
| Mage::getModel('cms/block')->load('static_block_identifier')->getIsActive() |
| SET FOREIGN_KEY_CHECKS=0; | |
| -- reset customers | |
| TRUNCATE customer_address_entity; | |
| TRUNCATE customer_address_entity_datetime; | |
| TRUNCATE customer_address_entity_decimal; | |
| TRUNCATE customer_address_entity_int; | |
| TRUNCATE customer_address_entity_text; | |
| TRUNCATE customer_address_entity_varchar; | |
| TRUNCATE customer_entity; | |
| TRUNCATE customer_entity_datetime; |
| <?php | |
| @method string getProductName() getProductName(int $id) Return string value for product name | |
| class Jcowie_PHPSpec_Model_Product extends Mage_Core_Model_Abstract | |
| { | |
| public function _construct() | |
| { | |
| $this->_init('phpspec/product'); | |
| } |
| $model = \Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); | |
| $model->setHighestOnlinePrice($highestPrice); // This attribute does NOT exist in Magento | |
| $model->save(); | |
| PHPUnit_Framework_Assert::assertTrue($model->offsetExists('highest_online_price')); |
| @if ( Auth::guest() ) | |
| <li>{{ HTML::link('login', 'Login') }}</li> | |
| @else | |
| <li>{{ HTML::link('logout', 'Logout') }}</li> | |
| @endif |