php - Symfony 2.4 CRUD please; Controller not found -


i'm (almost) new symfony , i'm using 2.4 got problem giving me lots of headaches. several days have not been able fix issue.

i use app/console commands build base code; entities crud: doctrine:generate:entity (to build models), code relations, etc doctrine:generate: entities (to generate setters, getters, etc) doctrine:schema:update --force (to update database models) generate:doctrine:crud (to make controllers, forms, etc....)

at last, since choose declare routing via annotations, import bundle's routing.yml file controller routes like:

autocondatecrbundle_controllers:     resource: "@autocondatecrbundle/controller"     type:     annotation 

this, far i'm aware, makes available routes inside generated controllers @ crud generation. however, no matter route try test, symfony keeps telling me:

fileloaderloadexception: cannot import resource "/var/www/autocondat-ecr/src/autocondat/ecrbundle/controller" "/var/www/autocondat-ecr/src/autocondat/ecrbundle/resources/config/routing.yml". (class autocondat\ecrbundle\controller\clasificacion_estudiocontroller not exist)

no mater controller or route choose test, fails find controller class, , believe me; classes there.

-there no typos on names or cases -classes there, controllers there -routes there , can't loaded using :

pattern: /whatever defaults: { _controller: autocondatecrbundle:controllerwhatever:index } 

this driving me crazy.

for able me, here source of project: link project

notes: -there several bundles inside project; 1 i'm testing autocondatecrbundle. -security inside security.yml file has been deactivated in order test faster. -of course, database can generated fast same console commands.

thanks -a lot- help!

for class autocondat\ecrbundle\controller\clasificacion_estudiocontroller

symfony resolve both namespace seperator \ , underscore _ directory seperator, using psr-0 autoloading standards autoloading of classes.

that means expecting class located in file src/autocondat/ecrbundle/controller/clasificacion/estudiocontroller.php.

name class clasificacionestudiocontroller , file clasificacionestudiocontroller.php.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -