Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How can I access fields on edit page? 13 Feb 2012 14:16 #1268

  • tr4ding
  • tr4ding's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 42
  • Thank you received: 0
In case of editing a record, i'd like to place a marker on a map at the corresponding latitude and longitude.
How can i access to php variables?

In myproject_add_form.php there are:
'dataKey' => 'latitude',
'dataObject' => $this->poiitem,

What's the correct syntax in order to access to that data in edit page?

Because, after that, i'll encapsulate on my Jscript map ;)

Thank you so much in advance!!

Please Log in or Create an account to join the conversation.

Re: How can I access fields on edit page? 13 Feb 2012 14:49 #1272

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
$this->poiitem->latitude

That's all.


try to dump $this->poiitem
echo("<pre>"); print_r($this->poiitem); echo("</pre>");
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.076 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started