Jump to content

How Calling Some Client Info


JNdev

Recommended Posts

How to get fullname of country, state? eg

State: Norborg

Country: Singapore

 

<?php	echo (!empty($contact->city) ? $this->Html->_($contact->city, true). "":""); ?>
<?php	echo (!empty($contact->state) ? $this->Html->_($contact->state, true). "":""); ?> 

I try but not work
<?php   echo (!empty($contact->country->alpha3) ? $this->Html->_($contact->country->alpha3, true). "":""); ?>

 

Tanks very much for help me :)

Link to comment
Share on other sites

The data available depends on the controller and what it retrieves. For individual contacts, only the 2-character state and country are available (i.e. what is stored with the contact). If you need more information, such as additional information on the state/country based on those 2-character state/country codes, then you would need to fetch them separately from the States and Countries models.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...