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? Link to comment https://forums.phpfreaks.com/topic/249957-noob-question-best-way-to-add-a-class-to-a-doc/ 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. Link to comment https://forums.phpfreaks.com/topic/249957-noob-question-best-way-to-add-a-class-to-a-doc/#findComment-1282929 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! Link to comment https://forums.phpfreaks.com/topic/249957-noob-question-best-way-to-add-a-class-to-a-doc/#findComment-1283186 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.