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 | |
namespace Application\Router; | |
/** | |
* Class RestRoute | |
* | |
* Extends \Zend_Controller_Router_Route and handles methods in the router | |
* | |
* @author Chris Smith | |
*/ |
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
<?=('services' == $navigationPage)?'class="active"':;?> |
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
$ VAGRANT_LOG=debug vagrant package --base freebsd-9.2 --vagrantfile freebsd-9.2.box | |
INFO global: Vagrant version: 1.6.3 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant" | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_DETECTED_OS="Linux" | |
INFO global: VAGRANT_INSTALLER_ENV="1" |
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 | |
// This is what the delete method looks like now | |
function delete($id) { | |
$bean = R::load($this->className,$id); | |
R::trash($bean); | |
$this->render($this->className.'/all','deleted'); | |
} | |
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
<input id="qty" type="text" value="" name="qty[]"> | |
<input id="upc" type="text" value="" name="upc[]" disabled> | |
<input id="name" type="text" value="" name="name[]" disabled> | |
<input id="price" type="text" value="" name="price[]" disabled> | |
<input id="extprice" type="text" value="" name="extprice[]" disabled> | |
<br/> |
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 | |
echo phpinfo(); | |
?> |
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
<link rel="stylesheet" href = "<?php echo $this->getThemePath(); ?>/css/jetz_css.css" /> | |
<link href='http://fonts.googleapis.com/css?family=Audiowide' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Alex+Brush' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<div id="header-container"><!-- start main container --> | |
<!-- logo section --> |
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 | |
/* | |
========================================================================= | |
General settings for language and database | |
========================================================================= |
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 | |
$proxy = new SoapClient($host.$path); | |
$session = $proxy->login($user,$pass); | |
try { | |
$order = $proxy->salesOrderInfo($session,$increment_id,array(),'Test Addition',1); | |
try { | |
$shipmentId = $proxy->salesOrderShipmentCreate($session,$increment_id); | |
try { | |
$proxy->salesOrderShipmentAddTrack($session, $shipmentId, $carrier, 'FedEx Ground', $tracking_id); | |
echo 'Tracking created for '.$increment_id.'<br>'; |
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 | |
# Prepare Data to send | |
$params = array( | |
'USER' => trim($this->config->get($classname . '_mid')), | |
'VENDOR' => trim($this->config->get($classname . '_vendor')), | |
'PARTNER' => trim($this->config->get($classname . '_partner')), | |
'PWD' => trim($this->config->get($classname . '_key')), | |
'CREATESECURETOKEN' => 'Y', | |
'TRXTYPE' => $this->config->get($classname . '_mode'), | |
'AMT' => $amount, |