<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-701325986099898171</id><updated>2026-08-11T02:08:34.120-07:00</updated><category term="Magento"/><category term="Drupal"/><category term="Drupal 8"/><category term="Drupal7"/><title type='text'>PHP Answers</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-5792449633122278413</id><published>2017-12-07T13:26:00.001-08:00</published><updated>2017-12-07T13:26:12.108-08:00</updated><title type='text'>Drupal 8: Entity browser custom form field</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;color: #4c8317;&quot;&gt;&amp;lt;?php&lt;/span&gt; 
form[&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt;] = [
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;container&#39;&lt;/span&gt;,
      &lt;span style=&quot;color: #aaaaaa; font-style: italic;&quot;&gt;//&#39;#parents&#39; =&amp;gt; [&#39;content_link_wrapper&#39;],&lt;/span&gt;
      &lt;span style=&quot;color: #aaaaaa; font-style: italic;&quot;&gt;//&#39;#weight&#39; =&amp;gt; -3,&lt;/span&gt;
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;widget&#39;&lt;/span&gt; =&amp;gt; [
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#title&#39;&lt;/span&gt; =&amp;gt; t(&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Content Link&#39;&lt;/span&gt;),
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#description&#39;&lt;/span&gt; =&amp;gt; t(&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;The content to be linked in the menu.&#39;&lt;/span&gt;),
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#field_name&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;content_link&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#field_parents&#39;&lt;/span&gt; =&amp;gt; [],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#required&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #0000aa;&quot;&gt;TRUE&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#parents&#39;&lt;/span&gt; =&amp;gt; [&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;content_link&#39;&lt;/span&gt;],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#tree&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #0000aa;&quot;&gt;TRUE&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;details&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#open&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #0000aa;&quot;&gt;TRUE&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;target_id&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;hidden&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#attributes&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
          ],
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#default_value&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&quot;&quot;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#ajax&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;callback&#39;&lt;/span&gt; =&amp;gt; [
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget&#39;&lt;/span&gt;,
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;updateWidgetCallback&#39;&lt;/span&gt;,
            ],
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;wrapper&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link&#39;&lt;/span&gt;,
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;event&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser_value_updated&#39;&lt;/span&gt;,
          ],
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#entity_browser&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;experience_cms_entity_browser&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aaaaaa; font-style: italic;&quot;&gt;//&#39;#cardinality&#39; =&amp;gt; 1,&lt;/span&gt;
          &lt;span style=&quot;color: #aaaaaa; font-style: italic;&quot;&gt;//&#39;#selection_mode&#39; =&amp;gt; &#39;selection_edit&#39;,&lt;/span&gt;
          &lt;span style=&quot;color: #aaaaaa; font-style: italic;&quot;&gt;//&#39;#default_value&#39; =&amp;gt; [],&lt;/span&gt;
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#entity_browser_validators&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_type&#39;&lt;/span&gt; =&amp;gt; [
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;node&#39;&lt;/span&gt;,
            ],
          ],
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#custom_hidden_id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#process&#39;&lt;/span&gt; =&amp;gt; [
            [
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;\Drupal\entity_browser\Element\EntityBrowserElement&#39;&lt;/span&gt;,
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;processEntityBrowser&#39;&lt;/span&gt;,
            ],
            [
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget&#39;&lt;/span&gt;,
              &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;processEntityBrowser&#39;&lt;/span&gt;,
            ],
          ]
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;current&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#theme_wrappers&#39;&lt;/span&gt; =&amp;gt; [&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;container&#39;&lt;/span&gt;],
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#attributes&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;class&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entities-list&#39;&lt;/span&gt;,
          ],
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;items&#39;&lt;/span&gt; =&amp;gt; [],
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#after_build&#39;&lt;/span&gt; =&amp;gt; [
          [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget&#39;&lt;/span&gt;,
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;afterBuild&#39;&lt;/span&gt;,
          ],
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#attached&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;library&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser/entity_reference&#39;&lt;/span&gt;,
          ],
        ],
      ],
    ];
&lt;span style=&quot;color: #4c8317;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;span style=&quot;color: #4c8317;&quot;&gt;OR easy one&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;color: #333333; line-height: 16.25px;&quot;&gt;&lt;pre style=&quot;line-height: 16.25px;&quot;&gt;&lt;span style=&quot;color: #4c8317;&quot;&gt;&amp;lt;?php&lt;/span&gt; 
form[&lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt;] = [
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;container&#39;&lt;/span&gt;,
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-wrapper&#39;&lt;/span&gt;,
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#attributes&#39;&lt;/span&gt; =&amp;gt; [
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-wrapper&#39;&lt;/span&gt;,
      ],
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;target_id&#39;&lt;/span&gt; =&amp;gt; [
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;hidden&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#attributes&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#default_value&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&quot;&quot;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#ajax&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;callback&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget&#39;&lt;/span&gt;,
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;updateWidgetCallback&#39;&lt;/span&gt;,
          ],
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;wrapper&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-wrapper&#39;&lt;/span&gt;,
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;event&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser_value_updated&#39;&lt;/span&gt;,
        ],
      ],
      &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt; =&amp;gt; [
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_browser&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#entity_browser&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;experience_cms_entity_browser&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#entity_browser_validators&#39;&lt;/span&gt; =&amp;gt; [
          &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;entity_type&#39;&lt;/span&gt; =&amp;gt; [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;type&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;node&#39;&lt;/span&gt;,
          ],
        ],
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#custom_hidden_id&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;edit-content-link-target-id&#39;&lt;/span&gt;,
        &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;#process&#39;&lt;/span&gt; =&amp;gt; [
          [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;\Drupal\entity_browser\Element\EntityBrowserElement&#39;&lt;/span&gt;,
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;processEntityBrowser&#39;&lt;/span&gt;,
          ],
          [
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget&#39;&lt;/span&gt;,
            &lt;span style=&quot;color: #aa5500;&quot;&gt;&#39;processEntityBrowser&#39;&lt;/span&gt;,
          ],
        ]
      ],
    ];&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/5792449633122278413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2017/12/drupal-8-entity-browser-custom-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5792449633122278413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5792449633122278413'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2017/12/drupal-8-entity-browser-custom-form.html' title='Drupal 8: Entity browser custom form field'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-4128573102354323501</id><published>2017-11-07T21:53:00.001-08:00</published><updated>2017-11-07T21:54:34.707-08:00</updated><title type='text'>Enter into docker container using GITBash</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# find the name of the machine created.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
docker&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;machine ls
docker&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;machine env &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;shell cmd &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;nameOfTheMachine&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
docker machine ssh &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;nameOfTheMachine&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Then &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-sh prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;ul style=&quot;background-color: #fcfcfc; box-sizing: border-box; color: #404040; font-family: Lato, proxima-nova, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: 24px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px; padding: 0px; white-space: normal;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; list-style: disc; margin-left: 24px;&quot;&gt;Use the command&amp;nbsp;&lt;code style=&quot;background: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); box-sizing: border-box; color: #e74c3c; font-family: Consolas, &amp;quot;Andale Mono WT&amp;quot;, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Lucida Sans Typewriter&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Nimbus Mono L&amp;quot;, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 12px; max-width: 100%; overflow-x: auto; padding: 2px 5px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;docker exec -it &amp;lt;container name&amp;gt; /bin/bash&lt;/code&gt;&amp;nbsp;to get a bash shell in the container&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; list-style: disc; margin-left: 24px;&quot;&gt;Generically, use&amp;nbsp;&lt;code style=&quot;background: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); box-sizing: border-box; color: #e74c3c; font-family: Consolas, &amp;quot;Andale Mono WT&amp;quot;, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Lucida Sans Typewriter&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Nimbus Mono L&amp;quot;, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 12px; max-width: 100%; overflow-x: auto; padding: 2px 5px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;docker exec -it &amp;lt;container name&amp;gt; &amp;lt;command&amp;gt;&lt;/code&gt;&amp;nbsp;to execute whatever command you&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/4128573102354323501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2017/11/enter-into-docker-container-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/4128573102354323501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/4128573102354323501'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2017/11/enter-into-docker-container-using.html' title='Enter into docker container using GITBash'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-4208029040728144877</id><published>2016-04-11T01:42:00.000-07:00</published><updated>2016-04-11T01:42:06.108-07:00</updated><title type='text'>Display error message on Ajax form submit Drupal 7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Display error message on Ajax form submit Drupal 7&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To Display error message after ajax form submit you need to take care the following points.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; $form[&#39;submit_button&#39;] = array(  
     &#39;#type&#39; =&amp;gt; &#39;submit&#39;,  
     &#39;#value&#39; =&amp;gt; t(&#39;Save&#39;),  
     &#39;#ajax&#39; =&amp;gt; array(  
       &#39;callback&#39; =&amp;gt;&#39;form_ajax_callback&#39;  
       &#39;wrapper&#39; =&amp;gt; form-html-id-name ,  
       &#39;event&#39; =&amp;gt; &#39;click&#39;,  
     )  
   );  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
