[symfony-users] Re: Override hashed filename in csDoctrineActAsAttachablePlugin

2010-03-03 Thread forkmantis
After some digging, I see that the hashed filename had nothing at all
to do with the csDoctrineActAsAttachablePlugin, but is just the
standard behavior of the sfValidatedFile->generateFilename method.
However, before letting sfValidatedFile default to this behavior,
sfFormDoctrine checks the form and the form's object for a
"generate[camelizedFieldName]Filename" method, and will use that if it
exists.  So I just added a generateUrlFilename method to my Attachment
model, and all is well.

On Mar 2, 2:12 pm, forkmantis  wrote:
> Hello.
>
> I'm using csDoctrineActAsAttachablePlugin in my project.  I like it,
> but I would prefer to use slugs for my filenames rather than the
> default hashed filenames.  I've looked through the code for a while
> now, but I cannot figure out where the hashes are coming from or how
> to override that behavior to set the filenames the way I want to set
> them.  Can anyone point me in the right direction?
>
> will killian

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


[symfony-users] Override hashed filename in csDoctrineActAsAttachablePlugin

2010-03-02 Thread forkmantis
Hello.

I'm using csDoctrineActAsAttachablePlugin in my project.  I like it,
but I would prefer to use slugs for my filenames rather than the
default hashed filenames.  I've looked through the code for a while
now, but I cannot figure out where the hashes are coming from or how
to override that behavior to set the filenames the way I want to set
them.  Can anyone point me in the right direction?

will killian

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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


[symfony-users] Re: separate validator for edit/create

2008-05-29 Thread forkmantis

Razvan,

What I've done for cases like this is use this snippet, which allows
you to use conditional logic to load validation yaml:

http://www.symfony-project.org/snippets/snippet/232

So I make a standard validation file for the common validation that
needs to happen for both edits and creates, and then I use if/then
logic to load additional validation files needed for creating a
record.

On May 29, 1:21 pm, Razvan Popa <[EMAIL PROTECTED]> wrote:
> Hello.
> What would be a good practice in separating the validating procedure for
> the action update depending on who's invoking it ... create or edit?
>
> Basically I have this situation. I'm trying to ensure that a username is
> unique. I only allow the user to enter a username from the create action.
> So it should be required and validated only for the create action. It is
> required for the edit too but I don't want it to run the unique
> vaildator when editing. I don't allow the user to update the username in
> the update action anyway.  By the way I can't use the propel unique
> validator because of a certain element in the generation of the username.
>
> Cheers,
> --
> Razvan
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfSimpleCMS - how to redirect from backend to frontend

2008-05-15 Thread forkmantis

This may be of interest to the two of you:

http://www.symfony-project.org/forum/index.php/mv/msg/7460/31105/

On May 15, 4:12 am, Jeanmonod David <[EMAIL PROTECTED]> wrote:
> I have the same problem as you... Did you find a proper way to do
> that?
>
> Thanks
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to use relations with sfPropelPager

2008-04-19 Thread forkmantis

Reynier,

Check out the setPeerMethod and setPeerCountMethod methods of the
sfPropelPager:

http://www.symfony-project.org/api/1_0/sfPropelPager

On Apr 19, 9:26 am, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote:
> Hi every:
> I have two tables, "Categorias" and "SubCategorias". Each "Categoria" have a 
> lot of "SubCategorias" so the relationship between tables is 1:n. I have this 
> method for get every record in SubCategorias table.
>
> [code]
> public function executeListarSubCategorias()
> {
> $subcatsql = new Criteria();
> 
> $subcatsql->addAscendingOrderByColumn(SubcategoriasPeer::NOMBRE_SUBCATEGORIA);
> $this->pag = new sfPropelPager('Subcategorias', 
> sfConfig::get('app_cantidadpaginadodefecto'));
> $this->pag->setCriteria($subcatsql);
> $this->pag->setPage($this->getRequestParameter('pagina'), 1);
> $this->pag->init();
>
> }
>
> With this I get all columns from SubCategorias table but I need to get also 
> the Categorias name. Checking BaseSubCategoriasPeer class I see the method 
> "doSelectJoinCategorias" wich selects a collection of Subcategorias objects 
> pre-filled with their Categorias objects. ¿How can I use this method with 
> sfPropelPager? Also I read this article[1] in Propel Wiki but it's not so 
> clear for me. ¿Any help?
>
> [1]http://propel.phpdb.org/trac/wiki/Users/Documentation/1.2/Relationships
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo Soporte al Desarrollo - Dirección Técnica IP
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfGuard forgotten password functionality

2008-03-26 Thread forkmantis

I remember reading somewhere (forum post maybe?) that the reason
sfGuardPlugin does not include this functionality is that it aims to
be lightweight and not to implement features that not everyone may
want.  I'd argue that password recovery would probably be wanted by
most folks, but you still run into the issue that sfGuardPlugin
doesn't currently require an email address.

That being said, what I've done in my own projects is make my own
myGuardPlugin in which I've added an sfGuardUserProfile, password
recovery, and other features typical to my own projects.

If sfGuardPlugin is to remain lightweight, perhaps there's room for an
xxGuardPlusPlugin to that extends sfGuardPlugin and adds password
recovery and maybe a few other features?

On Mar 26, 9:26 am, Lee Bolding <[EMAIL PROTECTED]> wrote:
> Thanks Robert, I'll take a look.
>
> The idea of the single-use hash is good - but it still depends on the
> email address.
>
> I'm opposed to using email address as it's not required to implement
> sfGuard. You'd be making the assumption that sfGuardUserProfile was
> implemented, and that an 'email' property existed in the profile.
>
> Is this perhaps why the functionality was never completed in the plugin?
>
> I guess what we're really saying is - if the only way to achieve this
> functionality is by utilising an email address, shouldn't this be a
> property of sfGuardUser? (and the plugin/schema updated accordingly)
>
> On 26 Mar 2008, at 14:11, Robert Speer wrote:
>
> > Lee,
>
> >  for webdigs.com I made a password recovery that mimicks the way
> > woot.com does their pw recovery (coincidently it was a woot off that
> > day ;)
>
> > see:http://www.webdigs.com/request_password(you'll need to sign up
> > first)
>
> > it works w/o any problems and another team member is in the process of
> > working it into an internal plugin for another project.
>
> > We are using a the email address to reset the pw, and sending the user
> > an email with a unique one time only random hash link that's not based
> > on the password.
>
> > this set up works for us because we've pretty much standardized our
> > sfguardUserProfile table across most of our projects
>
> > On Mar 26, 7:18 am, Lee Bolding <[EMAIL PROTECTED]> wrote:
> >> Hi All,
>
> >> This isn't yet fully implemented - and I need this functionality for
> >> one of my projects.
>
> >> I could implement it inside of a module, which is how we implemented
> >> similar functionality before migrating to sfGuard - BUT - it makes
> >> more sense to me if I finish off the missing functionality in the
> >> plugin, and then submit it so that the rest of you can benefit (and/
> >> or
> >> clean up my bad code).
>
> >> So, first things first - what is the expected functionality of this
> >> service?
>
> >> I'd imagined the most suitable method would be:
> >>   1) request some details from the user (email address?)
> >>   2) generate a random password (existing password is SHA-1 hashed,
> >> so we can't just send it)
> >>   3) assign the new password to the user account
> >>   4) feed this new random password back to the user
>
> >> Now - we have a few problems.
>
> >> 1) what information do we require from the user before we reset the
> >> password? we can't use email address, because it's not part of
> >> sf_guard_users table (and not guaranteed to be in
> >> sf_guard_user_profile either). We need something to prevent users
> >> from
> >> maliciously resetting other users passwords, yet allows us to be
> >> confident we're dealing with the correct user.
>
> >> 2) how do we feedback the new password to the user? we can't use
> >> email
> >> for the above reason (and I *hate* sending passwords via email anyway
> >> - it's not secure) - so, via a flash message? or even just
> >> automatically log the user in with the new password and redirect to a
> >> page where the user can change their password to whatever they want?
>
> >> Anybody have any thoughts on this?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony 1.1 release date?

2008-03-25 Thread forkmantis

Beta 2 was just released, and according to this blog post, 1-2 more
months before the 1.1 official release:

http://www.symfony-project.org/blog/2008/03/25/symfony-1-1-beta-2-released-what-s-new

On Mar 25, 2:58 pm, Adam <[EMAIL PROTECTED]> wrote:
> I'm part of a team developing a new site.
>
> We're discussing using symfony 1.0 or 1.1.  The symfony blog from
> March 2 says that there is now a "definitive countdown" towards the
> release of 1.1.
>
> Does anyone have more information, or even informed guesses, about
> when that release might be?
>
> Thanks!
> -Adam
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Intelligent Exception Handling?

2008-02-18 Thread forkmantis

I don't know that this will be the best answer to your question, Lee,
but it may be of some use.  I remember reading a little quote
somewhere that basically said "Never test for an error that you don't
know how to handle."  My thinking is that you should only be setting
up exceptions when you already have a specific plan on how you want to
respond to them.

Please feel free to ignore my answer if someone else posts something
more useful to you.

On Feb 18, 10:20 am, "Lee Bolding" <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> Anybody have any advice or examples regarding intelligent handling of
> exceptions?
>
> I'm throwing and catching exceptions in both my action classes and in helper
> classes used by my actions, but now what?
>
> I don't want to just throw an sfException and show the user a Symfony error
> page, that doesn't help them - and I'd like to obfuscate to the user
> whatever technology I'm using if possible.
>
> Imagine I have the following :
>
> class MyException extends Exception{}
>
> class homepageActions extends sfActions {
>   public function executeIndex()
>   {
> try
> {
>   throw new MyException("testing");
> }
> catch (MyException $e)
> {
>   echo "Caught my exception\n", $e;
>   //$this->alerts[] = array('message' => $e->getMessage(), 'code' =>
> $e->getCode());
> }
> catch (Exception $e)
> {
> echo "Caught Default Exception\n", $e;
> }
>   }
>
> }
>
> I don't want to echo those back to the user, and I don't want them to go
> unnoticed either.
>
> Ideally I guess I'd do nothing with any thrown exceptions, but hoover them
> all up in a postExecute() method, but I don't think that's possible :-/
>
> Maybe using something similar to log_message (but available outside of debug
> environment)?
>
> Right now I have an $alerts array and have an alerts partial, which contains
> handling and display logic for each exception (which is mostly placing the
> error into an "alerts" div, with the appropriate message via I18N helper).
> This is what I've commented out above.
>
> Is there a cleaner way of doing this? And one that isn't so... clunky?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Embedding symfony components in non-symfony web pages

