GluedToTheScreen Posted July 11, 2003 Share Posted July 11, 2003 I'm almost done with some heavy customization of the catalog side of osC to meet unique business requirements ... and now implementing some "back office" mods to the admin side of things. I'm running into some confusion, though. I can see why having different directories for actual pages and public vs. private perspectives of the site is a good thing... but there are a number of files that, in my opinion, should be shared. For example, most of the functions, modules, and classes. I can easily figure out a way to accommodate my needs, but am wondering WHY it is set up this way in the first place. Seems like duplication... and a chance to step on yourself (as I have done) when one is modded. Why isn't there at least a SHARED section for common files? There must be a reason that I can't see (wouldn't be the first time). On the whole, however, I must say that osCommerce delivers quite good design and coding... and has performed as advertised in almost all cases (though I have had to tweak a few areas and contributions). I've had very few problems that weren't self-inflicted. Congratulations to all the developers. When I am done with this project and have a little extra time, I hope to carve out some areas and give back to the community. Again, thanks to all. Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2003 Share Posted July 11, 2003 Hi GluedToTheScreen, I believe one of the main reasons was to have the admin part seperated from the catalog. As you might have seen, you get two seperate folders one for the catalog and one for the admin during installation process. I suppose most people copy the admin into the catalog and .htaccess the admin area, but there is no need to. You could put admin area anywhere you want as long as you can access the db from both places. Correct me if I'm wrong :wink: Regards Matt Link to comment Share on other sites More sharing options...
Daemonj Posted July 11, 2003 Share Posted July 11, 2003 Even though the filenames and names of functions within those files are similar, their operations are very different depending upon whether you are in the catalog or admin side. Let's look at the order class as an example. In the catalog version, there are functions to add, modify, and remove items from the class as would be expected. These functions are not necessary on the admin side and are therefore not present within that file. If you look at the workboard, the admin and catalog sections are scheduled to be merged soon which will alleviate this duplication. I hope that the above makes some sense. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.