Recent Topics

Have b2evosettings have good names or be in an array

Started by on Jul 12, 2006 – Contents updated: Jul 12, 2006

Jul 12, 2006 06:24    

Just discovered that for searching b2evo uses the variable name 's'.

GRRRR, I spent around 15 minutes trying to find out why their was a number in the search box the whole time.

When its because i commonly use;
$s = sizeof($my_array);
for ( ....

Now, heres my proposals;

A) Give them a decent names, like $b2evo_search instead of $s
or
B) Stick all b2evo variables into a class, so $Settings->search
or
C) Stick all b2evo variables into a array, so $b2evo['search'].

Please do something about this!

Jul 12, 2006 06:27

I'm not a very good programmer, but it sounds good to me!


Form is loading...

Social CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.