Advertisement
Guest User

Untitled

a guest
Mar 28th, 2014
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. public function addtoStock() {
  2.         if ($this->request->isAjax ()) {
  3.             $form = $this->addToStockForm ();
  4.  
  5.             $content = $this->renderWith ( 'ProdForm', array (
  6.                 'Form' => $form
  7.             ) );
  8.             echo "<pre>";
  9.                 print_r($content);
  10.             echo "</pre>";
  11.             return json_encode ( array (
  12.                 'title' => _t ( 'Product.ADDPRODUCT', 'Produkt hinzufügen' ),
  13.                 'content' => $content
  14.             ) );
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement