Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
namespace Qc\Helpers;
use Phalcon\Mvc\View;
class ListingHelper extends \Phalcon\Tag
{
public function renderField($field, $data){
$config = $this->getDI()->get('config');
$view = $this->getDI()->get('view');
$view->disableLevel(View::LEVEL_MAIN_LAYOUT);
return $view->getPartial("/listing/" . $field, $data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment