本文整理汇总了PHP中Orders::pdf方法的典型用法代码示例。如果您正苦于以下问题:PHP Orders::pdf方法的具体用法?PHP Orders::pdf怎么用?PHP Orders::pdf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Orders
的用法示例。
在下文中一共展示了Orders::pdf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printAction
/**
* printAction
* Create a pdf order document
* @return void
*/
public function printAction()
{
$NS = new Zend_Session_Namespace('Default');
$request = Zend_Controller_Front::getInstance()->getRequest();
try {
if (is_numeric($request->id)) {
if (Orders::isOwner($request->id, $NS->customer['customer_id'])) {
Orders::pdf($request->id, true);
}
}
} catch (Exception $e) {
die($e->getMessage());
}
die;
}
示例2: dropboxitAction
/**
* Upload an order to the dropbox account
*
* @return void
*/
public function dropboxitAction()
{
$request = $this->getRequest();
if (is_numeric($request->id)) {
$sent = Orders::pdf($request->id, false, true);
if ($sent) {
$this->_helper->redirector('edit', 'orders', 'admin', array('id' => $request->id, 'mex' => $this->translator->translate('The order has been uploaded to dropbox.'), 'status' => 'success'));
} else {
$this->_helper->redirector('edit', 'orders', 'admin', array('id' => $request->id, 'mex' => $this->translator->translate('There was a problem during the process.'), 'status' => 'danger'));
}
}
}