Generate a search url?

Asked

Viewed 171 times

2

I need to get the search url for a specific term on a site built using Codeigniter. But when I type the term, the url changes only to: nomedosite.com.br/busca

I tried to add ?q=arquitetura but it didn’t work.

  • How the action is busca on your controller?

2 answers

3

You mean: Pass parameters via URL? If so, check your configuration file at application/config/config.php if the query strings option is enabled.

$config['enable_query_strings'] = FALSE;

If you are false, you won’t be able to do it.

For more information, follow the link:

https://ellislab.com/codeigniter/user-guide/general/urls.html

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.