CodeIgniter controller not interpreting hyphen correctly in function call?

"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!

There is absolutely nothing wrong with using the controller name: not sure where it came about that it is a bad practice.

Something I heard on NetTuts. – shummel7845 Jun 6 at 22:17 Ah. Quite odd.

Routes are supposed to be used to pretty up your urls if you want to do stuff in ways your controller is not already hooked up for. But mandating that you MUST use routes and must not use controller methods really defeats the convention over configuration principle. – Femi Jun 6 at 23:39.

My controller is trying to call uri segments and is not interpreting the hyphen correctly. I don't get any error. Just the rest of the page beyond the call doesn't render.

This is for a CMS and I have created an edit_market function in my markets controller. I want to be able to call the page content for a page, which is referenced in the database by the page navigation name, which is sometimes hyphenated (consumer-goods, for example). This works fine for all links that don't have a hyphen, but fails when the link has a hyphen.

What is causing this? The only way I can edit these pages right now is by using edit_market in my URI rather than being able to create a route that has "edit-market" in it. I believe if I remember right that accessing controllers directly was a bad practice.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions