Re: [symfony-users] ayudenme

2010-10-18 Thread Gabo
Hola,

Intenta no colocando las comillas simples.

Intenta hacer la conexion por algun cliente web o de windows y no desde
doctrine como (phpmyadmin) .
www.*phpmyadmin*.net/

On Mon, Oct 18, 2010 at 9:30 PM,  wrote:

>
> Tengo el siguiente problema, cuando genero  php symfony doctrine:insert-sql
>
> me da este error:
> PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 
> 'root'@'localhost'
> (using password: NO)
>
> Este es my archivo databases.yml:
>
> all:
>  doctrine:
>class: sfDoctrineDatabase
>param:
>  dsn: 'mysql:host=localhost;dbname=jobeet'
>  username: root
>  password: 'admin'
>
> Ayudenme con esto please
>
> --
> 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
>

-- 
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] ayudenme

2010-10-18 Thread rfvillavicencio

Tengo el siguiente problema, cuando genero  php symfony doctrine:insert-sql

me da este error:
PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 
'root'@'localhost' (using password: NO)

Este es my archivo databases.yml:

all:
  doctrine:
class: sfDoctrineDatabase
param:
  dsn: 'mysql:host=localhost;dbname=jobeet'
  username: root
  password: 'admin'

Ayudenme con esto please

-- 
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


Re: [symfony-users] sobre el error con la base de datos mysql

2010-10-18 Thread Gustavo Adrian
Configuraste la conexion a la base de datos? estas intentando acceder con el
usuario root y sin clave. Verifica si esto es correcto en el archivo
'config/databases.yml'

On Mon, Oct 18, 2010 at 10:14 PM, UCI  wrote:

> cuando genero php symfony doctrine:insert-sql
> me da este error como puedo arreglarlo
>
>  PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user
> 'root'@'localhost' (using password: NO)
>
>
> Help Me...
>
> --
> 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
>

-- 
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] sobre el error con la base de datos mysql

2010-10-18 Thread UCI
cuando genero php symfony doctrine:insert-sql
me da este error como puedo arreglarlo

 PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user
'root'@'localhost' (using password: NO)


Help Me...

-- 
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] DI & factory

2010-10-18 Thread Daniel
Hello, lady and gentlemans!

I have some problems with configure this code:

class Container extends sfServiceContainer {
...
protected function getAclService() {

if (isset($this->shared['acl'])) return $this->shared['acl'];

$factory = new Acl_AclFactory($this->db);
$instance = $factory->createAcl();

return $this->shared['acl'] = $instance;
}
...
}

Is any solution exists?

Tank you.

-- 
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] $_GET['variable'] after post

2010-10-18 Thread Parijat Kalia
Hello people...

Not sure I am grasping this here, but it is php related and not HTML
related.

I have a web template, that retrieves a parameter from the URL, essentially,
it goes something like this...


module/phpPage?qId=138;

based on this id, certain SQL queries are executed in the action and the
corresponding data is loaded into the templates

The page has a delete button, so essentially a form, and it is expected to
post back to itself.

SO now in the $this->getRequest()->isMethod('post')

I try and retrieve the parameter qId from the URL...like this:

$qId = $_GET['qId'];

However, it does not retain the parameter like it should, or maybe it should
not...

Can anyone explain why this happens, and what is the remedy for it?

Thanks to ya'all!

-- 
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] perform symfony task function in module action

2010-10-18 Thread Joshua
I'm using Symfony's Tasks to run cronjobs at periodic times. There is
a need to perform the same functions manually in the admin
application. Looking for suggestions how to do this properly.
Obviously, I would prefer not to have duplicate code, one in the Task
class and one in the Action class. Please and thank you.

-- 
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


Re: [symfony-users] Clear cache in action

2010-10-18 Thread Sela Yair
i couldn't find the sfClearCachTask, is it Symfony 1.4 or 2.0?
I used instead a snippet.
http://snippets.symfony-project.org/snippet/363


On 12 October 2010 09:39, Pierre-Yves LEBECQ  wrote:

> Did you try to instanciate the sfClearCacheTask and run it ? I see no
> reason for this not to work.
>
> $ccTask = new sfClearCacheTask();
> $ccTask->run();
>
> --
> Pierre-Yves LEBECQ
>
>
> 2010/10/12 Sela Yair 
>
>>  is there a single command in sfConfigCache to clear all the cache?
>> i want to enable from the admin to do similar to symfony cc
>>
>> On 8 October 2010 15:00, Damien Alexandre wrote:
>>
>>> For this kind of question,
>>> make sure to search in the documentation :
>>>
>>>
>>> http://www.symfony-project.org/jobeet/1_4/Doctrine/en/21#chapter_21_removing_the_cache_cache_removal
>>>
>>> And / Or in the snippets :
>>>
>>>
>>> http://snippets.symfony-project.org/snippets/tagged/cache+clear/order_by/date
>>>
>>>
>>> Also,
>>> in your code Michal, you don't need to call the sfContext singleton, just
>>> $this->getContext().
>>>
>>> On Thu, Oct 7, 2010 at 5:25 PM, Eno  wrote:
>>>
 On Thu, 7 Oct 2010, [ISO-8859-2] Micha³ Piotrowski wrote:

 > 2010/10/7 HAUSa :
 > > Is there a way to clear my cache in an action, using PHP?
 >
 > $cacheManager = sfContext::getInstance()->getViewCacheManager();
 > if ($cacheManager) {
 >
 $cacheManager->remove('blog/index?username='.$username.'&sf_format=html');
 >
 $cacheManager->remove('blog/index?username='.$username.'&sf_format=atom');
 >   $cacheManager->remove('main/show?username='.$username);
 > }

 If this isn't on an "admin" page, you probably should password-protect
 or
 filter request by IP.



 --


 --
 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

>>>
>>>
>>>
>>> --
>>> Damien ALEXANDRE
>>>
>>> --
>>> 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
>>>
>>
>>  --
>> 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
>>
>
>  --
> 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
>

-- 
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] Zend Lucene Search Results - Strange order

2010-10-18 Thread Jonathan Franks
I've followed the Jobeet Tutorial chapter on search and managed to implement a 
lucene based search engine for my site. It seems to be working but the result 
order doesn't make sense to me.

If I search for 'blue trousers', I would expect the results that contain that 
exact phrase to come up top, then the results that contain both words, followed 
by the results that contain only one of the words. But actually, the first 5 
results might only include the word 'trousers'. I know I can put the phrase in 
inverted commas to get the exact term only, or use AND to get results with both 
words only. But I expect a more natural result set when I don't use any search 
modifiers.

I've spent ages trawling the web for some advice on this and can't find 
anything. Am I doing something wrong or is this simply the way lucene works? I 
much prefer the type of result set I would get if I searched my site with 
google, but I want to use the results to retreive objects from my database, 
which I believe rules google out.

Any advice would be greatly appreciated,

Jonathan




-- 
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


Re: [symfony-users] Re: front end product gallery

2010-10-18 Thread Alan Bem
@richtermeister, you really should look into sfImageTransformExtraPlugin

