tallberg Posted May 4, 2007 Share Posted May 4, 2007 Hi trying to use files with the .class extention. example HtmlTemplate.class Im using phpDesigner and i dont seem to be able to create one although i can open one. Ive also tryed in note pad with no success. Does anyone know what the deal is. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/50032-class-files/ Share on other sites More sharing options...
Rottingham Posted May 4, 2007 Share Posted May 4, 2007 Simply save the file as myclass.class.php I have several class library files that end in .class.php but not php.class. If you are using an IDE than I am unable to help. All of my coding is manual by test. I do however like the naming convention class.php to diffirentiate library files. Link to comment https://forums.phpfreaks.com/topic/50032-class-files/#findComment-245651 Share on other sites More sharing options...
eddedwards Posted May 4, 2007 Share Posted May 4, 2007 If you are using apache and can add .class as a file-type in the configuration files. but it would be easier to use Rottinghams solution, although i do mine slightly different: class.myclass.php This is just so when i have lots in a folder and sort them alphabeticly all the class.something.php's are next to each other and all my function.somefunk.php's are together etc... Link to comment https://forums.phpfreaks.com/topic/50032-class-files/#findComment-245666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.