Add a new action in ossn_com.php no working

Dani MR Posted in Component Development 9 years ago

Hi,

I try to adding a new action in my new component. I use the next code in the ossncom.php, but all the time return NULL when I register the new action.
...
require
once(OSSN_COMPONENT . 'classes/MyClass.php');
...
ossn_register_action('map/get', OSSN_COMPONENT . 'actions/map/get.php');
...

After that, in get.php I make a instance of MyClass inside, but this script didn't found
MyClass.php. Any solution?

Many thanks

Replies
Spanish Dani MR Replied 9 years ago

Thanks Zet,

The location is in Barcelona, because I live in Barcelona ;)

I try to get the latitudes and longitudes from a new table but when I extend the class OssnDatabase how an error: Not found class OssnDatabase :(

Regards

German Michael Zülsdorff Replied 9 years ago

enter image description here

Wow, yeah: this looks really nice already. :) But what is it good for? Barcelona seems to be the starting point of everything, that's for sure. So what's next?

Spanish Dani MR Replied 9 years ago

Many thanks for your time!

I put a note in the GitHub.

;)

Spanish Dani MR Replied 9 years ago

Any idea? :(

Thnx

Spanish Dani MR Replied 9 years ago

Thanks Arsalan.

I share my component.
https://github.com/tricotrin/OptionTrips

I try to make the instance in this file:
https://github.com/tricotrin/OptionTrips/blob/master/actions/map/get.php

Thnks again

Indonesian Arsalan Shah Replied 9 years ago

If you share your component somewhere, we can help you.