2010/10/18 Richtermeister 
>
> I'm using the sfImageTransformPlugin in conjunction with the helpers
> below:
>
>
> /**
>  * Get the path of a generated thumbnail for any given image
>  *
>  * @param string $source
>  * @param int $width
>  * @param int $height
>  * @param boolean $absolute
>  * @return string
>  */
> function thumbnail_path($source, $width = null, $height = null,
> $absolute = false)
> {
>        $thumbnails_dir = sfConfig::get('app_sfThumbnail_thumbnails_dir',
> 'uploads/thumbnails');
>        $quality = sfConfig::get("app_sfThumbnail_quality", 90);
>
>        $width = intval($width);
>        $height = intval($height);
>
>        if (substr($source, 0, 1) == '/') {
>                $realpath = sfConfig::get('sf_web_dir') . $source;
>        } else {
>                $realpath = sfConfig::get('sf_web_dir') . '/images/' . $source;
>        }
>
>        $real_dir = dirname($realpath);
>        $thumb_dir = '/' . $thumbnails_dir . substr($real_dir,
> strlen(sfConfig::get('sf_web_dir')));
>        $thumb_name = preg_replace('/^(.*?)(\..+)?$/', '$1_' . $width . 'x' .
> $height . '$2', basename($source));
>
>        $img_from = $realpath;
>        $thumb = $thumb_dir . '/' . $thumb_name;
>        $img_to = sfConfig::get('sf_web_dir') . $thumb;
>
>        if (!is_dir(dirname($img_to))) {
>                if (!mkdir(dirname($img_to), 0777, true)) {
>                        throw new Exception('Cannot create directory for 
> thumbnail : ' .
> $img_to);
>                }
>        }
>
>        if (!is_file($img_to) || filemtime($img_from) > filemtime($img_to)) {
>
>        if(!sfConfig::get("app_sfThumbnail_safe_mode", true) ||
> file_exists($img_from)) {
>          $thumbnail = new sfImage($img_from);
>          $thumbnail -> thumbnail($width, $height, 'scale');
>          $thumbnail -> setQuality($quality);
>          $thumbnail -> saveAs($img_to);
>        }
>        }
>
>        return image_path($thumb, $absolute);
> }
>
> /**
>  * Get the  tag to include a thumbnail into your web page
>  *
>  * @param string $source
>  * @param int $width
>  * @param int $height
>  * @param mixed $options
>  * @return string
>  */
> function thumbnail_tag($source, $width, $height, $options = array())
> {
>        $img_src = thumbnail_path($source, $width, $height, false);
>        return image_tag($img_src, $options);
> }
>
>
>
>
>
> This way you can call thumbnail_tag('...path to image', 200, 200); and
> the conversion is happening on the fly - once.
>
> Daniel
>
>
> On Oct 18, 12:33 am, Alan Bem  wrote:
> > Use sfImageTransformExtraPlugin - it is very easy to use, customizable
> > plugin, that requires almost nothing to make it work (transparently).
> >
> > 2010/10/17 xpanshun 
> >
> > > How would I call to this class from my indexSuccess.php to get the
> > > images to resize as they are displayed?
> >
> > > *See coding in original post
> >
> > > On Oct 17, 2:43 pm, Martin Ibarra Cervantes
> > >  wrote:
> > > > hi, you can try use this class with sfThumbnailPlugin
> >
> > > >http://mic.misretratos.com/2010/10/17/sfresizedfile/
> >
> > > > regards.
> >
> > > > On Sun, Oct 17, 2010 at 9:45 AM, xpanshun  wrote:
> > > > > Hi all,
> >
> > > > > I am trying to create a product gallery on the front end of my site.
> >
> > > > > In my database a have a product table with a field containing the path
> > > > > to the image for each product called 'product_img_path'. I can bring
> > > > > up each product image with the following coding:
> >
> > > > > 
> > > > >  
> > > > >    
> > > > >            
> > > > >                  getProductImgPath()) 
> > > > > ?>
> > > > >            
> > > > >    
> > > > >  
> > > > > 
> >
> > > > > The problem is: these are full size images. I want to create
> > > > > thumbnails with the sfThumbnailPlugin plugin, but I don't know how or
> > > > > where to code it correctly to make it work.
> >
> > > > > I've found a few tutorials utilizing several other plugins for an
> > > > > image gallery, but they are either for Propel users (I use doctrine)
> > > > > or uploading images. I have these images in a file directory and plug
> > > > > them in to the database for each product. I'm sure there are ways
> > > > > around my issue, but I really wanted to use the sfThumbnailPlugin
> > > > > alone.
> >
> > > > > Please, how can I use sfThumbnailPlugin to shrink my images on the
> > > > > index page? [I don't necessarily want to have to save these thumbnails
> > > > > either, if possible]
> >
> > > > > P.S. I understand everyone has their own opinions on which ways are
> > > > > best to make image galleries or have images in your database, but
> > > > > please if there is just a solution to the way I have it set up here I
> > > > > would appreciate it.
> >
> > > > > Thanks in advance!
> >
> > > > > --
> > > > > If you want to report a vulnerability issue on symfony, please send it
> > > to security at symfony-project.com
>

