Zen Cart Logo
Forums / General Questions / help:zen cart code - what do "zen_" functions mean/do?

help:zen cart code - what do "zen_" functions mean/do?

Locked

Views: 711

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jun 2009, 4:32 AM
#1
dreamwheel avatar

dreamwheel

New Zenner

Join Date:
Feb 2009
Posts:
16
Plugin Contributions:
0

help:zen cart code - what do "zen_" functions mean/do?

I cant understand the codes which begin with "zen_", such as zen_draw_form.
I was wonderig where I can find the explanations.

Thank you in advance!!!

16 Jun 2009, 6:13 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: help:zen cart code - what do "zen_" functions mean/do?

Zen_ functions are ones created especially by the Zen Cart developers. Sometimes they mimic a standard PHP function with perhaps a custom twist, and sometimes they do something that no other PHP function has ever done.

There is no complete set of explanations in one place for zen_ functions; if you want to know what one does, you will have to look at its name and context, and perhaps read its code/file for more info.

16 Jun 2009, 6:19 PM
#3
svakanda avatar

svakanda

New Zenner

Join Date:
Apr 2008
Location:
Missoula, MT
Posts:
58
Plugin Contributions:
0

Re: help:zen cart code - what do "zen_" functions mean/do?

dreamwheel a great way to find their "source" and hence what they do quickly is to use grep.

if you have a linux shell, from your site root, you can do a

grep -Ri 'function.*zen_draw_form' *

that will show you exactly which file the function called zen_draw_form is defined in, and hence what it does.

if you are using windows, you can go download a cool little program called wingrep that has a GUI interface to do the same thing.