Next question - have you set up a route prefix to point to your controller?
<?php
class dcXenMapMe_Route_index implements XenForo_Route_Interface
{
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
return $router->getRouteMatch('dcXenMapMe_ControllerPublic_Index', 'index', 'dcXenMapMe', $routePath);
}
}
Okay, that's looking good for the router. I'm actually having trouble understanding what is going wrong - could you give me a simple expected behaviour vs observed behaviour synopsis?
CREATE TABLE IF NOT EXISTS `dc_MapMe_Markers` (
`marker_id` int(11) NOT NULL auto_increment,
`member_id` mediumint(8) NOT NULL,
`lat` float(10,6) default NULL,
`lon` float(10,6) default NULL,
PRIMARY KEY (`marker_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=536 ;
The formtarget is still dcXenMapMe
<form action="{xen:link dcXenMapMe}" method="post" class="xenForm AutoValidator ScratchpadQuickNote">
and not dcXenMapMe/add-location
public function actionAddLocation()
{
i think that the form is sending the data to the false action!
try to add a die('here') as first line in your action to see if the form is sent to the right action
Did you check the js output? (firebug, js console,..)Oooooo shiny....Will have a look at that, cheers. I really wish I had started with web programming instead of desktop LMAO. VB is so much easier when your used to it lol
Did you check the js output? (firebug, js console,..)
Remove 'AutoValidator' from the classes applied to the form so it submits without AJAX, then see what it reports back on submission.
Still get the dropdown overlay from the top stating unspecified error.
Can you track down where the execution path is going? Pepper your controller with die(__LINE__); commands all over the place and see if you can work it out.
return $router->getRouteMatch('dcXenMapMe_ControllerPublic_Index', 'index', 'dcXenMapMe', $routePath)
AAAAAAAAAAAAAAAAAAAAAAAhh
i've found it
Your router isn't right
[/COLOR][/COLOR][/FONT]PHP:[FONT=monospace][COLOR=#000000][COLOR=#007700]return [/COLOR][COLOR=#0000bb]$router[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]getRouteMatch[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'dcXenMapMe_ControllerPublic_Index'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'index'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'dcXenMapMe'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$routePath[/COLOR][COLOR=#007700])
You're sending all requests to the index action
$routepath is the SECOND parameter
yes, f*cking copying and wysiwyg editor^^LOL ... you seem to have mass BBCode in your excitement
yes, f*cking copying and wysiwyg editor^^
should be ok now![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.