Welcome Guest, Not a member yet? Register   Sign In
url haendling for a cms
#11

[eluser]Davcon[/eluser]
Well, let me tell you my vibe...

I've been a professional web developer since 1995. I was pretty much doing web development before they had a name for it! I'm not a computing geek or an academic. I left uni with a degree in philosophy. Most of what I know is self taught and I'm a very slow learner. It took me four days just to get 'hello world' working when I first got into PHP. This stuff does not come to me easily at all.

I can also tell you that I haven't had a holiday in over four years. I often work fifteen plus hours a day. The amount of hours I do and the amount of stress in my life would probably kill some people. Lately I've been averaging at about two or three hours sleep a night. It's got to the stage where people who know me are starting to worry about my health and if I'm honest, I can see that certain things are starting to break down as far as that side of things goes. The reason I have to do so much work is not because I love PHP but basically to pay some very heavy bills that I owe the tax man. This is what I do for a living and right now it's my main source of income.

In the past I've tried outsourcing web development work and even employing a web developer. But for one reason or another, it never worked out. To me, this whole frameworks/Code Igniter gig really represents a genuine opportunity for me to get much more work done in less time. I can't begin to tell you what that would mean to me. Even a 20% reduction of my work load would really increase the quality of my life more than I can begin to tell you.

So, that's why I'm so grateful and so glad to be here. Good people like yourself who come here and help people for free should be rewarded. I have a bunch of websites which enjoy very high rankings on Google for red hot keyphrases (e.g., page one for 'web development'). Give me your target keyphrase and a URL. I'd like to give you a link for a few months and give your site a little boost. It's the least I can do.
#12

[eluser]SitesByJoe[/eluser]
I'm surely a similar story. Really briefly, been doing web stuff since 98-99, since 2000 professionally. I was never a programmer and hated computers to be truthful. I liked surfing and skateboarding. I never even went to college.

I had a dream of a web application and learned Classic ASP/MS Access to build it. Yes, sloppy coding to the utmost imaginable form. The software is still used by real estate agencies in my area.

I reached the point (2004-05) where trying to do what I wanted with ASP really sucked. REALLY SUCKED...

I never used PHP/MySQL/Apache/Unix when I started CodeIgniter way back. I used it as a cheat to learn PHP/MySQL without having to actually LEARN it. I don't even know if I know it yet, but I've learned a bunch along the way for sure!

I can't answer really complex questions, or those aimed at Computer Science folks, but basic CodeIgniter stuff is my world.

Glad to help if I can.

If you feel inclined to give me a link, then "Sweet"! URL is http://sitesbyjoe.com and a link phrase could be, "South Jersey Web Design" or more recently, "South East Massachusetts Web Design".

Thanks!
#13

[eluser]Buso[/eluser]
@Ludwig

If you wanna digg deeper you could start playing with Router.php

What I have done for my own CMS is extend Router with MY_Router, and add (among other things) the Blog controller as a fallback, instead of showing a 404 when the controller is not found. Then in that controller, I check the url against de DB (I'm using DB routes for blog articles and pages created from the backend by the admin or the moderator, not sure if that's your case) and see if there is a page or article for that. If so, display it. Otherwise, show the 404.

It took me some time to come to this solution, not sure if it's the best but I really like it.
#14

[eluser]Steve Wanless[/eluser]
@Buso,

I just posted a topic with the same problem you had and I thought extending Router.php might be a possible solution. Then happened to come across this post.

http://ellislab.com/forums/viewthread/172611/

Would you be willing to share your code, or some more direction on how you did this??
#15

[eluser]amosmos[/eluser]
+1 for requesting to see how you extended the router class...
#16

[eluser]amosmos[/eluser]
Great news!

CI2 now support $route[‘404_override’] in order to specify a controller\method that will be called when no existing controller\method is found.

Make sure to specify both the controller and the method, as the ‘index’ method will not be called automatically.

thanks,
amos




Theme © iAndrew 2016 - Forum software by © MyBB