You will probably have to look for an alias in your class loader or just some mapping. Did you install using composer? If you did not, you may have to edit the autoloader config, so that it has an empty classmap, just to get you started.
-Bart

Op 16-06-12 00:35, Steve Rayner schreef:
Thanks Matthew, it's starting to make sense.

I'm getting this error;

Unable to locate class associated with "zfcuserauthentication"

I see this was an issue around three months ago, but any discussions i
find seem to indicate it was fixed so i assume my problem is something
i have done wrong.

should i post any of my code here?

On Fri, Jun 15, 2012 at 2:59 PM, Matthew Weier O'Phinney
<[email protected]> wrote:
-- Steve Rayner <[email protected]> wrote
(on Friday, 15 June 2012, 07:53 AM +0100):
I see there is a module called zfc-user, with a sub-module for using
doctrine orm.
I'm new to ZF2 and the concept of modules (i didn't use them in zf1).
ZF2 seems to have quite a complicated folder structure, that looks
well thought out.

I'm using composer, so I've added the required dependencies, done an
update and it looks like everything i need has been downloaded into
the vendor folder (and sub-folders).

Now i'm lost. What's my next step?
Enable the module in config/application.config.php:

   'modules' => array(
       'Application',
       'ZfcUser',
       /* ... etc. ... */
   ),

We've added a step of explicitly enabling modules here. The reason for
this is because it allows you to have a central "repository" of modules
that you can selectively choose from. A good example is, for instance,
if you're a client shop and host for your clients; instead of having
module installations per client project, you could have a single
location, and selectively enable the modules you need for a given
project.

Additionally, it allows you to toggle modules on and off when desired;
I've done this in the past to determine what modules may or may not have
been causing issues for the site I was working on.

I thought the concept of modules was that it would drop a module into
my application that i could use, but it apears not. Is my next step to
create my own module that makes use of the stuff in the vendor
folders, or does the module live under the vendor folder and i have to
config my application to use it.
Typically, once you've enabled the module, you will likely need to do
some configuration -- it really depends on the module. For instance, my
PhlyContact module will basically work "out-of-the-box" -- but it
assumes Sendmail as the mail transport, and the "Dumb" captcha adapter
-- neither of which is likely what you want. Thus, you configure the
module to suit your site's needs. Similarly with ZfcUser, you need to
configure a database connection at minimum, and potentially some other
options -- all of which are documented in its README.md file.

So, while modules are mostly "plug and play", they will often benefit
from configuration.

--
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]



    

--
Bart McLeod
Space Web
Middenlaan 47
6869 VN Heveadorp
The Netherlands
t +31(0)26 3392952
m 06 51 51 89 71
@ [email protected]
www.spaceweb.nl
zce PHP 4 logo zce PHP 5 logo zce PHP 5.3 logo zce Zend Framework logo

Bart McLeod is a Zend Certified Engineer.

Click to verify!

Reply via email to