Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the coordinate via address #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add the coordinate via address #13

wants to merge 1 commit into from

Conversation

zzuutt
Copy link
Contributor

@zzuutt zzuutt commented May 27, 2016

  • Add the possibility to find the location by the address
  • Add tinymce on the fields description and access
  • Change version to 2.4.5

27-05-2016 16-24-19

- Add the possibility to find the location by the address
- Add tinymce on the fields description and access
@Soldras
Copy link
Member

Soldras commented Jun 1, 2016

Hi, I think you can use this :
https://github.com/thelia-modules/Dealer/blob/master/EventListener/DealerListener.php

When you create a Dealer it generate coordinate based on address so you just have to expand this comporment

@zzuutt
Copy link
Contributor Author

zzuutt commented Jun 1, 2016

Hi,

Ok, I had not looked at everything
I rewrite my code

@zzuutt
Copy link
Contributor Author

zzuutt commented Jun 2, 2016

sorry but I do not see how
I create a new event
const DEALER_LOCATION_UPDATE = "dealer.dealer-location.update";
and route
<route id="dealer.geo.update" path="/admin/module/Dealer/location/{dealer_id}/get" methods="get"> <default key="_controller">Dealer:GeoDealer:processGetLocation</default> <requirement key="dealer_id">\d+</requirement> </route>
but in the controller I do not see how the dispatch
$event = new DealerEvent(); $event->setDealer($dealer_id); $this->dispatch(DealerEvents::DEALER_LOCATION_UPDATE, $event);

I completely wrong or right ?

@Soldras
Copy link
Member

Soldras commented Jun 3, 2016

You have to create a service from DealerListener method firt.
Then you can use it in DealerListener and your controller to update coordinate.

If you want to see where event are dispatch check services.

@zzuutt
Copy link
Contributor Author

zzuutt commented Jun 3, 2016

I don't understand but I will search
sur mon zx-81 avec 32k de ram je n'avais pas tout ça
il me manque donc une partie pour comprendre :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants