cristalmolix Posted February 26, 2010 Share Posted February 26, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/ Share on other sites More sharing options...
roopurt18 Posted February 26, 2010 Share Posted February 26, 2010 I don't use ZF, but does it implement some sort of a cache? Maybe you have to tell it to look for new actions or something. Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/#findComment-1018632 Share on other sites More sharing options...
cristalmolix Posted February 27, 2010 Author Share Posted February 27, 2010 thanks you were very close, Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/#findComment-1018778 Share on other sites More sharing options...
trq Posted February 27, 2010 Share Posted February 27, 2010 Have you tried looking at any custom routing? Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/#findComment-1018792 Share on other sites More sharing options...
roopurt18 Posted February 27, 2010 Share Posted February 27, 2010 thanks you were very close, Does that mean this is solved? If so please mark it. Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/#findComment-1018804 Share on other sites More sharing options...
cristalmolix Posted March 1, 2010 Author Share Posted March 1, 2010 thanks you were very close, Does that mean this is solved? If so please mark it. yeh thats what it was custom routing Quote Link to comment https://forums.phpfreaks.com/topic/193493-cant-create-controller-action/#findComment-1019659 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.