Hi,
Looking at :- http://ellislab.com/codeigniter/user-guide/ - I see controllers, models, views. helpers etc..
But nothing about METHODS .
I’ve done a debug of my scripts & THINK I found a problem as to why CI doesn’t work on my WIN XP box.
C:\usr\local\lib\codeigniter\current\system\codeigniter\CodeIgniter.php
echo "if ( ! class_exists($class)
OR $method == 'controller'
OR strncmp($method, '_', 1) == 0
OR in_array(strtolower($method), array_map('strtolower', get_class_methods('Controller')))
\n";
echo "<b>
if ( ! class_exists(".$class.")
OR ".$method." == 'controller'
OR strncmp(".$method.", '_', 1) == 0
OR in_array(strtolower(".$method."), array_map('strtolower', get_class_methods('Controller')))</b>
\n";
if ( ! class_exists($class)
OR $method == 'controller'
OR strncmp($method, '_', 1) == 0
OR in_array(strtolower($method), array_map('strtolower', get_class_methods('Controller')))
)
{
show_404("{$class}/{$method}");
}
Here is my output :-
if ( ! class_exists(home)
OR index == ‘controller’
OR strncmp(index, ‘_’, 1) == 0
OR in_array(strtolower(index), array_map(‘strtolower’, get_class_methods(‘Controller’)))
if ( ! class_exists(home)
OR index == ‘controller’
OR strncmp(index, ‘_’, 1) == 0
OR in_array(strtolower(index), array_map(‘strtolower’, get_class_methods(‘Controller’)))</code></pre>
It seems as if STRNCMP is the cause - as my ‘method’ doesn’t contain an underline character - It displays the 404 screen.
is my logic correct ?
How do I find / Fix my method ?
Ps, my root / main controller is /controllers/home.php (is correct)