Welcome Guest, Not a member yet? Register   Sign In
How to remove part of the URL segment?

Hi, I would like to ask you how could I remove part of my url which look like this:


so it look like this:


I am making queries not by id but by alias, which is a value that I save with others when creating article to the database.

show_full_article is a function in my articles controller.

I need to somehow make this fonction not to appear in my url.

Could it be done using routes.php?

I am using this for getting/calling this function:

for example
<?php echo anchor('articles/show_full_article/'.$obj->alias, 'Read more'); ?>:

Thanks for any advice.

Theme © iAndrew 2016 - Forum software by © MyBB