Search code examples
phpsymfony1partial

Symfony question. How to use get_partial inside the action.class?


When I do this:

public function executeGetHTML(sfWebRequest $request)
{
  **$pageContent = get_partial('mypage2'); **
}

I get this:

Call to undefined function get_partial()

so, how to switch it on? I tried sfLoader::loadHelpers('Partial'); but it says sfLoader is undefined.. :(


Solution

  • You need to use $this->getPartial() in your actions.