In the wrapper you should take the form-id.&lt;br /&gt;
For example if your form name is &lt;b&gt;abc_form&lt;/b&gt; then generated html form id will be &lt;b&gt;abc-from. &lt;/b&gt;Otherwise errors will not get displayed.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/4208029040728144877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2016/04/display-error-message-on-ajax-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/4208029040728144877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/4208029040728144877'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2016/04/display-error-message-on-ajax-form.html' title='Display error message on Ajax form submit Drupal 7'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-23588749794255157</id><published>2016-04-11T00:44:00.005-07:00</published><updated>2016-04-11T00:44:42.802-07:00</updated><title type='text'>Add same form multiple times on page Drupal 7 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Show same form multiple times on page&lt;/h2&gt;
&lt;div&gt;
To display custom form multiple times on same page you need to use&amp;nbsp;&lt;b&gt;hook_forms . &lt;/b&gt;Below example&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;  $form = drupal_get_form(&quot;workflow_tab_form_$node-&amp;gt;nid&quot;, $node, $workflow-&amp;gt;wid, $states, $current);  
 /**  
  * Implements hook_forms().  
  *  
  * Allows the workflow tab form to be repeated multiple times on a page.  
  * See http://drupal.org/node/1970846.  
  */  
 function workflow_forms($form_id, $args) {  
  $forms = array();  
  if (substr($form_id, 0, 18) == &#39;workflow_tab_form_&#39;) {  
   $forms[$form_id] = array(&#39;callback&#39; =&amp;gt; &#39;workflow_tab_form&#39;);  
  }  
  return $forms;  
 }  
&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;
Or you can refer https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_forms/7&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/23588749794255157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2016/04/add-same-form-multiple-times-on-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/23588749794255157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/23588749794255157'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2016/04/add-same-form-multiple-times-on-page.html' title='Add same form multiple times on page Drupal 7 '/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-8746455895945272940</id><published>2016-01-19T21:59:00.001-08:00</published><updated>2016-01-19T21:59:07.010-08:00</updated><title type='text'>Drupal 8: How to create user with role programatically</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Drupal 8: How to create user with role programatically&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;code&gt;

$values = array(
&#39;field_first_name&#39; =&amp;gt; &#39;test&#39;,
&#39;fieldt_last_name&#39; =&amp;gt; &#39;g&#39;,
&#39;name&#39; =&amp;gt; &#39;test123&#39;,
&#39;mail&#39; =&amp;gt; &#39;test@test.com&#39;,
&#39;roles&#39; =&amp;gt; array(&#39;administrator&#39;),
&#39;pass&#39; =&amp;gt; &#39;password&#39;,
&#39;status&#39; =&amp;gt; 1,
);
$account = entity_create(&#39;user&#39;, $values);
$account-&amp;gt;save();
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/8746455895945272940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2016/01/drupal-8-how-to-create-user-with-role.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8746455895945272940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8746455895945272940'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2016/01/drupal-8-how-to-create-user-with-role.html' title='Drupal 8: How to create user with role programatically'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-8115886803010356888</id><published>2016-01-04T23:27:00.003-08:00</published><updated>2016-01-05T04:47:49.641-08:00</updated><title type='text'>MySQL 5.7.7 - Access denied</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
You get the &#39;Access denied&#39; message while login into mysql server after successful installation of&amp;nbsp;MySQL 5.7.X on Centos 7/RHEL.&amp;nbsp;&lt;/h2&gt;
&lt;div&gt;
Here is the solution.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Note: before trying following instruction please do not start mysql service otherwise steps will not work.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;

 
 
 


&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;MySQL 5.7.X
 or higher generates a temporary random password.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Fire the blow
 command from console or refer URL
 https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;shell&amp;gt;
 bin/mysqld --initialize --user=mysql&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;shell&amp;gt;
 bin/mysqld --initialize-insecure --user=mysql&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Password is
 stored in mysql error log file, located at /var/log/mysqld.log&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;use below
 command to see the password: 
 &lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;shell
 &amp;gt; sudo grep &#39;temporary password&#39; /var/log/mysqld.log&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;you will get
 password like &#39;/vHb/aao-6sX&#39;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Try to login
 with above output password.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;And change
 password using below command&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;ALTER
 USER &#39;root&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;#*Admin123456&#39;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Query OK, 0
 rows affected (0.01 sec)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Password
 strength should be good enough otherwise system will not accept it.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Now you can
 start mysql server using below command&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: maroon; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;b&gt;shell
 &amp;gt; sudo systemctl start mysqld.service&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/8115886803010356888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2016/01/mysql-577-access-denied.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8115886803010356888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8115886803010356888'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2016/01/mysql-577-access-denied.html' title='MySQL 5.7.7 - Access denied'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-5921754190107555661</id><published>2015-12-14T04:15:00.000-08:00</published><updated>2015-12-14T04:15:47.082-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal 8"/><title type='text'>Drupal 8: show all errors or enable debug mode </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
To show all errors on Drupal 8 page, do the following steps.&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;add below code into sites/default/settings.php&lt;/li&gt;
&lt;li&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1vCB1WpP-KWe31KhOVHFr7kbP7P_3yjnQI71UdR5TDtETPs9mvuk1i7JJ3WTlcoNtMCpdzdAyUB_SLZEyceHToM6MKIRDHXJdv-nT9b9WIbjA83jUfPcH0cyd9JdpRuzFS_fY1M11DRDd/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; $config[&#39;system.logging&#39;][&#39;error_level&#39;] = &#39;verbose&#39;;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;Clear cache from admin/config/development/performance&lt;/li&gt;
&lt;li&gt;You are done!!!&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/5921754190107555661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2015/12/drupal-8-show-all-errors-or-enable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5921754190107555661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5921754190107555661'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2015/12/drupal-8-show-all-errors-or-enable.html' title='Drupal 8: show all errors or enable debug mode '/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-1834998343125163092</id><published>2015-12-14T01:32:00.001-08:00</published><updated>2016-01-11T02:08:41.267-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal 8"/><title type='text'>Drupal 8: Uninstall or Disable module manually </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Follow below steps in uninstall Broken module from Database&lt;/h2&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Find record &#39;core.extension&#39; in `config` table.&lt;/li&gt;
&lt;li&gt;Remove module name entry from serialize string which is stored in blob field like below example&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1vCB1WpP-KWe31KhOVHFr7kbP7P_3yjnQI71UdR5TDtETPs9mvuk1i7JJ3WTlcoNtMCpdzdAyUB_SLZEyceHToM6MKIRDHXJdv-nT9b9WIbjA83jUfPcH0cyd9JdpRuzFS_fY1M11DRDd/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; $data = unserialize(&#39;a:2:{s:6:&quot;module&quot;;a:52:{s:14:&quot;automated_cron&quot;;i:0;s:10:&quot;basic_auth&quot;;i:0;s:5:&quot;block&quot;;i:0;s:13:&quot;block_content&quot;;i:0;s:10:&quot;breakpoint&quot;;i:0;s:8:&quot;ckeditor&quot;;i:0;s:5:&quot;color&quot;;i:0;s:7:&quot;comment&quot;;i:0;s:6:&quot;config&quot;;i:0;s:7:&quot;contact&quot;;i:0;s:10:&quot;contextual&quot;;i:0;s:8:&quot;datetime&quot;;i:0;s:5:&quot;dblog&quot;;i:0;s:13:&quot;my_module&quot;;i:0;s:13:&quot;doctrine_base&quot;;i:0;s:18:&quot;dynamic_page_cache&quot;;i:0;s:6:&quot;editor&quot;;i:0;s:5:&quot;field&quot;;i:0;s:16:&quot;field_collection&quot;;i:0;s:8:&quot;field_ui&quot;;i:0;s:4:&quot;file&quot;;i:0;s:6:&quot;filter&quot;;i:0;s:3:&quot;hal&quot;;i:0;s:4:&quot;help&quot;;i:0;s:7:&quot;history&quot;;i:0;s:5:&quot;image&quot;;i:0;s:4:&quot;link&quot;;i:0;s:7:&quot;menu_ui&quot;;i:0;s:4:&quot;node&quot;;i:0;s:5:&quot;oauth&quot;;i:0;s:7:&quot;options&quot;;i:0;s:10:&quot;page_cache&quot;;i:0;s:4:&quot;path&quot;;i:0;s:4:&quot;push&quot;;i:0;s:9:&quot;quickedit&quot;;i:0;s:3:&quot;rdf&quot;;i:0;s:4:&quot;rest&quot;;i:0;s:6:&quot;restui&quot;;i:0;s:6:&quot;search&quot;;i:0;s:13:&quot;serialization&quot;;i:0;s:8:&quot;shortcut&quot;;i:0;s:6:&quot;system&quot;;i:0;s:8:&quot;taxonomy&quot;;i:0;s:4:&quot;text&quot;;i:0;s:7:&quot;toolbar&quot;;i:0;s:4:&quot;tour&quot;;i:0;s:6:&quot;update&quot;;i:0;s:4:&quot;user&quot;;i:0;s:8:&quot;views_ui&quot;;i:0;s:17:&quot;menu_link_content&quot;;i:1;s:5:&quot;views&quot;;i:10;s:8:&quot;standard&quot;;i:1000;}s:5:&quot;theme&quot;;a:4:{s:6:&quot;stable&quot;;i:0;s:6:&quot;classy&quot;;i:0;s:6:&quot;bartik&quot;;i:0;s:5:&quot;seven&quot;;i:0;}}&#39;);  
 unset($data[&#39;module&#39;][&#39;my_module&#39;]);  
 echo (serialize($data));  
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Save the table data again.&lt;/li&gt;
&lt;li&gt;Follow the same step into `cache_config` table.&lt;/li&gt;
&lt;li&gt;Remove &lt;b&gt;php&lt;/b&gt; folder from sites/default/files/&lt;/li&gt;
&lt;li&gt;You are done!!!&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/1834998343125163092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2015/12/drupal-8-uninstall-or-disable-module.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/1834998343125163092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/1834998343125163092'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2015/12/drupal-8-uninstall-or-disable-module.html' title='Drupal 8: Uninstall or Disable module manually '/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-8461730404292806120</id><published>2015-04-21T22:20:00.000-07:00</published><updated>2015-12-14T01:35:22.540-08:00</updated><title type='text'>Zend Auth example with extra columun</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1vCB1WpP-KWe31KhOVHFr7kbP7P_3yjnQI71UdR5TDtETPs9mvuk1i7JJ3WTlcoNtMCpdzdAyUB_SLZEyceHToM6MKIRDHXJdv-nT9b9WIbjA83jUfPcH0cyd9JdpRuzFS_fY1M11DRDd/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;  $request = $this-&amp;gt;getRequest();  
       if ($request-&amp;gt;isPost()) {  
         $params = $this-&amp;gt;filterInput($request-&amp;gt;getParams());  
         $db = Zend_Db_Table_Abstract::getDefaultAdapter();  
         $auth = Zend_Auth::getInstance();  
         $authAdapter = new Zend_Auth_Adapter_DbTable($db, &#39;mdl_registration_user&#39;);  
         $authAdapter-&amp;gt;setIdentityColumn(&#39;uname&#39;)  
             -&amp;gt;setCredentialColumn(&#39;password&#39;);  
         $authAdapter-&amp;gt;setIdentity($params[&#39;uname&#39;])  
             -&amp;gt;setCredential(md5($params[&#39;password&#39;]));  
         // extra validation  
         $authAdapter-&amp;gt;getDbSelect()-&amp;gt;where(&#39;countrycode = +&#39;.$params[&#39;country&#39;]);  
         $result = $auth-&amp;gt;authenticate($authAdapter);  
         if ($result-&amp;gt;isValid()) {  
           $user = $authAdapter-&amp;gt;getResultRowObject();  
           $auth-&amp;gt;getStorage()-&amp;gt;write($user);  
           $flash_obj-&amp;gt;addMessage(&#39;You have loged-in successfully&#39;);  
           $this-&amp;gt;_redirect(&#39;index/index&#39;);  
         } else {  
           $this-&amp;gt;view-&amp;gt;messages = &quot;Invalid username or password. Please try again.&quot;;  
           return ;  
         }  
       }  
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/8461730404292806120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2015/04/zend-auth-example-with-extra-columun.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8461730404292806120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/8461730404292806120'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2015/04/zend-auth-example-with-extra-columun.html' title='Zend Auth example with extra columun'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-6689738458888284546</id><published>2012-10-23T08:09:00.006-07:00</published><updated>2012-10-23T08:10:48.765-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><title type='text'>Function to add variable to drupal template</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use following code to add new variables to Drupal template(page.tpl.php,node.tpl.php etc).&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;function dpg_preprocess(&amp;amp;$variables, $hook){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $variables[&#39;newvar&#39;] = &quot;New var&quot;;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;function phptemplate_preprocess_node(&amp;amp;$vars){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $vars[&#39;newvar&#39;] = &quot;New var&quot;;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/6689738458888284546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/10/function-to-add-variable-to-drupal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/6689738458888284546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/6689738458888284546'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/10/function-to-add-variable-to-drupal.html' title='Function to add variable to drupal template'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-1185416493514983516</id><published>2012-09-20T21:37:00.002-07:00</published><updated>2012-09-20T21:37:21.732-07:00</updated><title type='text'>PHP 5.4.0  new features: </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span class=&quot;simpara&quot;&gt;
     &lt;span style=&quot;color: #444444;&quot;&gt;Support for &lt;a class=&quot;link&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=701325986099898171&quot;&gt;traits&lt;/a&gt; has been added.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Short array syntax has been added, e.g. &lt;em&gt;$a = [1, 2, 3, 4];&lt;/em&gt; or
     &lt;em&gt;$a = [&#39;one&#39; =&amp;gt; 1, &#39;two&#39; =&amp;gt; 2, &#39;three&#39; =&amp;gt; 3, &#39;four&#39; =&amp;gt; 4];&lt;/em&gt;.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Function array dereferencing has been added, e.g. &lt;em&gt;foo()[0]&lt;/em&gt;.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     &lt;a class=&quot;link&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=701325986099898171&quot;&gt;Closures&lt;/a&gt; now support &lt;em&gt;$this&lt;/em&gt;.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     &lt;em&gt;&amp;lt;?=&lt;/em&gt; is now always available, regardless of the
     &lt;a class=&quot;link&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=701325986099898171&quot;&gt;short_open_tag&lt;/a&gt; &lt;var class=&quot;filename&quot;&gt;php.ini&lt;/var&gt; option.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Class member access on instantiation has been added,
     e.g. &lt;em&gt;(new Foo)-&amp;gt;bar()&lt;/em&gt;.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     &lt;em&gt;Class::{expr}()&lt;/em&gt; syntax is now supported.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Binary number format has been added, e.g. &lt;em&gt;0b001001101&lt;/em&gt;.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Improved parse error messages and improved incompatible arguments warnings.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li class=&quot;listitem&quot;&gt;
    &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     The session extension can now track the &lt;a class=&quot;link&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=701325986099898171&quot;&gt;upload progress&lt;/a&gt; of files.
    &lt;/span&gt;&lt;/span&gt;
   &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span class=&quot;simpara&quot;&gt;
     Built-in development &lt;a class=&quot;link&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=701325986099898171&quot;&gt;web server in CLI mode&lt;/a&gt;.
    &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/1185416493514983516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/php-540-new-features.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/1185416493514983516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/1185416493514983516'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/php-540-new-features.html' title='PHP 5.4.0  new features: '/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-3486068648911345080</id><published>2012-09-13T21:36:00.003-07:00</published><updated>2012-09-13T21:36:59.402-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal7"/><title type='text'>Add new regions into Drupal theme</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Add the following line into your theme .info file to add new regions.&lt;br /&gt;
To do this go to site-&amp;gt;all-&amp;gt;themes-&amp;gt;your_theme&lt;br /&gt;
open your_theme.info and add regions like this&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;regions[your_region] = Your region description&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now go to page.tpl.php&lt;br /&gt;
and add the following code where you want to add region&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;&amp;lt;?php print render($page[&#39;your_region&#39;]); ?&amp;gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/3486068648911345080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/add-new-regions-into-drupal-theme.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/3486068648911345080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/3486068648911345080'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/add-new-regions-into-drupal-theme.html' title='Add new regions into Drupal theme'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-6997163107197312643</id><published>2012-09-12T23:26:00.000-07:00</published><updated>2012-09-12T23:48:12.300-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Magento: Add Javascript and CSS to Home Page Only</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Magento allow you to modify the layout XML specific to that
 page.  So, all you need to do is :&lt;br /&gt;
&lt;br /&gt;
1. Login into Magento admin&lt;br /&gt;
2. Go to CMS-&amp;gt;static pages&lt;br /&gt;
3. Edit home page&lt;br /&gt;
4. Go to design tab, in Custom design tab, Add the following code into &quot;Custom Layout Update XML&quot; field to add css or javascript file.&lt;br /&gt;
&amp;lt;reference name=&quot;head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;action method=&quot;addItem&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;skin_js&amp;lt;/type&amp;gt;&amp;lt;script&amp;gt;js/home.js&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;action method=&quot;addItem&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;skin_css&amp;lt;/type&amp;gt;&amp;lt;script&amp;gt;css/home.css&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;br /&gt;
&amp;lt;/reference&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/6997163107197312643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/add-javascript-and-css-to-home-page-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/6997163107197312643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/6997163107197312643'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/add-javascript-and-css-to-home-page-only.html' title='Magento: Add Javascript and CSS to Home Page Only'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-7237039209074434665</id><published>2012-09-12T21:47:00.002-07:00</published><updated>2012-09-12T21:47:32.013-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>Insert category product into static page magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To insert category product into static page in magento follow these simple steps.&lt;br /&gt;
1. Create a category from Catalog-&amp;gt;Manage Categories called &quot;Featured Category&quot;.&lt;br /&gt;
2. Set this category as active and set &quot;no&quot; to &quot;Include in Navigation Menu&quot; label.&lt;br /&gt;
3. Go to display settings tab.&lt;br /&gt;
4. Select display mode as static page only.&lt;br /&gt;
5. Create static page from CMS-&amp;gt;static pages&lt;br /&gt;
6. Add the following code into content tab&lt;br /&gt;
&lt;pre&gt;&amp;lt;code&amp;gt;{{block type=&quot;catalog/product_list&quot; category_id=&quot;35&quot; template=&quot;catalog/product/list.phtml&quot;}}
&amp;lt;/code&amp;gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/7237039209074434665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/insert-category-product-into-static.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/7237039209074434665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/7237039209074434665'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/insert-category-product-into-static.html' title='Insert category product into static page magento'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-7882105657337470719</id><published>2012-09-12T21:04:00.000-07:00</published><updated>2012-09-12T21:08:48.324-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>How to change home page contents in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To change home page content in Magento do the following steps.&lt;br /&gt;
1. Loged in admin of magento.&lt;br /&gt;
2. Go to &quot;CMS-&amp;gt;pages&quot; menu.&lt;br /&gt;
3. Edit &quot;Home page&quot; list item.&lt;br /&gt;
&lt;br /&gt;
Now you can edit home page as per requirement.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/7882105657337470719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/7882105657337470719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/7882105657337470719'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/how-to.html' title='How to change home page contents in Magento'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-701325986099898171.post-5706546410223598541</id><published>2012-09-12T21:02:00.000-07:00</published><updated>2012-09-12T21:09:04.796-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><title type='text'>How enable template path hints in magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To enable template path hints in Magento use to following steps.&lt;br /&gt;
1. Go to admin-&amp;gt;System-&amp;gt;configuration.&lt;br /&gt;
2. Select &quot;default store view&quot; from &quot;Current Configuration Scope&quot; dropdown from left side menu.&lt;br /&gt;
3. Click on developer link on left side menu.&lt;br /&gt;
4. Click on debug tab.&lt;br /&gt;
5. Uptick &quot;use website&quot; &amp;nbsp; checkbox and select &quot;Yes&quot; in&amp;nbsp; &quot;Template Path Hints&quot; rundown.&lt;br /&gt;
&lt;br /&gt;
Congrats you have done it.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://php-answers.blogspot.com/feeds/5706546410223598541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://php-answers.blogspot.com/2012/09/how-enable-template-path-hints-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5706546410223598541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/701325986099898171/posts/default/5706546410223598541'/><link rel='alternate' type='text/html' href='http://php-answers.blogspot.com/2012/09/how-enable-template-path-hints-in.html' title='How enable template path hints in magento'/><author><name>gangwal</name><uri>http://www.blogger.com/profile/13634230300021859970</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>