Welcome Guest, Not a member yet? Register   Sign In
Bug with controller name
#1

[eluser]Unknown[/eluser]
I had controller named "publications.php". Now I will show you its elementary code.
Code:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Publications extends CI_Controller {
    
    function view(){
        echo 1;
    }    

}
When open http://sitename/publications/view it showed me that no such URL found (Denwer error page).
I just renamed the controller to "publish.php" and it worked.
Code:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Publish extends CI_Controller {
    
    function view(){
        echo 1;
    }    

}
Why it is so? Why I can't use publications name?
Version of my CI 2.1.0


Messages In This Thread
Bug with controller name - by El Forum - 07-01-2012, 04:44 AM
Bug with controller name - by El Forum - 07-01-2012, 05:01 AM
Bug with controller name - by El Forum - 07-01-2012, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB