symfony-cmf / blog-bundle

ABANDONED - to focus our efforts, this bundle is no longer maintained
http://cmf.symfony.com
22 stars 31 forks source link

Twig has no 'ep_path' function (../views/Post/_post.html.twig) #44

Closed a-menshchikov closed 11 years ago

a-menshchikov commented 11 years ago

I have exception on parsing _post.html.twig file, because it contains 'ep_path' calling at line 4.

I doing something wrong or it's not my mistake?

dantleech commented 11 years ago

err.. those templates are actually for some CMS I was trying to create in January - they shouldn't be there at all!

The Bundle does not use them however - it uses Resources/Blog/view_post.html.twig for rendering the post.

How did you run into this error?

dbu commented 11 years ago

see also https://github.com/symfony-cmf/BlogBundle/issues/40

a-menshchikov commented 11 years ago

I'm trying run 'cmf-sandbox'. Win 7, Apache 2.4, PHP 5.5, follow the instructions (deploy from Git).

dantleech commented 11 years ago

@Z-KeyKeeper very strange that you are having this problem as the templates are not used by the BlogBundle. I have created #45 to remove them.

a-menshchikov commented 11 years ago

Maybe problem come from composer dependencies? Some one problem which I found related with 'sonata-project/doctrine-phpcr-admin-bundle' version in composer.json; "1.0." contains '../CRUD/edit_phpcr_many_to_one.html.twig' and '../CRUD/edit_phpcr_one_to_one.html.twig' files with empty render "with" statements. This bug fixed at master, but in sandbox's composer.json used "1.0." (see https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/commit/8c5a781df801f27cf021ba90689763c0ccd1d175).

Maybe, _post.html.twig used either because of some dependencies specified wrong?

P.S. > _post.html.twig uses only by _postList.html.twig, which referred only in '/app/cache/dev/assetic/config/..'.

dbu commented 11 years ago

i merged the removal of the BlogBundle templates. better for you?

regarding sonata, yep, indeed there are a few glitches. if you require sonata admin as 1.0.*@dev you should will get the latest 1.0 things from master. i think we should try to tag 1.0.1 somewhen next week, so that you can get those things in a stable version.

can you please close this issue if the problem is solved for you?

a-menshchikov commented 11 years ago

Yes, it solved. Thanks!