4 deleted 96 characters in body
source | link

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

Edit: not tested, ...

$cityCollectionMetods[$city->getCityId()] = $city->getCityname();

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

Edit: not tested, ...

$cityCollectionMetods[$city->getCityId()] = $city->getCityname();

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}
3 added 98 characters in body
source | link

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

Edit: not tested, ...

$cityCollectionMetods[$city->getCityId()] = $city->getCityname();

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

Edit: not tested, ...

$cityCollectionMetods[$city->getCityId()] = $city->getCityname();
2 added 79 characters in body
source | link

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

You can try this:

foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}

You can try this:

$cityCollection->addFieldToSelect(array('cityname', 'citiy_id'));
...
foreach ($cityCollection as $city) {
    $cityCollectionMetods[] = array(
        'label' => $city->getCityname(),
        'value' => $city->getCityId()
    );
}
1
source | link