melting_dog Posted October 28, 2011 Share Posted October 28, 2011 OK so sorry if my understandings a bit off, but if a I want to introduce a class into my doc is the best way to fo this with the include() function? Quote Link to comment Share on other sites More sharing options...
trq Posted October 28, 2011 Share Posted October 28, 2011 include[/m] is used to include code into other code. I assume that is what your talking about. Quote Link to comment Share on other sites More sharing options...
melting_dog Posted October 29, 2011 Author Share Posted October 29, 2011 Hmm it kind of is - Say if I had an SQL query that returned a set of results that I would use across my site over and over again. I imagine that it would be better practice to have that query on its own file and to 'call' that file (via include?) whenever you need it. I just want to confirm that this is the best practice to do this Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.