Coder Social home page Coder Social logo

Comments (7)

cedriclombardot avatar cedriclombardot commented on August 16, 2024

@altrano can you try to update your blog-generator.yml and set params section like that :

generator: admingenerator.generator.propel 
params:
  model: AltraOne\Bundle\BlogBundle\Model\Blog
  namespace_prefix: AltraOne
  subfolder: Bundle
  bundle_name: BlogBundle
  fields: ~

And of course clear your cache

from admingeneratorgeneratorbundle.

 avatar commented on August 16, 2024

Unfortunately, there is now a new problem.

Fatal error: Class 'AltraOne\BlogBundle\Form\Type\Post\FiltersType' not found in /home/altrano/Projekte/AltraOne/app/cache/dev/Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php on line 227 Call Stack: 0.0002 634808 1. {main}() /home/altrano/Projekte/AltraOne/web/app_dev.php:0 0.0115 2043216 2. Symfony\Component\HttpKernel\Kernel->handle() /home/altrano/Projekte/AltraOne/web/app_dev.php:24 0.0303 2767384 3. Symfony\Bundle\FrameworkBundle\HttpKernel->handle() /home/altrano/Projekte/AltraOne/app/bootstrap.php.cache:547 0.0304 2769104 4. Symfony\Component\HttpKernel\HttpKernel->handle() /home/altrano/Projekte/AltraOne/app/cache/dev/classes.php:4830 0.0304 2769104 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /home/altrano/Projekte/AltraOne/app/cache/dev/classes.php:3853 0.3011 11673640 6. call_user_func_array() /home/altrano/Projekte/AltraOne/app/cache/dev/classes.php:3883 0.3011 11674008 7. Admingenerated\AltraOneBlogBundle\BasePostController\ListController->indexAction() /home/altrano/Projekte/AltraOne/app/cache/dev/classes.php:0 0.3011 11674008 8. Admingenerated\AltraOneBlogBundle\BasePostController\ListController->getFilterForm() /home/altrano/Projekte/AltraOne/app/cache/dev/Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php:3

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

You should have use 'AltraOne\Bundle\BlogBundle\Form\Type\Post\FiltersType' and not use 'AltraOne\BlogBundle\Form\Type\Post\FiltersType' in ListController cedriclombardot@0578907#L9R7

Are you sure to have clear your cache ?? Try a rm -rf app/cache/*

from admingeneratorgeneratorbundle.

 avatar commented on August 16, 2024

i try rm -rf app/cache/* but the result is still the same. i try to fix the namespace manually in Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php and then i become this:

Warning: file_put_contents(/home/altrano/Projekte/AltraOne/app/cache/dev/Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php): failed to open stream: Permission denied in /home/altrano/Projekte/AltraOne/vendor/twig-generator/src/TwigGenerator/Builder/BaseBuilder.php line 251

the cache is generated wrong but why??

from admingeneratorgeneratorbundle.

 avatar commented on August 16, 2024

Ok is fixed it was my error i forgot to set the subfolder.... :-) thanks

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

Changing manually the namespace in dev have no importance, we try to
overwrite each time.

Is your apache user equal to your applicative user ? Else if try by
chmoding the cache chmod 777 -R /home/altrano/Projekte/AltraOne/app/cache/ . Seems to be a classic
symfony2 problem

Cdric

2011/11/20 AltranoLabs <
[email protected]

i try rm -rf app/cache/* but the result is still the same. i try to fix
the namespace manually in
Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php and
then i become this:

Warning:
file_put_contents(/home/altrano/Projekte/AltraOne/app/cache/dev/Admingenerated/AltraOneBlogBundle/BasePostController/ListController.php):
failed to open stream: Permission denied in
/home/altrano/Projekte/AltraOne/vendor/twig-generator/src/TwigGenerator/Builder/BaseBuilder.php
line 251

the cache is generated wrong but why??


Reply to this email directly or view it on GitHub:

https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/issues/46#issuecomment-2805811

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

Ok is fixed it was my error i forgot to set the subfolder.... :-) thanks => ok great could we close this issue ?

from admingeneratorgeneratorbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.