View Single Post
  #1 (permalink)  
Old 05-17-2008, 09:39 AM
Eric_The_Red Eric_The_Red is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Default Modules / Controllers / Actions

Working on moving a site onto the Zend Framework and I seem to be missing something.

Have the following File / Dir structure
Code:
/application
    /modules
        /registration
            /controllers
                Registration_FormsController.php
                Registration_IndexController.pfp
            /views
                /scripts
                    /forms
                       adult.phtml
                       child.phtml
                    /index
                        index.phtml
        /default
            /controllers
                IndexController.php
            /views
                /scripts
                    /index
                        index.phtml
When I go to:
http://localhost/index/ - loads index.phtml from default module
http://localhost/registration/ - loads index.phtml from registration module
http://localhost/registration/forms loads index.phtml from registration module
http://localhost/registration/forms/child throws an action exception (no child)

The last 2 I am at a loss on why they act that way or what I am missing

Bootstrap sets:
PHP Code:
self::$frontController->addModuleDirectory('../application/modules'); 
Registration_FormsController.php is:
PHP Code:
require_once 'Zend/Controller/Action.php';   
class 
FormsController extends Zend_Controller_Action   
{   
    public function 
childAction()   
    {   

    }  

Have been going through tutorials / forums etc for about 8 hours trying to figure out what if anything I am missing or not understanding and keep hitting a brick with it.

Any help / advice etc is appreciated. Thanks!
Reply With Quote