Advertisement
sambacar

Untitled

Jan 15th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Filip\Zadatak\Controller\PageReader;
  4.  
  5. class PageReader extends \Magento\Framework\App\Action\Action
  6. {
  7.  
  8.     protected $UcitajPodatke;
  9.  
  10.     public function __construct(
  11.         \Filip\UcitajPodatke2 $UcitajPodatke
  12.     ){
  13.         $this->UcitajPodatke = $UcitajPodatke;
  14.     }
  15.  
  16.     public function execute()
  17.     {
  18.         $filename = 'test.xml';
  19.         $parsedXml = $this->UcitajPodatke->executeXml($filename);
  20.         $this->getResponse()->setBody($parsedXml);
  21.         return;
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement