PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
well, that's my problem. i'm trying to use the URL to do the main switch statement and then i have another doing another within that main switch. here is what i'm doing:
switch ('op')
{
case 'index':
break;
case 'adminPlugin': // remember this was explained up top :thumbup:
switch($adminPlugin)
{
case 'forums'
echo 'omg it worked!';
break;
}
break;
default:
// oh noes. you suck
}
so basically i'm stumped. i can do that second switch outside but what's the point? i don't think there is a good point to that. what do you think?
you can close this thread. i decided i know what i'm going to do. i'm not a fan but it works so i guess i'll quit bitchin. it's not as cool as i would like but whatever works works and i'm happy with that
less parsing as well so i guess i should stop complaining
MrPotatoes wrote:haha, ok. it's pusedo code. i already am doing that. i did that so you can read it better
Please let us know it is pseudo code then.
MrPotatoes wrote:you can close this thread. i decided i know what i'm going to do. i'm not a fan but it works so i guess i'll quit bitchin. it's not as cool as i would like but whatever works works and i'm happy with that
less parsing as well so i guess i should stop complaining
Well what did you decide to do? I don't think you were "bitching".. were here to help
now, not thinking ahead of time that means that i've got to do the same to the other one. so i'm going to have to define one more URL param for this controller to work with and i'm good. i guess i've had to develop subcontrollers sooner than i thought. i knew i would have to but oh well. what can you do eh?