I assume you've cleared the cache after adding the file? --
Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Feb 3, 2009, at 11:49 AM, isleshocky77 wrote: > > Just came across a problem with the auto-loading or access of classes > with components. > > The situation is a I have a Comment module, with a component called > Add which is just a component with a form to add comments. So > naturally I added the form class for this component to > /apps/public/modules/comment/lib/form/AddForm.class.php > > Now I'm going to use this component and I simple drop into my video/ > view action's template > # /apps/public/modules/video/templates/viewSuccess.php > <?php include_component('comment', 'add', array('video' => $video) ?> > > The problem is this is creating an error that it can't find the form > class. In order to get this to work I have to move the > AddForm.class.php from > /apps/public/modules/comment/lib/form/ > to > /apps/public/lib/form/ > > I believe since the component is actually the one calling for the form > class that this should work and might be a bug in symfony. > > I'm running symfony 1.2.4-dev > > Any feedback would be great or do you think I should put a ticket in > for this? > > -- > Stephen Ostrow <sost...@sowebdesigns.com> > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---