Quick Syntax Question / PHP Include and Smarty

Discussion in 'Integration' started by oceandev09, Jan 25, 2008.

  1. oceandev09

    oceandev09 New Member

    Joined:
    Jan 25, 2008
    Messages:
    1
    I am embedding Amember and the Popular Menalto Gallery v2, they both run on smarty I am integrating both to work as a photo gallery subscription service.

    I have quick question regarding Syntax I am new to smarty I have the include syntax down to work but how can I get the following syntax to work with smarty.


    PHP:

    <?
    $_product_id = array(1);

    include("check.inc.php"); ?> 

    Below What I have so far but I know the first part is not working, can anyone help. The include check.inc is working because I get the following error "Product ID is not defined in called script! Died." I just cant seem to get the "$_product_id = array(1);" part to work

    Code:
    
      {php}
                 
         $this->assign('$_product_id','1');
                 
        include('check.inc.php');
    
       {/php}
    
    


    Thank You
  2. vampyre

    vampyre New Member

    Joined:
    Jul 25, 2008
    Messages:
    5
    Has anyone managed to get this going at all, please?:rolleyes:
  3. zenpig66

    zenpig66 aMember Pro Customer

    Joined:
    Jan 1, 2009
    Messages:
    72
    If you're looking for a gallery2 plugin check with the helpdesk...I know they have one available and I toyed with it in the trial version.

Share This Page