Coder Social home page Coder Social logo

Comments (5)

cedriclombardot avatar cedriclombardot commented on August 16, 2024

Hi,

The andmingenerated folder shoud be in you app/cache/env/ dir and it should be autoloaded with https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/blob/master/ClassLoader/AdmingeneratedClassLoader.php wich be init in https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/blob/master/AdmingeneratorGeneratorBundle.php

Check if you have enabled the AdmingeneratorGeneratorBundle in your env

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

And use Admingenerated...\BaseController\NewController as BaseListController; is it a copy paste from task ? or other ??

You should have NewController as BaseNewController;

from admingeneratorgeneratorbundle.

keymaster avatar keymaster commented on August 16, 2024

This is the generated ListController.php:

namespace Application\...\SearcherBundle\Controller;

use Admingenerated\...\BaseController\NewController as BaseListController;

class ListController extends BaseListController
{
}

It's the same for all controllers, eg. \NewController as BaseEditController, \NewController as BaseDeleteController

The command proceeded to completion and said: "You can now start using the generated code!"

But, there is no andmingenerated folder in app/cache/dev/, and there is no routing file generated.

I have enabled the following in config_dev.php

 admingenerator_generator:
    overwrite_if_exists: true

fyi, we're using windows 7 with wintty/cygwin to run the command.

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

It's seems to bee a big bug in task i'll look at this tonight

from admingeneratorgeneratorbundle.

cedriclombardot avatar cedriclombardot commented on August 16, 2024

Thats done you've to regenerate your bundle or to change in each controller the NewController by the current controller name.

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.