Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.