Welcome Guest, Not a member yet? Register   Sign In
Building frontend + backend : best practices ?
#7

[eluser]JoostV[/eluser]
I'm with Bramme on this one. I like front end and back end to share models and libraries. Some methods you will only use in back end, such as delete(). But many methods will be shared. Sharing models and libraries helps you to write less redundant or repetitive code.

Of course, it is still possible to create a backend_config.php and a frontend_config.php, and even seprate helper files if you need to.

Furthermore I would remove /system and /applications from you webroot, for security. This would leave you with:

-applications [folder]
-system [folder]
-webroot [folder]
-index.php
-.htaccess
-robots.txt
-skins [folder]


Messages In This Thread
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:23 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:01 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:03 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:41 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:48 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 12:15 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 01:06 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:19 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:32 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 04:34 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 06:11 PM
Building frontend + backend : best practices ? - by El Forum - 10-19-2008, 03:21 AM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 04:47 PM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 05:06 PM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 05:09 PM
Building frontend + backend : best practices ? - by El Forum - 11-30-2008, 12:20 PM
Building frontend + backend : best practices ? - by El Forum - 11-30-2008, 06:19 PM
Building frontend + backend : best practices ? - by El Forum - 03-18-2009, 06:47 PM
Building frontend + backend : best practices ? - by El Forum - 05-03-2009, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB