using amember smarty template engine for whole web solution

Discussion in 'Integration' started by hotdot, Aug 7, 2006.

  1. hotdot

    hotdot New Member

    Joined:
    Aug 7, 2006
    Messages:
    1
    Hi, is there a way to invoke safely the amembers smarty engine from outside the amember folder, or we have to use a second external smarty engine ?

    if it is possible can you paste the code needed to create the Smarty object ?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Something like that:

    <?php
    require_once('../amember/config.inc.php');
    $t = new_smarty();
    $t->templates_dir = "your templates dir";

    ?>

Share This Page