Fork me on GitHub

What if we already have Smarty?  Bottom

  • (Hope this is the right place to ask this question!)

    I recently put Smarty on my web server, because I've been convinced of its greatness and wanted to start using it to expand a long-lived forum of mine. This has made me wonder, though, if it wouldn't be possible to just link my PN installation to my own version of Smarty, rather than having to have it twice on my server. (Or more, since I haven't figured out that pesky multisites business.)

    Would this be posssible? Or would it be too much work, because of the additions pnRender makes?

    Curiosity has gotten the better of me. :)
  • I'm sure it's possible, but it would be dificult at best.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • I believe pnRender is just a wrapper for Smarty, so you should be able to use Smarty in the includes directory without ever needing to touch pnRender.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • it would probably be easier in the end to go the other way - leave pnRender where it is and point the other application to the pnRender installation. not that I've tried it... just guessing.
  • At a guess (i've not tried this...) you'd only need to change the definition of SMARTY_DIR in pnRender.class.php. The current line reads

    Code

    define('SMARTY_DIR', 'includes/classes/Smarty/');


    -Mark

    --
    Visit My homepage and Zikula themes.
  • Well, I tested this out, and it seems to be working so far! I changed the designation and deleted the Smarty files, and I've been using the site fine since then. Not something to try before Backing Up, of course. :)
  • Cool - I guessed it would but then only about 50% of suggestions I come up with work unless I test them first (to filter out the crap by brain comes up with).... ;)

    -Mark

    --
    Visit My homepage and Zikula themes.

This list is based on users active over the last 60 minutes.