Menu

PHPMVC : Undefined index...ActionConfig.php

General
2005-12-30
2013-04-11
  • Nobody/Anonymous

    Hi all,

    Sorry for my poor English ;-((

    I have this message :
    Undefined index: rechercher in C:\siteWeb\www\phpmvc\WEB-INF\classes\phpmvc\config\ActionConfig.php on line 750

    But I have put in phpmvc-config.xml :
    <!-- Rechercher un Donneur d'Ordre -->
    <action path = "rechercher"
    type = "rechercherAction">
    <forward name="affichage" path="DLgRechercher.tpl" />
    </action>

    And in the Class Action :
    elseif($go == 'rechercher') {
    $myForward = $mapping->findForwardConfig('rechercher');
    }

    I have create too rechercherAction.php avec :
    class 'rechercher'Action extends AbstractBaseAction {....}

    I don't know where is the bug ?

    Could you any have idea ?

    Thanks for your help.
    Best regards

    Benat

     
    • Steve Lianoglou

      Steve Lianoglou - 2005-12-30

      Hi Benat,

      I think the problem is that in your Action class, you are forwarding to an undefined "forward" path.

      the:
      $myForward = $mapping->findForwardConfig('rechercher');
      tells phpmvc to look for a forward named 'rechercher' in the configuration (XML definition) of the Action that is being executed.

      You don't have a forward defined by that name, so try:

      $myForward = $mapping->findForwardConfig('affichage');

      That should clear out the error and get you on the path to what you're after.

      Hope that helps,
      -steve

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.