Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

php include statement equivalent

Hi

Do we have something like php include statement where I can put common functions in a single file and include it in other files?

Thanks!

— asked March 31st 2010 by Peter Lum
  • functions
  • include
  • php
0 Comments

2 Answers

  • Accepted Answer

    Hey Peter,

    Yep, something like this should be what you're after:

    Ti.include('file_with_javascript.js');
    
    — answered March 31st 2010 by Dan Giulvezan
    permalink
    0 Comments
  • Thanks! Works right.

    — answered March 31st 2010 by Peter Lum
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.