[symfony-users] Re: front end product gallery

2010-10-18 Thread Richtermeister
I'm using the sfImageTransformPlugin in conjunction with the helpers
below:


/**
 * Get the path of a generated thumbnail for any given image
 *
 * @param string $source
 * @param int $width
 * @param int $height
 * @param boolean $absolute
 * @return string
 */
function thumbnail_path($source, $width = null, $height = null,
$absolute = false)
{
$thumbnails_dir = sfConfig::get('app_sfThumbnail_thumbnails_dir',
'uploads/thumbnails');
$quality = sfConfig::get("app_sfThumbnail_quality", 90);

$width = intval($width);
$height = intval($height);

if (substr($source, 0, 1) == '/') {
$realpath = sfConfig::get('sf_web_dir') . $source;
} else {
$realpath = sfConfig::get('sf_web_dir') . '/images/' . $source;
}

$real_dir = dirname($realpath);
$thumb_dir = '/' . $thumbnails_dir . substr($real_dir,
strlen(sfConfig::get('sf_web_dir')));
$thumb_name = preg_replace('/^(.*?)(\..+)?$/', '$1_' . $width . 'x' .
$height . '$2', basename($source));

$img_from = $realpath;
$thumb = $thumb_dir . '/' . $thumb_name;
$img_to = sfConfig::get('sf_web_dir') . $thumb;

if (!is_dir(dirname($img_to))) {
if (!mkdir(dirname($img_to), 0777, true)) {
throw new Exception('Cannot create directory for 
thumbnail : ' .
$img_to);
}
}

if (!is_file($img_to) || filemtime($img_from) > filemtime($img_to)) {

if(!sfConfig::get("app_sfThumbnail_safe_mode", true) ||
file_exists($img_from)) {
  $thumbnail = new sfImage($img_from);
  $thumbnail -> thumbnail($width, $height, 'scale');
  $thumbnail -> setQuality($quality);
  $thumbnail -> saveAs($img_to);
}
}

return image_path($thumb, $absolute);
}

/**
 * Get the  tag to include a thumbnail into your web page
 *
 * @param string $source
 * @param int $width
 * @param int $height
 * @param mixed $options
 * @return string
 */
function thumbnail_tag($source, $width, $height, $options = array())
{
$img_src = thumbnail_path($source, $width, $height, false);
return image_tag($img_src, $options);
}





This way you can call thumbnail_tag('...path to image', 200, 200); and
the conversion is happening on the fly - once.

Daniel


On Oct 18, 12:33 am, Alan Bem  wrote:
> Use sfImageTransformExtraPlugin - it is very easy to use, customizable
> plugin, that requires almost nothing to make it work (transparently).
>
> 2010/10/17 xpanshun 
>
> > How would I call to this class from my indexSuccess.php to get the
> > images to resize as they are displayed?
>
> > *See coding in original post
>
> > On Oct 17, 2:43 pm, Martin Ibarra Cervantes
> >  wrote:
> > > hi, you can try use this class with sfThumbnailPlugin
>
> > >http://mic.misretratos.com/2010/10/17/sfresizedfile/
>
> > > regards.
>
> > > On Sun, Oct 17, 2010 at 9:45 AM, xpanshun  wrote:
> > > > Hi all,
>
> > > > I am trying to create a product gallery on the front end of my site.
>
> > > > In my database a have a product table with a field containing the path
> > > > to the image for each product called 'product_img_path'. I can bring
> > > > up each product image with the following coding:
>
> > > > 
> > > >  
> > > >    
> > > >            
> > > >                  getProductImgPath()) ?>
> > > >            
> > > >    
> > > >  
> > > > 
>
> > > > The problem is: these are full size images. I want to create
> > > > thumbnails with the sfThumbnailPlugin plugin, but I don't know how or
> > > > where to code it correctly to make it work.
>
> > > > I've found a few tutorials utilizing several other plugins for an
> > > > image gallery, but they are either for Propel users (I use doctrine)
> > > > or uploading images. I have these images in a file directory and plug
> > > > them in to the database for each product. I'm sure there are ways
> > > > around my issue, but I really wanted to use the sfThumbnailPlugin
> > > > alone.
>
> > > > Please, how can I use sfThumbnailPlugin to shrink my images on the
> > > > index page? [I don't necessarily want to have to save these thumbnails
> > > > either, if possible]
>
> > > > P.S. I understand everyone has their own opinions on which ways are
> > > > best to make image galleries or have images in your database, but
> > > > please if there is just a solution to the way I have it set up here I
> > > > would appreciate it.
>
> > > > Thanks in advance!
>
> > > > --
> > > > 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.

[symfony-users] [admin generator] - Custom message on object creation

2010-10-18 Thread ruigoncalves
Hi!

I am currently using symfony admin generator in order to create a
backend administration module for a project. I would like to know how
can I custom the displayed message to the user when an object of a
certain class is successfully created. I know that I must add some
logic/override the executeCreate()/executeNew() actions, but I don't
really know who.

Thanks in advance,
Best regards!

-- 
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: sfTeraWurfl

2010-10-18 Thread qp
I did manage to get rid of the message by turning off error reporting
just before execution of the code segment:

i.e:
error_reporting(0);
if($this->dbcon->more_results()){
 .

}


Am not sure this is the best approachI still need to hear on
related experiences.





On Oct 18, 6:24 pm, qp  wrote:
> Hi,
>
> Am trying to use the sfTeraWurflPlugin plugin and I keep getting the
> following error:
>
> "PHP Strict Standards:  mysqli::next_result(): There is no next result
> set. Please, call mysqli_more_results()/mysqli::more_results() to
> check whether to call this function/method in //.../plugins/
> sfTeraWurflPlugin/lib/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
> on line 110"
>
> Am not sure if this is a bug in the plugin or just specific to my
> setup. I even tried enclosing the above code segment as recommended
> above: i.e
>
> if($this->dbcon->more_results()){
>  .
>
> }
>
> but i still get same error message.
>
> Anyone with an experience on this?

-- 
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] sfTeraWurfl

2010-10-18 Thread qp
Hi,

Am trying to use the sfTeraWurflPlugin plugin and I keep getting the
following error:

"PHP Strict Standards:  mysqli::next_result(): There is no next result
set. Please, call mysqli_more_results()/mysqli::more_results() to
check whether to call this function/method in //.../plugins/
sfTeraWurflPlugin/lib/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
on line 110"

Am not sure if this is a bug in the plugin or just specific to my
setup. I even tried enclosing the above code segment as recommended
above: i.e

if($this->dbcon->more_results()){
 .
}

but i still get same error message.


Anyone with an experience on this?

-- 
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] Blob __toString problem

2010-10-18 Thread Pavel Pecheny
Hello, everyone


i have an error: "Unable to escape value "NULL". when i retreiving
blob data feild $table1s->getDescription();...

my schema.yml

table1:
  columns:
 name:
type: string
 description:
type: blob



Yesterday it worked fine.

i use symfony 1.4.8. with doctrine

Thks for you help!

-- 
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


Re: [symfony-users] Re: Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-18 Thread Pavel Pecheny
Sorry for my late answer

Solution:

add to my /lib/form/doctrine/myclassFrom.class.php

$this->widgetSchema['contractor_id
']->setOption('table_method','getContractorByCredentials');

and to /lib/model/doctrine/contractorTable.class.php

for example

public function getContractorByCredentials()
{
$sf_user = sfContext::getInstance()->getUser();
if ($sf_user->hasCredential('manager'))
{
  $q = Doctrine_Core::getTable('contractor')
  ->createQuery('a')
  ->where('a.usertype = \'manager\'')
  ->execute();
  return $q;
} else return null;
}






2010/10/13 omar 

> can u post your solution to help others pls?
>
> --
> 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
>

-- 
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


Re: [symfony-users] Symfony 1.4 or Symfony 2?

2010-10-18 Thread Haulyn R. Jason
Thanks Gareth


I decide to vote symfony 2. I will feed back to mailing list in coding time.



On Mon, Oct 18, 2010 at 6:25 PM, Gareth McCumskey wrote:

> Thats what I meant by if the development time before going into production
> for your app will fall after Symfony 2.0's official launch as a complete
> product. The further from this launch date you expect your app to be ready
> the better as it will give the Symfony 2 developers the time to mature the
> product after getting feedback from production use.
>
>
> On Fri, Oct 15, 2010 at 5:05 PM, Haulyn R. Jason wrote:
>
>> Symfony 2.0 does not have any production experience, but I'd prefer 2.0.
>> Hard choice.
>>
>>
>>
>>
>> On Fri, Oct 15, 2010 at 8:19 PM, Gareth McCumskey 
>> wrote:
>>
>>> I guess the only way to answer this is .. depends. If you expect your
>>> project to be ready to go live for production use within the next couple of
>>> months, then you should use 1.4. Otherwise, if you expect the development
>>> time to be longer, say into next year, and you don't mind fixing things that
>>> may break as Symfony 2 matures closer to release, then go for Symfony 2.
>>>
>>> On Thu, Oct 14, 2010 at 4:21 PM, Haulyn R. Jason 
>>> wrote:
>>>
 Hi,

 I am new to Symfony, I compare the two version symfony1.4 and symfony2.0
 prefiew, I didn't find a way to upgrade symfony1.4 project to 2.0. But the
 official site says: 2.0 is not ready for production enviroment.

 At the moment, our project is on the way. We want to use 2.0, but I
 think I need some suggestion from symfony community.  Any suggestions are
 welcome, Thanks.


 --
 Thanks!

 http://www.haulynjason.net


 Haulyn Jason


  --
 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

>>>
>>>
>>>
>>> --
>>> Gareth McCumskey
>>> http://garethmccumskey.blogspot.com
>>> twitter: @garethmcc
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> Thanks!
>>
>> http://me.haulynjason.net
>>
>>
>> Haulyn Jason
>>
>>
>>  --
>> 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
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> 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
>



-- 
Thanks!

http://me.haulynjason.net

Haulyn Jason

-- 
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: Countries and their Continents?

2010-10-18 Thread Felix E. Klee
On Fri, Oct 15, 2010 at 7:03 PM, Felix E. Klee  wrote:
> My idea, so far, is to feed the first two columns of the following list
> in the MySQL database associated with the app:
>
>  http://en.wikipedia.org/wiki/List_of_soveriegn_states_and_depende
>  nt_territories_by_continent_(data_file)>

And that's what I did. With a bit of regexp magic, I changed the data
file into a fixture and loaded it into the database.

-- 
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


Re: [symfony-users] Symfony 1.4 or Symfony 2?

2010-10-18 Thread Gareth McCumskey
Thats what I meant by if the development time before going into production
for your app will fall after Symfony 2.0's official launch as a complete
product. The further from this launch date you expect your app to be ready
the better as it will give the Symfony 2 developers the time to mature the
product after getting feedback from production use.

On Fri, Oct 15, 2010 at 5:05 PM, Haulyn R. Jason wrote:

> Symfony 2.0 does not have any production experience, but I'd prefer 2.0.
> Hard choice.
>
>
>
>
> On Fri, Oct 15, 2010 at 8:19 PM, Gareth McCumskey wrote:
>
>> I guess the only way to answer this is .. depends. If you expect your
>> project to be ready to go live for production use within the next couple of
>> months, then you should use 1.4. Otherwise, if you expect the development
>> time to be longer, say into next year, and you don't mind fixing things that
>> may break as Symfony 2 matures closer to release, then go for Symfony 2.
>>
>> On Thu, Oct 14, 2010 at 4:21 PM, Haulyn R. Jason wrote:
>>
>>> Hi,
>>>
>>> I am new to Symfony, I compare the two version symfony1.4 and symfony2.0
>>> prefiew, I didn't find a way to upgrade symfony1.4 project to 2.0. But the
>>> official site says: 2.0 is not ready for production enviroment.
>>>
>>> At the moment, our project is on the way. We want to use 2.0, but I think
>>> I need some suggestion from symfony community.  Any suggestions are welcome,
>>> Thanks.
>>>
>>>
>>> --
>>> Thanks!
>>>
>>> http://www.haulynjason.net
>>>
>>>
>>> Haulyn Jason
>>>
>>>
>>>  --
>>> 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
>>>
>>
>>
>>
>> --
>> Gareth McCumskey
>> http://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>>
>> --
>> 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
>>
>
>
>
> --
> Thanks!
>
> http://me.haulynjason.net
>
>
> Haulyn Jason
>
>
>  --
> 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
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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


Re: [symfony-users] Re: front end product gallery

2010-10-18 Thread Alan Bem
Use sfImageTransformExtraPlugin - it is very easy to use, customizable
plugin, that requires almost nothing to make it work (transparently).

2010/10/17 xpanshun 

> How would I call to this class from my indexSuccess.php to get the
> images to resize as they are displayed?
>
> *See coding in original post
>
>
>
>
> On Oct 17, 2:43 pm, Martin Ibarra Cervantes
>  wrote:
> > hi, you can try use this class with sfThumbnailPlugin
> >
> > http://mic.misretratos.com/2010/10/17/sfresizedfile/
> >
> > regards.
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Oct 17, 2010 at 9:45 AM, xpanshun  wrote:
> > > Hi all,
> >
> > > I am trying to create a product gallery on the front end of my site.
> >
> > > In my database a have a product table with a field containing the path
> > > to the image for each product called 'product_img_path'. I can bring
> > > up each product image with the following coding:
> >
> > > 
> > >  
> > >
> > >
> > >  getProductImgPath()) ?>
> > >
> > >
> > >  
> > > 
> >
> > > The problem is: these are full size images. I want to create
> > > thumbnails with the sfThumbnailPlugin plugin, but I don't know how or
> > > where to code it correctly to make it work.
> >
> > > I've found a few tutorials utilizing several other plugins for an
> > > image gallery, but they are either for Propel users (I use doctrine)
> > > or uploading images. I have these images in a file directory and plug
> > > them in to the database for each product. I'm sure there are ways
> > > around my issue, but I really wanted to use the sfThumbnailPlugin
> > > alone.
> >
> > > Please, how can I use sfThumbnailPlugin to shrink my images on the
> > > index page? [I don't necessarily want to have to save these thumbnails
> > > either, if possible]
> >
> > > P.S. I understand everyone has their own opinions on which ways are
> > > best to make image galleries or have images in your database, but
> > > please if there is just a solution to the way I have it set up here I
> > > would appreciate it.
> >
> > > Thanks in advance!
> >
> > > --
> > > 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
>
> --
> 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
>

-- 
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