Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Baruch4413
Created March 23, 2017 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Baruch4413/c2780c5d37a64d6636fa80cadb271987 to your computer and use it in GitHub Desktop.
Save Baruch4413/c2780c5d37a64d6636fa80cadb271987 to your computer and use it in GitHub Desktop.
<?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