Created
March 23, 2017 14:55
-
-
Save Baruch4413/c2780c5d37a64d6636fa80cadb271987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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