CodeIgniter Forums
nested controllers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: nested controllers (/showthread.php?tid=9959)



nested controllers - El Forum - 07-14-2008

[eluser]SpooF[/eluser]
I'm having some trouble trying getting some nested controllers to work.

This is my file struchure:

Code:
+system
     +application
            +controllers
                  +admin
                      -clients.php
                      -stage.php
                   -go.php
                   -stage.php

I can access all the controllers, but for some reason in the clients controller. I can only access two functions.

Clients.php:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Clients extends Controller {

    function Clients()
    {
        parent::Controller();    
    }
    
    function index()
    {
        echo 'index';    
    }
        
    function display()
    {
        echo 'display';
    }
    
    function view()
    {
        echo 'view';
    }
    
}
?>

I can access the index and display functions, but when I try to get to view funtion it gives me a 404.

Here are the links

http://clients.imageworksdigital.com/index.php/admin/clients/index
http://clients.imageworksdigital.com/index.php/admin/clients/display
http://clients.imageworksdigital.com/index.php/admin/clients/view

No .htaccess file.


nested controllers - El Forum - 07-14-2008

[eluser]Rick Jolly[/eluser]
http://ellislab.com/codeigniter/user-guide/general/reserved_names.html