Welcome Guest, Not a member yet? Register   Sign In
Problems with a function
#1

[eluser]kripton11235[/eluser]
All right guys? When i try to load the function "cat" of my main controller("welcome") is displayed the following error message:The requested URL /CodeIgniter/welcome/cat/7 was not found on this server. How can i fix this?
Here are the codes of the function "cat" and my view.
function cat: http://pastebin.com/m119d4b61
view: http://pastebin.com/m4da81703
#2

[eluser]Rey Philip Regis[/eluser]
Based from my observation your using clean url's right? My first question to you is, have you configured your CI to use clean url's? Cause if not using http://your_host/CodeIgniter/welcome/cat/7 will not run and will have errors just like what you've posted. If you will not use clean url's you should type this to your address bar so you could run your program http://your_host/CodeIgniter/index.php/welcome/cat/7

Try that and most likely your program will run.
#3

[eluser]kripton11235[/eluser]
Thanks Rey, this is precisely the problem, putting index.php in my url everything works perfectly. Set up .htaccess as follows:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

What more can I do?
#4

[eluser]kripton11235[/eluser]
up




Theme © iAndrew 2016 - Forum software by © MyBB