./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This file contains 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
For service account auth include: | |
require_once __DIR__ . '/ServiceAccount.php'; | |
For Oauth2 include: | |
require_once __DIR__ . '/Oauth2Authentication.php'; | |
Note: To reset the auth for oauth to just unset the sessions |
This file contains 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
sf2-ddd | |
├── app | |
├── bin | |
├── build | |
├── lib | |
├── src | |
│ └── __VendorPrefix | |
│ ├── Application | |
│ │ └── __DomainNameBundle | |
│ │ ├── Command |
This file contains 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 | |
/* Standardized data cleanup helper class */ | |
class Cleanup { | |
/** | |
* Make a string into UTF8 compliant... cleans funcky input characters | |
* @param mixed $str | |
* @return mixed $str | |
*/ | |
static function makeUTF8($str) { | |
if (is_array($str)) { |
This file contains 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
// Sometimes the whitespaces contains bullshit and we need to clean this mess. | |
// I saw the light here --> http://heavydots.com/blog/when-the-white-space-became-a-beast | |
// Same with breaklines. | |
$ascii_whitespaces = chr(194).chr(160); | |
$ascii_breaklines = chr(13).chr(10); | |
$to_replace = array ($ascii_whitespaces, $ascii_breaklines); | |
$replace_to = array (' ', ''); |
This file contains 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
<!-- PUT THIS CODE IN ONE PHP FILE IN THE ROOT DIRECTORY --> | |
<?php | |
error_reporting(E_ALL | E_STRICT); | |
include 'app/Mage.php'; | |
Mage::app(); | |
Mage::setIsDeveloperMode(true); | |
umask(0); | |
$attributeCode = "barrio"; //Put here your attribute code |
This file contains 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 obj2array($obj) { | |
$out = array(); | |
foreach ($obj as $key => $val) { | |
switch(true) { | |
case is_object($val): | |
$out[$key] = obj2array($val); | |
break; | |
case is_array($val): | |
$out[$key] = obj2array($val); | |
break; |
This file contains 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
<meta http-equiv='X-UA-Compatible' content='IE=8'/> |
This file contains 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
<meta name='SKYPE_TOOLBAR' content='SKYPE_TOOLBAR_PARSER_COMPATIBLE' /> |
NewerOlder