I've looked all over and ive not found a good answer, is there a way you can take your functions and make them in seprate files and call them to the class? it seems no one has tried this or i am ooking in the wrong place
daniel.conlinjr.1
0
Light Poster
Recommended Answers
Jump to PostYou want to put parts of a class in a separate file? Yes, that's possible (using
include
), but I don't recommend it (bad design). Better yet, give a code example explaining what part you want to move to a separate file.
Jump to Postyes you do that using include function of php put what you want in your file and include that file in appropriate location or another file for reference look at this sites
http://php.net/manual/en/function.include.php
…
All 7 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
daniel.conlinjr.1
0
Light Poster
AARTI SHRIVAS
2
Posting Pro in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
diafol
daniel.conlinjr.1
0
Light Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.