Question about dialog creation, been struggling for a couple hours and am missing something I think is simple but struggling with. I’m trying to popup a dialog from a link in a block view.
The error i’m getting is: “\Concrete\Package\RavidPropertyEvaluator\Controller\ViewLocation” does not exist
My block view has all links location links calling dialog like this:
$('.locationEdit').click(function(){
var locationId=$(this).attr('locationId');
$.fn.dialog.open({
href:'/index.php/ravid_property_evaluator/dialogs/view_location/'+locationId,
title:'View Location',
width:600,
height:600,
modal:true})
});
i have a route registering in the onstart event like so:
$router->get('ravid_property_evaluator/dialogs/view_location/{locationId}','\Concrete\Package\RavidPropertyEvaluator\Controller\ViewLocation::view');
I have a file at package\ravid_property\evaluator\controllers\view_location.php
namespace Concrete\Package\RavidPropertyEvaluator\Controller\ViewLocation;
//use \Concrete\Controller\Backend\UserInterface as BackendInterfaceController;
use Concrete\Core\Controller\Controller AS BaseController;
//class ViewLocationDialog extends BackendInterfaceController{
class ViewLocation extends BaseController {
protected $viewPath= '/dialogs/view_location.php';
public function view(){
}
}
Any thoughts ? I feel like it’s probably a namespace issue somehow but i’m stuck.