Jump to content

Cant Create Controller Action


cristalmolix

Recommended Posts

Hello Guys

 

I have some old version of a zend framework application, i am trying to create a module for it, i am a professional developer and have worked with zend framework for over a year now, the problem is:

 

there are existing controllers,

 

if i add a action to one of them and then add the corresponding view , it dos'nt work just redirects back to the home directory,

 

but the index Action method of that controller works and finds its view.

 

QUESTION: why am i able to call the existing actions eg, module / controller / action

 

i know how it works and i am not  missing anything, there is something stopping me from adding extra actions or controllers

 

 

 

 

 

 

<?php
include_once dirname(dirname(__FILE__)). DS . 'AdminController.php';
class  Admin_ExportController extends Admin_AdminController
{


    public function indexAction()
    {
       echo "ddd";

       // I DID NOT ADD THIS I CAN CALL THIS VIA ----- admin/export
    }

    public function usersAction()
    {
      echo "ddd";
             //I ADDED THIS ONE cant CAN NOT !!!!!!! call it  VIA ----- admin/export/users
    }

}

include_once dirname(dirname(__FILE__)). DS . 'AdminController.php';
class Admin_PagesController extends Admin_AdminController
{
    const pageTable = 'Page';

    public function indexAction()
    {
           //  i dint add this this works via admin/page
    }


    public function editAction()
    {
        // i didnt add this it works via admin/page/edit
    }

}



 

 

 

 

why is it that anything i add dosent work

ANY IDEAS ?

 

Regards

 

 

Link to comment
https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.