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

TOPIC:

Question about tutorial - lesson 3 09 Apr 2013 12:48 #7036

Hi,

I am playing around with the tutorial and I have a question about lesson 3.

At the end of the tutorial, if I print_r the array $this->item->voyages (context voyageur.ville) I obtain the following:
Array ( [0] => stdClass Object ( [id] => 2 
						[_ville_nom] => Lyon 
						[_ville_code_postal] => 69000 
						[params] => JObject Object ( [_errors:protected] => Array ( ) 
												[access-view] => 1 
												[access-edit] => 1 
												[access-delete] => 1 ) 
						) 
	  [1] => stdClass Object ( [id] => 3 
						[_ville_nom] => Marseille 
						[_ville_code_postal] => 13000 
						[params] => JObject Object ( [_errors:protected] => Array ( ) 
											      [access-view] => 1 
											      [access-edit] => 1 
											      [access-delete] => 1 ) 
						) 
	  [2] => stdClass Object ( [id] => 15 
						[_ville_nom] => Bordeaux 
						[_ville_code_postal] => 33000 
						[params] => JObject Object ( [_errors:protected] => Array ( ) 
											      [access-view] => 1 
											      [access-edit] => 1 
											      [access-delete] => 1 ) 
						) 
	)

This is the correct list of cities visited by the selected traveller, but I do not understand why the last element of each array is the [params] array...is this necessary for some reason or could this array be eliminated by modifying the populateObjects function (and in case, how) ?

Thanks

Elena

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

  • Page:
  • 1
Time to create page: 0.063 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started