Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# XscorX 2/27/2007 7:36 AM
i installed 1.5
and was trying to make a test module using the guid lines in the documintaion with the setup ( Copy and pest even the file names)

i had this errors

1) in creating the module control i got a message telling me that the base class constructor has no arguments, while the code in the documentation said it takes a section variable

i removed the variable passed to the base class

2) after building the modulr and all the project, and making sure that the module files are copied to there diretories, i inserted the row in the database giving all the info for the module

but

when i try to create a page using this module i get the following error message

An error occured: Could not find module: Cuyahoga.Modules.Sample.SampleModule, Cuyahoga.Modules.Sample

so please help me and tell me where i went wrong
# XscorX 2/27/2007 8:02 AM
i just fixed that (one of the files was an old build)

but now i am getting this error instead

An error occured: Can't create component 'module.Cuyahoga.Modules.Sample.SampleModule' as it has dependencies to be satisfied. module.Cuyahoga.Modules.Sample.SampleModule is waiting for the following dependencies: Services: - Cuyahoga.Core.Domain.Section which was not registered.

please help me
# martijnb 2/28/2007 2:24 AM
XscorXi just fixed that (one of the files was an old build)

but now i am getting this error instead

An error occured: Can't create component 'module.Cuyahoga.Modules.Sample.SampleModule' as it has dependencies to be satisfied. module.Cuyahoga.Modules.Sample.SampleModule is waiting for the following dependencies: Services: - Cuyahoga.Core.Domain.Section which was not registered.

please help me

We still have to update the module development guide to reflect the changes in 1.5.0. Sorry for the inconvenience.

About the last error: the Section parameter isn't required anymore in the constructor of the module controller.
From 1.5.0 all parameters that go into the constructor are required dependencies and the container tries to resolve that dependency (which doesn't work because sections are not registered in the container).
# XscorX 2/28/2007 4:01 AM (edited 2/28/2007 4:11 AM)
About the last error: the Section parameter isn't required anymore in the constructor of the module controller.
From 1.5.0 all parameters that go into the constructor are required dependencies and the container tries to resolve that dependency (which doesn't work because sections are not registered in the container).

thanks for the help

it is working now thanks