Search Results

Search found 2 results on 1 pages for 'twelve47'.

Page 1/1 | 1 

  • Where is the Bonjour COM library?

    - by Twelve47
    I've downloaded and installed the Bonjour SDK for Windows on my Win7 64bit machine. I've tried to build both of the the projects in C:\Program Files\Bonjour SDK\Samples\CS. However they both reference Bonjour, causing me to get the following build error 'Cannot load type library for reference "Bonjour". Library not registered.' Bonjour appears to be installed properly as I can run the Bonjour Printer Wizard and it appears to work properly. Any idea why Visual Studio can't find the Library? I'm using Visual Studio 2008 by the way.

    Read the article

  • Symfony 1.4 - Don't save a blank password on a executeUpdate action.

    - by Twelve47
    I have a form to edit a UserProfile which is stored in mysql db. Which includes the following custom configuration: public function configure() { $this->widgetSchema['password']=new sfWidgetFormInputPassword(); $this->validatorSchema['password']->setOption('required', false); // you don't need to specify a new password if you are editing a user. } When the user tries to save the executeUpdate method is called to commit the changes. If the password is left blank, the password field is set to '', but I want it to retain the old password instead of overwriting it. What is the best (/most in the symfony ethos) way of doing this? My solution was to override the setter method on the model (which i had done anyway for password encryption), and ignore blank values. public function setPassword( $password ) { if ($password=='') return false; // if password is blank don't save it. return $this->_set('password', UserProfile ::encryptPassword( $password )); } It seems to work fine like this, but is there a better way? If you're wondering I cannot use sfDoctrineGuard for this project as I am dealing with a legacy database, and cannot change the schema.

    Read the article

1