title: CS Cart & Smarty Class get external code
body: <p>I'd like to add a external file to the CS Cart.</p>
  
  <p>In the admin view I have a link:</p>
  
  <pre><code>{include file="buttons/button_popup.tpl" but_text=Check but_href="orders.check?order_id=`$order_info.order_id`" but_role="tool"}
  </code></pre>
  
  <p>For this in the orders.php file I added a function:</p>
  
  <pre><code>} elseif ($mode == 'check') {
      if (!empty($_REQUEST['order_id'])) {
      $order_info = fn_get_order_info($_REQUEST['order_id']);
          if (empty($order_info)) {
              return array(CONTROLLER_STATUS_NO_PAGE);
          }
  
      $view_mail-&gt;assign('order_info', $order_info);
  
          $view_mail-&gt;display('orders/check.php');
  
          exit;
  
      }
  </code></pre>
  
  <p>So with this code I'm trying to access a php file that is located in the orders folder.. it doesn't matter, it could be located in the root folder too.</p>
  
  <p>I want my external script to work with Smarty Class, I'd like to get oder_id in my code in order to work with it in my code.</p>
  
  <p>I was working fine, but after my client changed the design (skin) it's breaking down.</p>
  
  <p>in the pup-up window I'm getting this error:</p>
  
  <pre><code>Warning: Smarty error: unable to read resource: "orders/check.php" in D:\Server\xampp\htdocs\tele\lib\templater\Smarty.class.php on line 1095
  </code></pre>