Welcome Guest, Not a member yet? Register   Sign In
To switch() or not...
#1

[eluser]d3[/eluser]
I'm self taught... so I've gotten used to doing things my own way which might be good or bad. In anycase I usually code entire sites into one file and use switches to filter through the site to take the user to what ever section he/she is looking for.

Now over to CI. This is a different ride, but its good but my way of keeping things "tight" I doubt will make it into my net revision the way it looks. I posted the other day about my over complexification of my view and not following the MVC.

So yes, seems that after I'm done with the "index" and then have to code into the next section, being something like writing a message and then another to actually send the thing. Don't get me wrong, having 100 pages to a site is probably easier to locate a problem since any one page is able to be singled out for having a particular issue. right?

I'm pretty sure I just answered my own question, but maybe I'm pouring over CI a tad too much or perhaps i'm missing some key information.

Thanks for the time yet again.

d3.
#2

[eluser]Colin Williams[/eluser]
Since you already answered your own question, I'm gonna raise a fuss about people having the same exact avatars. I think I've seen 4 guys with the Spongebob salute avatar and maybe 3 with the faux-colored eyeball thing. Makes it impossible to keep track of who's who.

But, to your point, in CI, actions are mapped to the URI with the prototype controller/function/id. So if I have a blog controller, i have blog/add, blog/edit, blog/delete, etc, etc. With this convention, you eliminate any custom switching. Sometimes you have to go against the convention though (like when using _remap() functions). In this case, whatever is necessary is fine. Don't limit yourself.
#3

[eluser]d3[/eluser]
the forum only has a handfull of pre-installed av's... and work is super busy, you better tell the other 3 ppl to change theirs. Wink
#4

[eluser]Colin Williams[/eluser]
Ah... that makes sense. I guess I never saw those. Smile
#5

[eluser]cahva[/eluser]
Speaking of avatars(this is going offtopic but hey its friday Wink ) my avatar doesnt work in Playstation 3 browser :cheese: Everyone elses avatars show up fine but mine does not. Its a normal(or is it) gif pic uploaded from control panel.
#6

[eluser]jalalski[/eluser]
You're browsing the forums on a PlayStation 3???

I'm impressed... 8^)
#7

[eluser]GSV Sleeper Service[/eluser]
[quote author="d3" date="1234508387"]I usually code entire sites into one file[/quote]
Code:
Parse error: syntax error, unexpected T_VARIABLE on line 9,998,765,345
#8

[eluser]Tom Schlick[/eluser]
[quote author="cahva" date="1234562765"]Speaking of avatars(this is going offtopic but hey its friday Wink ) my avatar doesnt work in Playstation 3 browser :cheese: Everyone elses avatars show up fine but mine does not. Its a normal(or is it) gif pic uploaded from control panel.[/quote]

haha i guess ps3 wasnt on the list for major browsers to test with... does anyone know what the PS3 browser uses to render? im guessing it isnt gecko or webkit...




Theme © iAndrew 2016 - Forum software by © MyBB