Forked from Chris Coyier's Pen BdhbD.
A Pen by Captain Anonymous on CodePen.
Forked from Chris Coyier's Pen BdhbD.
A Pen by Captain Anonymous on CodePen.
<?php | |
/** @var $collection Mage_Catalog_Model_Resource_Category_Collection */ | |
$collection = Mage::getModel('catalog/category', array('disable_flat' => true))->getCollection(); | |
// ... custom stuff |
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
$view = new view(); | |
$view->name = 'what_it_is'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'What it is'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
# Delete option rows pointing to non-existent attributes | |
DELETE `option` | |
FROM `eav_attribute_option` AS `option` | |
LEFT JOIN `eav_attribute` | |
ON `eav_attribute`.`attribute_id` = `option`.`attribute_id` | |
WHERE `eav_attribute`.`attribute_id` IS NULL; | |
# Delete product attribute int rows pointing to non-existent attributes | |
DELETE `entity_int` | |
FROM `catalog_product_entity_int` AS `entity_int` |
//Controller Action | |
public function find() { | |
if ($this->request->is('ajax')) { | |
$this->autoRender = false; | |
$country_name = $this->request->query('term'); | |
$results = $this->Country->find('all', array( | |
'conditions' => array('Country.name LIKE ' => '%' . $country_name . '%') |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-git2.js"></script> | |
<script src="http://www2.mattisbusy.com/bower_components/jquery/dist/jquery.min.js"></script> | |
<script src="http://www2.mattisbusy.com/bower_components/bootstrap/dist/js/bootstrap.min.js"></script> | |
<script src="http://www2.mattisbusy.com/bower_components/todc-bootstrap/dist/js/bootstrap.min.js"></script> | |
<link href="http://www2.mattisbusy.com/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |
Plan for integrating WP API into core
This document describes the process of integrating the WordPress JSON REST API ("API project") into the WordPress core codebase ("core").
Accessing data remotely is a common goal for many WordPress users and developers. The ability to access and update data remotely is used by desktop publishing software, mobile applications, and in-browser applications. These
<?php | |
/** | |
* Template Name: Discourse SSO | |
* Author: Adam Capriola | |
* Version: 1.1 | |
* Author URI: https://meta.discourse.org/users/AdamCapriola/activity | |
* Adapted From: https://github.com/ArmedGuy/discourse_sso_php | |
* Uses: https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045 | |
* | |
*/ |