Welcome, Guest
Username: Password: Remember me

TOPIC: How can I access fields on edit page?

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

  • tr4ding
  • tr4ding's Avatar
  • Offline
  • Senior Member
  • Posts: 42
  • Karma: 1
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!!
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
$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
Last Edit: 13 Feb 2012 14:49 by admin.
The administrator has disabled public write access.
Time to create page: 0.142 seconds

Get Started