Support Forum

sf-common routines

MP Mr Papa
Mr Papa
Member

before I get to moving some admin/front end common stuff into sf-common.php, I thought it best to establish a standard naming convention.

Currently, there is one routine in the common routine and it starts with sfa.  This is probably not the best naming convention.

Currently, we have sf for front end and sfa for back end.

I would suggest that the common routines either start with sfc or sf.  I guess I would choose sfc just because it will be a good indication of exactly where the routine is located if you are reading the code.

Thoughts?

2 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Good point. I'd make it sfc_ like you suggest.

MP Mr Papa
Mr Papa
Member

okay – will do so…

also, when you created the first sfc routine, permalink, you left an almost duplicate routine (and its calller) in the ahah toolbox routine.  Was that by design?  Or can I remove the toolbox one?