Ok, I am ok at programming, am good at UI. but class!?! blargh!
I have one class, it has about 40 functions in it and is 3000 lines long. Now its becoming a pain in the arse to upload everytime I make a small change.
My question is simple how do add more functions inside a class that already exists? i.e.:
class.php = main function library, leave online
more_functions.php = small, test file that I upload frequently
----class.php
class project_land {
function eat_pies () {
echo "eat pies";
}
}
include("more_functions.php");
$project = new project_land;
----more_functions.php
add_to class project_land {
function eat_cake () {
echo "eat cake";
}
}
thanks guys really appreciated
Paolo