2008-02-18 Thread forkmantis

This is an issue I've been dealing with.  I've inherited a 10 year old
legacy site of thousands of pages.  Unfortunately, it's on a server
that has to run PHP 4.  I've begun rebuilding portions of the app in
symfony on a separate server.  Both apps share the same database.  In
some cases, I've built symfony admin screens, and let the legacy site
handle the display.  In other cases, such as recent news lists, I've
built templates on the syfmony server and set "layout: off" in the
view.yml.  Then I'm just using curl to scrape the content from the
symfony server and display it on the production server.  This seems to
work reasonably well for read only data.

In the future, I'm thinking of using subdomains to conceal the fact
that some of the application runs on a separate server (i.e.
publications.site.com).

On Feb 17, 4:19 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
wrote:
> Sorry I'm not sure if I was very clear:
>
> You set up a module/action in symfony to create the content for the
> portion of the page that you want to use symfony for. You could just
> export the html for the portion without the whole page decoration.
>
> Then in standard PHP, you use an include (not sure you can do this over
> http) or you just open up the file and read the contents and out put it
> along with the rest of the page.
>
> Tom Haskins-Vaughan wrote:
> > So what if you use a PHP include to insert a portion of page that has
> > been rendered by symfony?
>
> > Balaji Srinivasan wrote:
> >> Hi Tom
> >> That works if the full page was served by symfony. We already use
> >> that. But now we have come to the point where portions of the page
> >> could be migrated to Symfony. In that case the full page will be
> >> served by the PHP code but we want portions of it to be rendered by
> >> Symfony.
> >> Balaji
>
> >> On Feb 17, 2008, at 1:43 PM, Tom Haskins-Vaughan wrote:
>
> >>> Hi Balaji,
>
> >>> I've thought about this for an app I wrote in PHP that's in use at the
> >>> moment. I was thinking of putting symfony in a sub directory of the
> >>> web
> >>> root:www.domain.com/symfony/
>
> >>> There were going to be session issues, that I think someone on the
> >>> list
> >>> suggested possible solutions for, but that I never explored in depth.
>
> >>> The two apps could use the same database.
>
> >>> I know this isn't a comprehensive answer but hope it helps
> >>> nonetheless.
>
> >>> Tom
>
> >>> Balaji Srinivasan wrote:
>  Hi There
>  I have a current application that was developed in plain PHP. I want
>  to migrate it over to Symfony. Instead of rewriting everything at one
>  shot, I was wondering if there was a way where I could migrate
>  portions of the web page (akin to component-slots) over to symfony
>  and
>  have it embedded in the legacy webpage.
>  Is there a way to achieve this? This would help in the migration (and
>  I suspect it will also encourage more people to migrate to Symfony).
>
>  Thanks
>  Balaji
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: conditional validation

2008-02-15 Thread forkmantis

Gergo,

This snippet should help you out:

http://www.symfony-project.org/snippets/snippet/232

On Feb 15, 4:39 am, pihentagy <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> I need something conditional validation for the following:
> There is a register form in my app, and after registration, you can
> edit your details.
> Some fields are not editable, and some fields are required just when
> registering (eg. login name and captcha).
> But there are plenty of common fields.
>
> The problem:
> Now I have done the retistration view, use validation with yaml config
> file, which is pretty cool.
>
> I'd like to follow the DRY principle.
> The best thing I've found so far is to move the conditional
> validations to the validateXXX methods (and the edit view will render
> the register template).
> But that would be ugly, becase then I will have validation in the yaml
> file AND validation in the validateXX methods, so my validation logic
> would be scattered around.
>
> The other option is to copy-paste the view and the validation file and
> edit it. That would also be bad (violates DRY).
>
> Has anybody a good solution for this problem?
>
> Thanks in advance
> Gergo
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfPropelActAsTaggableBehaviorPlugin: custom queries

2008-02-15 Thread forkmantis

Xavier,

Thanks very much.  I have installed the plugin using svn:externals, so
it won't be a problem for me to grab the latest version.  I guess that
particular commit escaped my attention, but I'll check it out now.

In my particular case this should work perfect.  I need a "recent
list" from one particular model/table, and I need to be able to put it
into sfPropelPager w/ a sort-by column.

On Feb 14, 5:26 pm, Xavier Lacot <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> forkmantis a écrit :
>
> > Using TagPeer::getTaggedWith() with the option 'model' => 'foo' is
> > great for retrieving records from a table with one or more tags.
>
> > I'd like to be able to add more criteria, however, such as an order by
> > clause, or additional where parameters.  If anyone has done something
> > like this, I'd like to hear about your approach.
>
> > will
>
> Hi Will,
>
> I commited a few days ago the method TagPeer::getTaggedWithCriteria()
> (only available in the trunk of the plugin for the moment, but maybe
> would you like that I build a package ?), that returns a Criteria that
> you can complete to suit your needs to the best.
>
> The usage is described in the 
> documentation:http://trac.symfony-project.com/wiki/sfPropelActAsTaggableBehaviorPlu...
>
> In comparison to TagPeer::getTaggedWith(), this method
> TagPeer::getTaggedWithCriteria() has the inconvenient to limit the
> selection to one single model at one time, while
> TagPeer::getTaggedWith() has the capacity to handle heterogeneous
> taggable models in one call. For instance, if you call
>
> $objects = TagPeer::getTaggedWith('paris');
>
> You will get in the array "$objects" all the objects tagged with the tag
> "paris" (so, for instance, Photos, Posts, Restaurants, Articles, etc.)
>
> xavier
> - --
> Xavier Lacothttp://www.clever-age.com
> Clever Age - conseil en architecture technique
> Tél: +33 1 53 34 66 10  Fax: +33 1 53 34 65 20
>
> Clever Age vous invite à ses 
> petits-déjeunershttp://www.clever-age.com/actualites/petits-dejeuners/
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iD8DBQFHtM4zxnFhiMcsYUsRAnpXAJ9hRhOyMyOhvofkPzEuD/0QlT0zRQCgkdes
> TY17VCdpcxRPDLfJdq/dibo=
> =CGeg
> -END PGP SIGNATURE-
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfPropelActAsTaggableBehaviorPlugin: custom queries

2008-02-14 Thread forkmantis

Using TagPeer::getTaggedWith() with the option 'model' => 'foo' is
great for retrieving records from a table with one or more tags.

I'd like to be able to add more criteria, however, such as an order by
clause, or additional where parameters.  If anyone has done something
like this, I'd like to hear about your approach.

will
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfGuardPlugin_schema.custom.yml

2008-01-29 Thread forkmantis

Gilles,

Have you tried creating a schema for the sfGuardUserProfile model as
described in the README?

http://trac.symfony-project.com/wiki/sfGuardPlugin

You may also want to look at the sfPropelAlternativeSchemaPlugin

http://trac.symfony-project.com/wiki/sfPropelAlternativeSchemaPlugin

On Jan 29, 12:28 pm, Gilles Fabio <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have a problem with sfGuardPlugin. Well, this is my configuration:
>
>   - symfony 1.0.11
>   - sfGuardPlugin 1.1.13
>   - sfPropelAlternativeSchemaPlugin 1.0.0
>
> I need to extend the sf_guard_user table without modifying the
> schema.yml plugin file (of course). So, I asked to Google and I found
> the sfGuardPlugin_schema.custom.yml (in the project config folder)
> solution. Happy I was until I tried. I rebuilt the model, cleared the
> cache and nothing... sfGuard ignores my
> sfGuardPlugin_schema.custom.yml file. I tried without using
> sfPropelAlternativeSchemaPlugin and the same. I tried with the svn
> version of sfGuardPlugin and the same.
>
> My sfGuardPlugin_schema.custom.yml file begins with:
>
> propel:
>   sf_guard_user:
> _attributes:{ phpName: sfGuardUser }
>
> I maybe did something wrong. I maybe skipped something. Maybe it's a
> bug.
>
> Does someone could help me please?
>
> Cheers,
> Gilles
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfLucenePlugin: Class 'myUser' not found

2007-12-19 Thread forkmantis

I know this is an old thread, but in case anyone finds it in the
archives, I wanted to report that I resolved the issue by upgrading
php and mysql on the specific server that was giving me trouble.

The currently running versions are:

PHP 5.2.4
mysql  Distrib 5.0.45

On Nov 27, 9:59 am, forkmantis <[EMAIL PROTECTED]> wrote:
> Thanks, Ryan.
>
> I have quadruple-checked for the presence of the myUser.class.php
> file, and have  cleared cache so many times the paint is flaking off
> of the "c" key on my keyboard.
>
> As you suggested, I built a new frontend controller for the search
> environment and browsed through the site using that controller.  Here
> is what I have found:
>
> * the lucene-init task does not generate a config_autoload.yml.php in
> the /cache/admin/search/config directory
> * browsing the site w/ the search environment front controller does
> create config_autoload.yml.php in the /cache/admin/search/config
> directory
> * running the lucene-init task after the config_autoload.yml.php file
> exists still results in the fatal error for not being able to find the
> myUser.class.php file.
> * On a separate server, lucene-init does generate the
> config_autoload.yml.php file and execute without error.
>
> It would seem that the trouble I'm encountering is related to my
> development server, and not to the project itself.
>
> After running the task on another server, I see that it just generates
> two search.yml files.  I'll be glad to pitch in and help w/ further
> troubleshooting if anyone else encounters a similar problem.
> Otherwise, I've manually copied the search.yml files over from the
> other server and am content to move on.
>
> Thanks again for your detailed help.
>
> On Nov 27, 7:07 am, weaverryan <[EMAIL PROTECTED]> wrote:
>
> > Sticking my head out here a little as I haven't used this plugin yet,
> > but I would check a few things.
>
> > In essence, the myUser class isn't being found for the specific
> > application. First, be absolutely sure that
> > the myUser.class.php file is located in the /apps//lib directory.
> > Double, Triple check that this file is
> > present (I have no idea why it wouldn't be there). Also, double,
> > triple check that the cache is cleared.
>
> > This task handles is library autoloading in the file sfLucenePlugin/
> > data/tasks/sfPakeLucene.php file
> > in the _load_application_environment() function. This function
> > initializes the application using the search
> > environment, so you absolutely should have a file called
> > config_autoload.yml.php in your
> > cache//search/config after running this task. Why you wouldn't
> > have that file is a mystery. Without
> > this file, nothing is being loaded - so it makes sense that myUser
> > wouldn't be found.
>
> > Again, there area 1000 reasons why this might happen - but in 99.99%
> > of the cases, it's something simple
> > like not clearing the cache, or some strange change you've made in
> > your application.
>
> > One thing you might do is create a new frontend controller, maybe
> > search.php in your web folder with the following
> > contents:
>
> > 
> > define('SF_ROOT_DIR', sfConfig::get('sf_root_dir'));
> > define('SF_APP', $app);
> > define('SF_ENVIRONMENT', 'search');
> > define('SF_DEBUG', true);
>
> > require_once
> > SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
>
> > sfContext::getInstance()->getController()->dispatch();
>
> > Now, surf to your application/search.php (or whatever you called the
> > above controller). Surfing this application is in essence what the
> > lucene task is trying to do. Any errors here are most likely
> > being suffered by the lucene task as well. By surfing this app, you
> > should absolutely now have a config_autoload.yml.php in the above-
> > mentioned cache directory.
>
> > Hopefully this gives you something to chase after.
>
> > Ryan
>
> > On Nov 26, 4:46 pm,forkmantis<[EMAIL PROTECTED]> wrote:> I checked out the 
> > project I am having trouble with onto a new
> > > machine.  On the new machine, I was able to execute the lucene-init
> > > task successfully.  On the original machine, I deleted the entire
> > > project and did a fresh checkout from svn, and am still not able to
> > > execute the task.
>
> > > I did notice that on the second machine under the cache//sear

[symfony-users] Re: sfLucenePlugin: Class 'myUser' not found

2007-11-27 Thread forkmantis

Thanks, Ryan.

I have quadruple-checked for the presence of the myUser.class.php
file, and have  cleared cache so many times the paint is flaking off
of the "c" key on my keyboard.

As you suggested, I built a new frontend controller for the search
environment and browsed through the site using that controller.  Here
is what I have found:

* the lucene-init task does not generate a config_autoload.yml.php in
the /cache/admin/search/config directory
* browsing the site w/ the search environment front controller does
create config_autoload.yml.php in the /cache/admin/search/config
directory
* running the lucene-init task after the config_autoload.yml.php file
exists still results in the fatal error for not being able to find the
myUser.class.php file.
* On a separate server, lucene-init does generate the
config_autoload.yml.php file and execute without error.

It would seem that the trouble I'm encountering is related to my
development server, and not to the project itself.

After running the task on another server, I see that it just generates
two search.yml files.  I'll be glad to pitch in and help w/ further
troubleshooting if anyone else encounters a similar problem.
Otherwise, I've manually copied the search.yml files over from the
other server and am content to move on.

Thanks again for your detailed help.

On Nov 27, 7:07 am, weaverryan <[EMAIL PROTECTED]> wrote:
> Sticking my head out here a little as I haven't used this plugin yet,
> but I would check a few things.
>
> In essence, the myUser class isn't being found for the specific
> application. First, be absolutely sure that
> the myUser.class.php file is located in the /apps//lib directory.
> Double, Triple check that this file is
> present (I have no idea why it wouldn't be there). Also, double,
> triple check that the cache is cleared.
>
> This task handles is library autoloading in the file sfLucenePlugin/
> data/tasks/sfPakeLucene.php file
> in the _load_application_environment() function. This function
> initializes the application using the search
> environment, so you absolutely should have a file called
> config_autoload.yml.php in your
> cache//search/config after running this task. Why you wouldn't
> have that file is a mystery. Without
> this file, nothing is being loaded - so it makes sense that myUser
> wouldn't be found.
>
> Again, there area 1000 reasons why this might happen - but in 99.99%
> of the cases, it's something simple
> like not clearing the cache, or some strange change you've made in
> your application.
>
> One thing you might do is create a new frontend controller, maybe
> search.php in your web folder with the following
> contents:
>
> 
> define('SF_ROOT_DIR', sfConfig::get('sf_root_dir'));
> define('SF_APP', $app);
> define('SF_ENVIRONMENT', 'search');
> define('SF_DEBUG', true);
>
> require_once
> SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
>
> sfContext::getInstance()->getController()->dispatch();
>
> Now, surf to your application/search.php (or whatever you called the
> above controller). Surfing this application is in essence what the
> lucene task is trying to do. Any errors here are most likely
> being suffered by the lucene task as well. By surfing this app, you
> should absolutely now have a config_autoload.yml.php in the above-
> mentioned cache directory.
>
> Hopefully this gives you something to chase after.
>
> Ryan
>
> On Nov 26, 4:46 pm, forkmantis <[EMAIL PROTECTED]> wrote:> I checked out the 
> project I am having trouble with onto a new
> > machine.  On the new machine, I was able to execute the lucene-init
> > task successfully.  On the original machine, I deleted the entire
> > project and did a fresh checkout from svn, and am still not able to
> > execute the task.
>
> > I did notice that on the second machine under the cache//search/
> > config directory I had a config_autoload.yml.php file, but on the
> > original machine this file was missing.  So it appears for some reason
> > that the config_autoload.yml file is not being generated on one server
> > while it is on the other.  I don't see anything interesting in the
> > _search.log file to indicate what the problem may be.
>
> > On Nov 26, 10:03 am, forkmantis <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the response, Carl.
>
> > > I have just checked out -r6162 of sfLucenePlugin into my project,
> > > cleared cache, and looked at my factories.yml for the application in
> > > question.  The co

[symfony-users] Re: sfLucenePlugin: Class 'myUser' not found

2007-11-26 Thread forkmantis

I checked out the project I am having trouble with onto a new
machine.  On the new machine, I was able to execute the lucene-init
task successfully.  On the original machine, I deleted the entire
project and did a fresh checkout from svn, and am still not able to
execute the task.

I did notice that on the second machine under the cache//search/
config directory I had a config_autoload.yml.php file, but on the
original machine this file was missing.  So it appears for some reason
that the config_autoload.yml file is not being generated on one server
while it is on the other.  I don't see anything interesting in the
_search.log file to indicate what the problem may be.

On Nov 26, 10:03 am, forkmantis <[EMAIL PROTECTED]> wrote:
> Thanks for the response, Carl.
>
> I have just checked out -r6162 of sfLucenePlugin into my project,
> cleared cache, and looked at my factories.yml for the application in
> question.  The commented defaults have not been altered:
>
> #  user:
> #class: myUser
>
> I still get this error when running "symfony lucene-init ":
>
> PHP Fatal error:  Class 'myUser' not found in /lib/symfony/user/
> sfUser.class.php on line 107
>
> I'm not totally sure how to troubleshoot from here.
>
> Carl Vondrick wrote:
> > On Friday, November 23, 2007, forkmantis wrote:
> > > PHP Fatal error: �Class 'myUser' not found in //lib/symfony/user/
> > > sfUser.class.php on line 107
>
> > Hi,
> > This issue is not related to sfLucene.  Try clearing your cache and checking
> > your configuration factories for the user.
>
> > Carl
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfLucenePlugin: Class 'myUser' not found

2007-11-26 Thread forkmantis

Thanks for the response, Carl.

I have just checked out -r6162 of sfLucenePlugin into my project,
cleared cache, and looked at my factories.yml for the application in
question.  The commented defaults have not been altered:

#  user:
#class: myUser

I still get this error when running "symfony lucene-init ":

PHP Fatal error:  Class 'myUser' not found in /lib/symfony/user/
sfUser.class.php on line 107

I'm not totally sure how to troubleshoot from here.

Carl Vondrick wrote:
> On Friday, November 23, 2007, forkmantis wrote:
> > PHP Fatal error: �Class 'myUser' not found in //lib/symfony/user/
> > sfUser.class.php on line 107
>
> Hi,
> This issue is not related to sfLucene.  Try clearing your cache and checking
> your configuration factories for the user.
>
> Carl
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfLucenePlugin: Class 'myUser' not found

2007-11-23 Thread forkmantis

I'm using symfony 1.0.8 and svn -r6096 version of sfLucenePlugin.  I'm
trying to set the plugin up per the directions on the wiki page, but
when I run symfony lucene-init , I get this error:

PHP Fatal error:  Class 'myUser' not found in //lib/symfony/user/
sfUser.class.php on line 107

I have a myUser.class.php for the app in question (//lib/
myUser.class.php).

Any help in resolving this would be greatly appreciated.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---