The Ad table changed just 2 commits before
//Remove picture from file system.
$fs = new sfFilesystem();
- $fs->remove(sfConfig::get('app_default_picture_directory').$ad->getAdMobileImageLink());
+ $fs->remove(sfConfig::get('app_default_picture_directory').$ad->getAdMobileImage());
//Remove ad from database.
$ad->delete();
</tr>
<tr>
<th>Ad mobile image link:</th>
- <td><?php echo $ad->getAdMobileImageLink() ?></td>
+ <td><?php echo $ad->getAdMobileImage() ?></td>
</tr>
<tr>
<th>Created at:</th>
[
<?php foreach ($ads as $ad): ?>
- { "id" : "<?php echo $ad->getAd()->getId()?>", "image" : "<?php echo $ad->getAd()->getAdMobileImageLink() ?>", "link" : "<?php echo $ad->getAdLink()?>",
+ { "id" : "<?php echo $ad->getAd()->getId()?>", "image" : "<?php echo $ad->getAd()->getAdMobileImage() ?>", "link" : "<?php echo $ad->getAdLink()?>",
"text" : "<?php echo $ad->getAdMobileText()?>", "adname" : "<?php echo $ad->getAdName()?>" },
<?php endforeach ?>
]