Need a quick suggestion...

Status
Not open for further replies.

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
Hi.

If you have me as a friend on Facebook, you may have noticed I'm developing my colleges website. It's a social network built just for students and teachers in my college.

Anyway, I've more-or-less finished the front-end development, now I'm doing the back-end (Admin CP). Only me and teachers will be able to access it. The rest of the forms on the site have jQuery so the pages don't reload. Is it worth going to the effort of using jQuery for the Admin CP or should I just use bog standard forms?

Also, how should I code the structure of pages? Should I have them like this:

Code:
http://www.link-to-site.com/admincp/edituser.php?user=1

...or...

Code:
http://www.link-to-site.com/admincp/index.php?mode=edituser&user=1

So basically, I want to know if it's worth using jQuery in the Admin CP, and whether I should code one huge-ass index.php file or use separate files?

Thanks,
Mark
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
I wouldn't bother doing the jQuery initially, as it's only the back end. However, if you get the time in the future, you could always add it.

As for the URL structure, I believe that everything should always go through the index page, so I'd obviously suggest the second option. You could even use mod_rewrite to make the URL's look pretty if you wanted.
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
Right, so I won't bother with the jQuery then. Thanks.

- So you're saying I should make separate files?
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
Right, so I won't bother with the jQuery then. Thanks.

- So you're saying I should make separate files?
I'm saying that everything should go through index.php (i.e. index.php?page=edit, index.php?page=login, etc), instead of having a separate page for everything (i.e. edit.php, login.php, etc). That way it's a lot easier to have a centralized template system, among other things.
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
Ahh right I understand. So no jQuery and a singluar index page. Sorted.

Thanks, thread closed.
 
Status
Not open for further replies.

Users who are viewing this thread

Top