Welcome Guest, Not a member yet? Register   Sign In
Central usage of CI
#1

[eluser]donkey_[/eluser]
Hi I'm new to the great Codeigniter PHP Framework , and my question is about the usage ... curently I'm planning a startup project ... and I want to realise this PHP Application with the CI Framework so I'm asking is it possible to use the codeigniter framework central.



Because i want to use subdomains ... and don't know if that works

for e.g: http://<username>.domain.tld ... should show the Profile overview so it redirects to http://<username>.domain.tld/index.php/<username> ... how i can realise that ?


I'm sorry when this question is boring or lame


Best regards donkey_
#2

[eluser]Derek Allard[/eluser]
You'll need some type of url re-writing, probably htaccess. It isn't a CI question so much as a server config question. I don't know enough about htaccess to guide you much beyond here, but I'd advise you to chat with your host about this.

For the actual application part, it sounds like a standard db task that CI could handle, but without more details its hard to be sure.

Good luck, and welcome to CodeIgniter.
#3

[eluser]donkey_[/eluser]
Wow ... one of the big CodeIgniters ... answers me :p


Well thanks for your advie and support ... I think I have then to learn mod_rewrite ( *ierks*) ...


But thank you Mister Allard


Best regards donkey_
#4

[eluser]Derek Allard[/eluser]
As I got started I got a lot of help from some really smart people. I still learn more every day. We all support each other here, I'm sure you'll do the same for someone else someday.
#5

[eluser]donkey_[/eluser]
yeah hope so ... but now I'm thinking i'll get a problem I think my explanation of my problem was false so .... I'll have to re-explain it to you


afaik ( as far as i know ): the codeigniter URL Structure... is


domain.tld/CLASS/FUNCTION/VARIABLE


am I right there?


but now i've got that problem ... i DON'T want to create for each <username> ( as i used i my e.g before ) ... a class ... so how can i resolve that problem!


Best regards donkey_

{ Obama wins! Big Grin }
#6

[eluser]jadebot[/eluser]
Hey, I just realized we asked the same question: http://ellislab.com/forums/viewthread/95977/
I am eagerly awaiting some help on this manner! I also considered using subdomains, but I would really rather not as it seems to be more of a pain.

I'm sure there must be a way to do this, and I will figure it out sooner or later, but its always good to get a little nudge from the gurus!
#7

[eluser]Derek Allard[/eluser]
[quote author="donkey_" date="1225862711"]am I right there?[/quote]
Yes.
Quote:but now i've got that problem ... i DON'T want to create for each <username> ( as i used i my e.g before ) ... a class ... so how can i resolve that problem!
routing will help, but you'll still need some form of url rewriting - without it you're constrained by the technical limits of domains, which would mean that each subdomain would technically be its own installation... not something you want. Again, I strongly encourage you to talk to your host about this.
#8

[eluser]donkey_[/eluser]
Okay , that's a possibilty .. but there's another one which i don't prefer ... i duplicate everytime the codeigniter framework ... but that's the bad one possibilty ...


But thanks @all who helped me

Best regards donkey_

{ Obama did it }
#9

[eluser]jadebot[/eluser]
Hey, check out my rough solution to this problem. It's in this thread: http://ellislab.com/forums/viewthread/95977/

Hopefully it works for you, or we can test it to get it up to your liking.
I am having doubts about the file rewriting though ...




Theme © iAndrew 2016 - Forum software by © MyBB