(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. :)
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
What if we already have Smarty?
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
I'm sure it's possible, but it would be dificult at best.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
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. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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 readsCode
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 379
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. :) -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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.
- Moderated by:
- Support
