Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2009
    Posts
    156
    Thanks
    47
    Thanked 0 Times in 0 Posts

    Please assist with syntax issue..

    What's wrong with this?

    $tpl->setDir('$_SERVER["DOCUMENT_ROOT"] . "/products/templates/'.$style.'/"');
    Last edited by Daniellez; 03-04-2009 at 11:31 PM.

  • #2
    Regular Coder devinemke's Avatar
    Join Date
    Dec 2004
    Location
    NYC
    Posts
    443
    Thanks
    0
    Thanked 12 Times in 11 Posts
    PHP Code:
    $tpl->setDir($_SERVER['DOCUMENT_ROOT'] . '/products/templates/' $style '/'); 

  • Users who have thanked devinemke for this post:

    Daniellez (03-04-2009)

  • #3
    Regular Coder
    Join Date
    Jan 2009
    Posts
    156
    Thanks
    47
    Thanked 0 Times in 0 Posts
    PHP Code:
    $tpl->setDir($_SERVER["DOCUMENT_ROOT"] . "/eDeliveries/templates/".$style."/"); 
    Yours didn't work for some reason? Nonetheless, the above worked.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •