I am pretty new to codeigniter. I do know php.

How can I accomplish to load the right view?

My url: /blog/this-is-my-title

I’ve told the controller something like

if end($this->uri->segment\_array()) does exist in DB then load this data into some view.

I am getting an 404-error everytime I access /blog/whatever

What am i seeing wrong?