Jump to content

class files


tallberg

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.