View Single Post
  #4  
Old 03-10-2011, 01:39 PM
 
Kamran Khan Kamran Khan is offline
 

Newbie
  
Join Date: Mar 2011
Posts: 3
 

Default Re: where can I add my own functions?

Hey guys, thank you so much for your replies!

I don't want to do an entire integration (there is no way I would be able to anyway considering how much I'm hating even having to do this right now!)

I know I can just hard-code my wordpress header into x-cart but because of all the time I have spent trying to do this I really don't want to give up at this point.

Here is a simple question if you guys can help me figure out.

Imagine if I just have a separate php file, say wordpress.php inside my x-cart directory and have all my codes and functions in there, plus have everything stored inside variables, how will I be able to assign them to be used inside the smarty template engine?

Imagine if I have a php file with this code:
Code:
$content = 'lorem ipsum'; smarty->assign('content', $content);

how will I be able to use this within the template?

I already tried but failed (the template won't recognise anything) and would appreciate any kind of help from the geniuses who know their way around x-cart (this is my first time)
__________________
4.2.4 pro
Reply With Quote