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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
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
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