incubator icon indicating copy to clipboard operation
incubator copied to clipboard

Partial bug if view have expand .twig and base url

Open Cmssspl opened this issue 13 years ago • 4 comments

array( '.twig' => 'Phalcon\Mvc\View\Engine\Twig', '.phtml' => 'Phalcon\Mvc\View\Engine\Php' )

Use: $view->partial($partialPath); if view have expand phtml works ok, if twig return is empy.

Cmssspl avatar Feb 01 '13 12:02 Cmssspl

the partial doesn't need to include the .twig extension, are you passing that in $partialPath

ghost avatar Feb 04 '13 07:02 ghost

Yes, im use only partial('catalogName / nameFile'), im change expand in files.

Patch is certainly correct (if the change expands [files no patch in partial] starts to work ). The same problem occurs when the cache, cache is empty. :/

'm currently using the cache built into the twig and function include(), it would be nice, however, that it started to work properly and do not have to use these to get around.

Cmssspl avatar Feb 04 '13 07:02 Cmssspl

I added a fix for this in 0.9.0 stable, could you try with this version?

ghost avatar Feb 07 '13 19:02 ghost

{{ partial('templates/top') }} is fixed.

Thx

Cmssspl avatar Feb 07 '13 20:02 Cmssspl