Re: [symfony-users] how custom error404

2010-11-30 Thread Martin Ibarra Cervantes
hi, Fracis , thanks  i change my index file to flase

Regards.


On Mon, Nov 29, 2010 at 10:58 PM, Francis Besset
wrote:

>
> Hi,
> In fact, you have this 404Exception if you have enabled display errors.
> In prod environment you must not enable the error display.
>
> In you index.php file:
> $configuration = ProjectConfiguration::getApplicationConfiguration(
> 'frontend', 'prod', false);
> *
> *
> *
> *
> *Francis.*
>
>
> 2010/11/30 Martin Ibarra Cervantes 
>
> yes i clear my cache with
>>
>> symfony cc
>>
>> and not work
>>
>> 404 | Not Found | sfError404Exceptionon this site
>>
>>
>> http://demo.misretratos.com.mx/autor/ibarra-ibarra/D5/sonido-64/5/Mexico.html
>>
>>
>>
>> On Mon, Nov 29, 2010 at 7:23 PM, Alex Pilon  wrote:
>>
>>> Did you clear your cache?
>>>
>>> On Mon, Nov 29, 2010 at 22:19, Martin Ibarra Cervantes <
>>> ibarra.cervan...@gmail.com> wrote:
>>>
>>>> hi , i try change the error 404 bue i cant :-(
>>>>
>>>> in my settings i put
>>>>
>>>> all:
>>>>   .settings:
>>>> # Form security secret (CSRF protection)
>>>> csrf_secret:
>>>> c605b8fd5372fe7b296c9656301e11e69721f2cdd32248
>>>>
>>>> # Output escaping settings
>>>> escaping_strategy:  true
>>>> escaping_method:ESC_SPECIALCHARS
>>>>
>>>> # Enable the database manager
>>>> use_database:   true
>>>> enabled_modules:  [default]
>>>>
>>>>   .actions:
>>>> *error_404_module: default
>>>> error_404_action: error404*
>>>>
>>>> and i make a module on my public application, the name default and an
>>>> action name error404
>>>>
>>>> but dont work
>>>>
>>>> you can 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
>>>>
>>>
>>>
>>>
>>> --
>>> Alex Pilon
>>> (613) 608-1480
>>>
>>> --
>>> 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


Re: [symfony-users] how custom error404

2010-11-29 Thread Martin Ibarra Cervantes
yes i clear my cache with

symfony cc

and not work

404 | Not Found | sfError404Exceptionon this site

http://demo.misretratos.com.mx/autor/ibarra-ibarra/D5/sonido-64/5/Mexico.html


On Mon, Nov 29, 2010 at 7:23 PM, Alex Pilon  wrote:

> Did you clear your cache?
>
> On Mon, Nov 29, 2010 at 22:19, Martin Ibarra Cervantes <
> ibarra.cervan...@gmail.com> wrote:
>
>> hi , i try change the error 404 bue i cant :-(
>>
>> in my settings i put
>>
>> all:
>>   .settings:
>> # Form security secret (CSRF protection)
>> csrf_secret:c605b8fd5372fe7b296c9656301e11e69721f2cdd32248
>>
>> # Output escaping settings
>> escaping_strategy:  true
>> escaping_method:ESC_SPECIALCHARS
>>
>> # Enable the database manager
>> use_database:   true
>> enabled_modules:  [default]
>>
>>   .actions:
>> *error_404_module: default
>> error_404_action: error404*
>>
>> and i make a module on my public application, the name default and an
>> action name error404
>>
>> but dont work
>>
>> you can 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
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>
> --
> 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] how custom error404

2010-11-29 Thread Martin Ibarra Cervantes
hi , i try change the error 404 bue i cant :-(

in my settings i put

all:
  .settings:
# Form security secret (CSRF protection)
csrf_secret:c605b8fd5372fe7b296c9656301e11e69721f2cdd32248

# Output escaping settings
escaping_strategy:  true
escaping_method:ESC_SPECIALCHARS

# Enable the database manager
use_database:   true
enabled_modules:  [default]

  .actions:
*error_404_module: default
error_404_action: error404*

and i make a module on my public application, the name default and an action
name error404

but dont work

you can 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] clear form after post

2010-11-16 Thread Martin Ibarra Cervantes
hi, i try clear my form after post with  jq_submit_to_remote,  i try
with this line

'complete' => jq_visual_effect('fadeOut',
'#indicator'). "$('#contact_form').resetForm()",

but dont work , dont clear or reset the input fields.


'eventocomentario/create',
'update' => 'comentario_evento',
'loading' => jq_visual_effect('fadeIn',  '#indicator'),
'complete' => jq_visual_effect('fadeOut',
'#indicator'). "$('#contact_form').resetForm()",

   )) ?>

-- 
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] jq_submit_to_remote examples

2010-11-14 Thread Martin Ibarra Cervantes
Hi, guys, i want use jquery on my forms but i dont have idea how use this.

for example this my little form


getObject()->isNew()): ?>





Usuario

   

   
   




i need send the data and update my table but without refresh the page,
because this only an comment.

only one field, but how use jq_submit_to_remote where ?  i search
examples in google but i dont see the bit.

the second stuff is in my action.

If you has an example please send me, or please send me an link.

Sorry for my English.

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


Re: [symfony-users] user-symfony

2010-11-10 Thread Martin Ibarra Cervantes
ExtJs ? que es ExtJS ?

2010/11/10 Alex Pilon :
> Hola, mi español no es bueno, sin embargo la integración de ExtJS es tan
> simple como incluir las bibliotecas ExtJS en sus aplicaciones de archivo
> view.yml. Más allá de eso creo que todo lo demás es una cuestión de usar
> ExtJS con php como lo haría normalmente, y que tendría que algunas de las
> preguntas más específicas con el fin de ayudarle aún más.
> On Wed, Nov 10, 2010 at 09:23,  wrote:
>>
>> Si alguno de ustedes me puede dar los pasos para integrar symfony con
>> extjs o enviarme alguna guia seria bueno...
>>
>> --
>> 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
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>
> --
> 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] Password fields

2010-11-09 Thread Martin Ibarra Cervantes
Please read the form on symfony  or the chapter ...  read the book
jobeet , you can :-)


On Sun, Nov 7, 2010 at 9:22 PM, Gareth McCumskey  wrote:
> erm ...  HTML 101
>
> On Mon, Nov 8, 2010 at 12:09 AM, xpanshun  wrote:
>>
>> How can I make the input of a certain field in a generated form (on
>> the frontend) displayed as a password type (i.e. )? Where in
>> the directory can this be altered?
>>
>> Thanks.
>>
>> --
>> 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
>

-- 
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] Trying to manage the credentials of the actions

2010-11-03 Thread Martin Ibarra Cervantes
the 2nd questión its with addCredential() when your user is authenticated

example:

 $user = $this->getUser();

if($r->getNivelId() == 1){
$user->addCredential('basic');
}

On Wed, Nov 3, 2010 at 9:52 AM, Javier Garcia  wrote:
> Hi,
>
> we want to manage the credentials of the actions of the backend from
> the backend.
>
> How to get the list of the actions of an app? After that we could show
> the credential of each one through getCredential().
>
> 2nd question: i found the function to get the credential of an action
> (getCredential()), but how to _set_ the credentials? I didn't find any
> setCredential() function...
>
> Javi
>
> --
> 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] 1 action , 2 templates

2010-11-03 Thread Martin Ibarra Cervantes
you can use partitials for the view

and in the acction pass the myvar


include_partitial('name', array('myvar'=>$myvar));


On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia  wrote:
> Hey guys,
> I have 2 very identical templates which have only a minor difference to
> them. Their action is exactly the same. So instead of retyping code or
> wasting precious space (LOL), here is what my genius conjours:
> private function privateAction()
> {
>  // do some amazing coding
> }
> public function executeMyAction1()
> {
>    $this->privateAction();
> }
>
> public function executeMyAction2()
> {
>    $this->privateAction();
> }
> So basically, I redefined the common action as a private action. Is this a
> fine strategy? Or do we have a better recommended strategy!
>
>
>
> --
> 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] Stylesheets issue

2010-11-02 Thread Martin Ibarra Cervantes
in your module->config->view.yml you can put the .css for this module.


On Tue, Nov 2, 2010 at 3:23 PM, Gábor Fási  wrote:
> You're looking for `use_stylesheet()`. `include_stylesheets()` outputs
> the  tags for all the css files in your view.yml and
> `use_stylesheet()` calls.
>
> On Tue, Nov 2, 2010 at 23:18, xpanshun  wrote:
>> Hi all,
>>
>> It seems that my pages only want to use the main.css stylesheet even
>> though I have the  line in them. What
>> could be wrong here?
>>
>> Thanks.
>>
>> --
>> 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


Re: [symfony-users] Display html tags from table

2010-10-31 Thread Martin Ibarra Cervantes
Thanks Gábor ...

On Sun, Oct 31, 2010 at 2:26 AM, Gábor Fási  wrote:
> That's because symfony escapes the data you pass to the view. If you
> want to display it as it is stored in the DB, use
>
>    echo $dias->getDescription(ESC_RAW);
>
> http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_output_escaping
>
> On Sun, Oct 31, 2010 at 03:23, Martin Ibarra Cervantes
>  wrote:
>> hi, iam using the tiny mce wysinyg editor and i am save the html tags
>> into the database,
>>
>> with my editor save:
>>
>>  Este es un bonito dia buen dia 
>>
>> but when i get the data back from the table
>>
>> and try display in my view
>>
>> echo $dias->getDescripcion();
>>
>> display with all html tags and not display bolds words [buen dia]
>>
>>  Este es un bonito dia buen dia 
>>
>>
>> you can 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
>

-- 
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: Display html tags from table

2010-10-30 Thread Martin Ibarra Cervantes
hi, i now read the php.net and i use html_entity_decode

thanks ...


On Sat, Oct 30, 2010 at 7:23 PM, Martin Ibarra Cervantes
 wrote:
> hi, iam using the tiny mce wysinyg editor and i am save the html tags
> into the database,
>
> with my editor save:
>
>  Este es un bonito dia buen dia 
>
> but when i get the data back from the table
>
> and try display in my view
>
> echo $dias->getDescripcion();
>
> display with all html tags and not display bolds words [buen dia]
>
>  Este es un bonito dia buen dia 
>
>
> you can 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] Display html tags from table

2010-10-30 Thread Martin Ibarra Cervantes
hi, iam using the tiny mce wysinyg editor and i am save the html tags
into the database,

with my editor save:

 Este es un bonito dia buen dia 

but when i get the data back from the table

and try display in my view

echo $dias->getDescripcion();

display with all html tags and not display bolds words [buen dia]

 Este es un bonito dia buen dia 


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


Re: [symfony-users] Re: sfguardauth // How to display a layout depending on user's group

2010-10-22 Thread Martin Ibarra Cervantes
 you can use the file view.yml on your modules


On Fri, Oct 22, 2010 at 7:29 AM, ziclo  wrote:
> Hello Gustavo,
>
> I don't understand what you mean by "Then in your own actions ". Which
> action are you speaking.
> I just want to change the layout accordingly to user's group jsut
> after login.
>
> --
> 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] Different types of admins

2010-10-20 Thread Martin Ibarra Cervantes
you can try with credentials

http://vit.free.fr/symfony/0.6.3/security.html

and a frontend public, a frontend private , and a backend private for
your admin add and remove on the tables.
the frontend private you can use credentials and your file security on
your config module.



On Wed, Oct 20, 2010 at 4:52 AM, Jaume  wrote:
> Hello. I am learning symfony to make a web application on a virtual
> school.
>
> My problem is I need different types of Admin, each of which can do
> different things. For example, the teacher can only view reports for
> students, the Director may set the courses and subjects and the
> administrator can add and sign remove students.
>
> In addition, students will need to authenticate before each session.
>
> So, I need a frontend to the pupils, but not how to do the 3 different
> backends for the 3 types of admins.
>
> Anyone can help me?
>
> Thank you very much!
>
> --
> 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] Question with form

2010-10-19 Thread Martin Ibarra Cervantes
maybe you can try use



in your form view.



On Tue, Oct 19, 2010 at 11:30 AM, eliana m.  wrote:
> hello.
> I have a question.
> I can build a form with a field that does not exist in the model?
> Thank you for your 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
>

-- 
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] Error sencillo

2010-10-19 Thread Martin Ibarra Cervantes
Creo que eso es el theme podrian ser bien las GTK theme o bien creo
que hicieron el ejemplo en una Mac OS :-) que es lo mas seguro ..



On Tue, Oct 19, 2010 at 6:54 AM,   wrote:
>
> Miren descargué las imagenes y los css, los puse dentro del directorio web 
> pero hay css que no hacen su funcion por ejemplo miren estas imagenes y 
> comparenlas...
>
> donde viene Expires at no me sale los css que añadí 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
>

-- 
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] front end product gallery

2010-10-17 Thread Martin Ibarra Cervantes
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


[symfony-users] How work sfErrorNotifierPlugin

2010-10-13 Thread Martin Ibarra Cervantes
Hi, how work sfErrorNotifierPlugin

in the README file

  * In the file /plugins/sfErrorNotifierPlugin/config/app.yml,  set
the email address(es) to deliver the notifications to, for the
environments you want to enable (tipically only 'prod').
You can comma-separate multiple recipients.

{{{
  prod:
sfErrorNotifier:
  emailTo:  err...@mysite.com
}}}

and i change my /plugins/sfErrorNotifierPlugin/config/app.ym for


all:
  sfErrorNotifier:
enabled:true  # Global enable or disable per env
emailTo:  u...@domain.com  # EDIT THIS
emailFrom:   # Optional, e.g.: My Site 
emailFormat: html   # 'html' or 'txt', html by default

i change emailTo for my email but i dont understand how work, because
i dont understand how send email, where config my username / password
/ smtp ?

in the lib sfErrorNotifierMail.php

private function mailer($to, $subject, $body, $headers)
  {
$alternativeMailer = sfConfig::get('app_sfErrorNotifier_mailerMethod');

if (strlen($alternativeMailer))
{
$params = array('recipient' => $to,
'subject' => $subject,
'body' => $body,
'headers' => $headers);
$func = strpos($alternativeMailer, '::') === false ?
$alternativeMailer : explode('::', $alternativeMailer) ;
call_user_func($func, $params);
}
else
{
@mail($to, $subject, $body, $headers);
}
  }

how i can use ?

-- 
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] how create empty module

2010-10-04 Thread Martin Ibarra Cervantes
hi, thanks Jérémie but the error is because i use doctrine:generate-module.
i read the documentation

symfony generate:module aplication module

is only generate:module and not doctrine:generate-module

thanks for you time.




On Mon, Oct 4, 2010 at 1:47 PM, Jérémie  wrote:
> Le lundi 04 octobre 2010 à 13:34 -0700, Martin Ibarra Cervantes a
> écrit :
>> symfony doctrine:generate-module [--theme="..."] [--generate-in-cache]
>> [--non-verbose-templates] [--with-show] [--singular="..."]
>> [--plural="..."] [--route-prefix="..."] [--with-doctrine-route]
>> [--env="..."] [--actions-base-class="..."]
>
> It's written:
>>  application module model
>
> You gave 2 arguments, 3 required.
> Jérémie
>
> --
> 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] how create empty module

2010-10-04 Thread Martin Ibarra Cervantes
Hi, i need a empty module on my application but when try this

m...@sopias ~/code/Projects/php/retratos/trunk $ ./symfony
doctrine:generate-module public feed


display this error

symfony doctrine:generate-module [--theme="..."] [--generate-in-cache]
[--non-verbose-templates] [--with-show] [--singular="..."]
[--plural="..."] [--route-prefix="..."] [--with-doctrine-route]
[--env="..."] [--actions-base-class="..."] application module model


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


Re: [symfony-users] ¿Hay algun chat irc en español sobre symfony?

2010-04-07 Thread Martin Ibarra Cervantes
en irc.freenode.net en #symfon-es

Saludos.


On Mon, Apr 5, 2010 at 8:31 AM, Javier Garcia  wrote:
> Hola,
>
> solo eso.
>
> Javi
>
> Ubuntu 8.04
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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 + Doctrine + MSSQL = imposible ? ....

2010-02-16 Thread Martin Ibarra Cervantes
hi , i has the same problem but try this.

create your schema with a tool may be mysql-query-browser and after
run symfony doctrin:build-schema, build-model , build-filters ,
build-forms
when your need add a filed, add fileld with mysql-query-browser and
after rebuild your schema.

regards , sorry for my inglish

On Mon, Feb 15, 2010 at 11:05 PM, KeKc  wrote:
> symfony 1.2:
> I have one problem:
> DB abstract layer works good with MySQL, but can't parse properly SAME
> schema.yml for MSSQL .
>
> Errors are like this:
> "  SQLSTATE[HY000]: General error: 10007 Could not create constraint.
> See previou
> s errors. [10007] (severity 5) []. Failing Query: CREATE TABLE author
> (id INT NU
> LL, name VARCHAR(255) NULL UNIQUE, created_at CHAR(19) NULL,
> updated_at CHAR(19)
>  NULL, PRIMARY KEY([id])) "
>
> But table Author in my schema.yml is:
> Author:
>  actAs: { Timestampable: ~ }
>  columns:
>    id: { type: integer,  primary: true, autoincrement: true }
>    name: { type: string(255),  unique: true }
>
>
> And for MySQL wasn't required that line:
> id: { type: integer,  primary: true, autoincrement: true }
>
> I've added it for clear describe the PK field, but there is no
> reuslts...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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: Doctrine + PostGreSQL

2010-02-05 Thread Martin Ibarra Cervantes
hi, i like first create my schema  on my DB with pgAdmin III and after
with symfony doctrine:build-schema , build-model, build-forms.
build-filters and i dont have problem :-) try.
and this generate relations with other tables on your schema.

On Mon, Jan 25, 2010 at 7:15 PM, webasker  wrote:
> Ok, this is weird.  I tried changing the schema name, table name, and
> column names to all lowercase, then it works.  But I'm not allow to
> change the database.  Does anyone know why this is happening?  How can
> I work around this issue without changing the database?
>
> Also, symfony doctrine:build-schema does not generate relations in the
> schema.yml.  How can I get it to generate?
>
> Much 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-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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] File uploading

2009-11-26 Thread Martin Ibarra Cervantes
please see 
http://stereointeractive.com/blog/2009/01/23/uploading-a-file-with-symfony-12/

or the documentation on symfony is very easy

On Wed, Nov 25, 2009 at 10:38 PM, Parijat Kalia  wrote:
> Hey guys,
>
> I need to allow users to upload files. Thing is, I am not using the SF
> Forms, and my forms are as basic as they can be. I want to make use of
> something that is the equivalent of $this->getrequest()->moveFile() but that
> seems to be deprecated.
>
> Thanks a lot guys!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@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.
>

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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: Redirection after submitting a New form

2009-11-20 Thread Martin Ibarra Cervantes
On Fri, Nov 20, 2009 at 9:16 AM, tirengarfio  wrote:
> Thanks Ashton!
>
> On Nov 20, 10:26 am, Ashton Honnecke  wrote:
>> In processForm.
>>
>> Ashton Honnecke
>> ahonne...@gmail.com
>>
>> On Nov 20, 2009, at 8:20, tirengarfio  wrote:
>>
>> > Hi,
>>
>> > i have created a module (generate-module) in base of Message model.
>> > When i execute message/new and then i push the "Save" button the app
>> > redirects me to the message/edit page.
>>
>> > I have opened actions.class.php and i have checked the createSuccess()
>> > function. I expected to find a redirection to the Edit action but i
>> > have just found this:
>>
>> >   $this->forward404Unless($request->isMethod('post'));
>>
>> >    $this->form = new MensajeForm();
>>
>> >    $this->processForm($request, $this->form);
>>
>> >    $this->setTemplate('new');
>>
>> > Where can i change the redirection?
>>
>> > Bye
>>
>> > Javi
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" group.
>> > To post to this group, send email to symfony-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > symfony-users+unsubscr...@googlegroups.com
>> > .
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/symfony-users?hl=
>> > .
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@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=.
>
>
>

you need redirect in processForm

protected function processForm(sfWebRequest $request, sfForm $form)
  {
$form->bind($request->getParameter($form->getName()),
$request->getFiles($form->getName()));

if ($form->isValid())
{
   /***HERE ***/
  $this->redirect('recibos/index');
}
  }

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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=.




[symfony-users] Re: how to pass values to my custom form Widget (one widget for two model-properties). Symfony 1.2

2009-11-16 Thread Martin Ibarra Cervantes

you can setDefault

$form->setDefault('dateRange', 'value');


On Thu, Nov 12, 2009 at 1:14 PM, Don_Busi  wrote:
>
> Hi everybody,
>
> I have an entity that (among other properties) has a "startDate" and
> an "endDate" property. Now I created a form widget that graphically
> shows the date range specified by these two dates.
>
> In my Form class I added my new custom form widget.
>
>>   public function configure()
>>   {
>>    ...
>>     $this->setWidget('dateRange', new stgSeasonWidgetFormInput());
>>    ...
>>   }
>
> and in my Template (showSuccess.php) I display the widget.
>
>> ...
>> 
>> ...
>
> How can I pass the two values (myObject->startDate & myObject-
>>endDate) into my custom widgets "render(...)"-function?
>
> Thanx a lot for you help in advance.
>
> Don_Busi
>
> >
>

--~--~-~--~~~---~--~~
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: upload files without rename

2009-11-15 Thread Martin Ibarra Cervantes

ok, this save 2 images on my folder, but not save the original name on
my database.


protected function processForm(sfWebRequest $request, sfForm $form)
  {
$form->bind($request->getParameter($form->getName()),
$request->getFiles($form->getName()));

if ($form->isValid())
{
$file = $this->form->getValue('nombre');
$filename = $file->getOriginalName();
$extension = $file->getExtension($file->getOriginalExtension());
$file->save(sfConfig::get('sf_upload_dir').'/'.$filename.$extension);


$cfe_archivo = $form->save();

  $this->redirect('recibos/edit?id_archivo='.$cfe_archivo->getIdArchivo());
}
  }

i try override save

public function save(Doctrine_Connection $con = null)
{
if(!$this->getCreado()){
$this->setCreado(date('Y-m-d'));
$this->setNombre($this->getNombre());
/ but is not original name

}
return parent::save($con);
}



On Sun, Nov 15, 2009 at 11:24 AM, Martin Ibarra Cervantes
 wrote:
> hi, i need upload file with symfony but without rename this.
>
> i try  this in my forms
>
>  public function configure()
>  {
>    unset($this['creado'], $this['actualizado']);
>
>    $this->setWidgets(array(
>      'id_archivo'  => new sfWidgetFormInputHidden(),
>      'nombre'      => new sfWidgetFormInputFile(),
>      'estatus_id'  => new sfWidgetFormDoctrineChoice(array('model' =>
> 'CfeEstatus', 'add_empty' => false)),
>      'usuario_id'  => new sfWidgetFormDoctrineChoice(array('model' =>
> 'CfeUsuario', 'add_empty' => false)),
>      'imprenta_id' => new sfWidgetFormDoctrineChoice(array('model' =>
> 'CfeImprenta', 'add_empty' => false)),
>    ));
>
>    $this->setValidators(array(
>      'id_archivo'  => new sfValidatorDoctrineChoice(array('model' =>
> 'CfeArchivo', 'column' => 'id_archivo', 'required' => false)),
>      'nombre'          => new sfValidatorFile(),
>      'estatus_id'  => new sfValidatorDoctrineChoice(array('model' =>
> 'CfeEstatus')),
>      'usuario_id'  => new sfValidatorDoctrineChoice(array('model' =>
> 'CfeUsuario')),
>      'imprenta_id' => new sfValidatorDoctrineChoice(array('model' =>
> 'CfeImprenta')),
>    ));
>    $this->widgetSchema->setNameFormat('cfe_archivo[%s]');
>  }
>
> and my actions
>
>  protected function processForm(sfWebRequest $request, sfForm $form)
>  {
>    $form->bind($request->getParameter($form->getName()),
> $request->getFiles($form->getName()));
>
>    if ($form->isValid())
>    {
>      $file = $form->getValue('nombre');
>      $filename =
> sha1($file->getOriginalName()).$file->getExtension($file->getOriginalExtension());
>      $file->save(sfConfig::get('sf_upload_dir').'/'.$filename);
>
>        $cfe_archivo = $form->save();
>
>      $this->redirect('recibos/edit?id_archivo='.$cfe_archivo->getIdArchivo());
>    }
>  }
>
> and this the Error.
>
> Validation failed in class CfeArchivo
>
> 1 field had validation error:
>
> * 1 validator failed on nombre (type)
>
>
> have a Idea??
>
> 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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] upload files without rename

2009-11-15 Thread Martin Ibarra Cervantes

hi, i need upload file with symfony but without rename this.

i try  this in my forms

 public function configure()
  {
unset($this['creado'], $this['actualizado']);

$this->setWidgets(array(
  'id_archivo'  => new sfWidgetFormInputHidden(),
  'nombre'  => new sfWidgetFormInputFile(),
  'estatus_id'  => new sfWidgetFormDoctrineChoice(array('model' =>
'CfeEstatus', 'add_empty' => false)),
  'usuario_id'  => new sfWidgetFormDoctrineChoice(array('model' =>
'CfeUsuario', 'add_empty' => false)),
  'imprenta_id' => new sfWidgetFormDoctrineChoice(array('model' =>
'CfeImprenta', 'add_empty' => false)),
));

$this->setValidators(array(
  'id_archivo'  => new sfValidatorDoctrineChoice(array('model' =>
'CfeArchivo', 'column' => 'id_archivo', 'required' => false)),
  'nombre'  => new sfValidatorFile(),
  'estatus_id'  => new sfValidatorDoctrineChoice(array('model' =>
'CfeEstatus')),
  'usuario_id'  => new sfValidatorDoctrineChoice(array('model' =>
'CfeUsuario')),
  'imprenta_id' => new sfValidatorDoctrineChoice(array('model' =>
'CfeImprenta')),
));
$this->widgetSchema->setNameFormat('cfe_archivo[%s]');
  }

and my actions

 protected function processForm(sfWebRequest $request, sfForm $form)
  {
$form->bind($request->getParameter($form->getName()),
$request->getFiles($form->getName()));

if ($form->isValid())
{
  $file = $form->getValue('nombre');
  $filename =
sha1($file->getOriginalName()).$file->getExtension($file->getOriginalExtension());
  $file->save(sfConfig::get('sf_upload_dir').'/'.$filename);

$cfe_archivo = $form->save();

  $this->redirect('recibos/edit?id_archivo='.$cfe_archivo->getIdArchivo());
}
  }

and this the Error.

Validation failed in class CfeArchivo

1 field had validation error:

* 1 validator failed on nombre (type)


have a Idea??

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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: URL transform

2009-11-03 Thread Martin Ibarra Cervantes

you can use in your routing.yml

for example

advertisement_show:
  url: /advertisement/:category
  class: sfRequestRoute
  param: {module: advertisement, action: index }
  requirements:
id: \d+

try this, this simple, you can read the routing.

http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System




On Tue, Nov 3, 2009 at 3:43 AM, HAUSa
 wrote:
>
> When I use url_for('advertisement/index?category=' . $subcategory-
>>getId()), the URL output is /advertisement?category=2
>
> How can I make the URL look like /advertisement/index/category/2 ?
> >
>

--~--~-~--~~~---~--~~
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] change the value on the form with ajax

2009-10-27 Thread Martin Ibarra Cervantes

i have a gallery with gallerific but when change the picture i need
change the ID on my form its possible change the value with the ajax.





onClick="
  'description',
   'url'=> 'retratos/show?id='.$imagen->getId(),
   )) ?>
"


retratos the model
show is the action and in the action i have this.


 public function executeShow(sfWebRequest $request)
  {
$this->form = new MrImagenComentarioForm();
$this->form->setDefault('id_imagen', $this->getParam( 'id'));
$this->setTemplate('show');
  }

id_imagen is i hidden in my form.

--~--~-~--~~~---~--~~
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] problem when display rows with Doctrine_Query

2009-10-14 Thread Martin Ibarra Cervantes

hi, guys

i have this Sql with doctrine

on my controller

  public function executeIndex(sfWebRequest $request)
  {
$this->mr_album_imagen_list =
Doctrine::getTable('MrAlbumImagen')->getImagenesAlbum($this->getUser()->getAttribute('id_usuario'));
$this->forward404Unless($this->mr_album_imagen_list);
  }

on my model

public function getImagenesAlbum($id_usuario){
$q = Doctrine_Query::create()
->select('ma.descripcion, mai.nombre as foto, mai.descripcion as
fdescripcion, mai.id_imagen as idimagen')
->from('MrAlbum ma')
->innerJoin('ma.MrAlbumImagen mai')
->innerJoin('ma.MrUsuario mu')
->where('mu.id_usuario = ?', $id_usuario);

print_r($q->getSql());

return $q->execute();   
}


and print_r: return this SQL

SELECT m.id_album AS m__id_album, m.descripcion AS m__descripcion,
m2.nombre AS m2__0, m2.descripcion AS m2__1, m2.id_imagen AS m2__2
FROM mr_album m INNER JOIN mr_album_imagen m2 ON m.id_album =
m2.album_id INNER JOIN mr_usuario m3 ON m.usuario_id = m3.id_usuario
WHERE m3.id_usuario = ?

the parameter is for example 3 or X, when i execute this sql directly
on my DB, this return 10 rows, but when i try display in my template
this return only 3 rows.

if a run with the tool for sql

6  Cuarto Album; "e86a3e7835d70d256fe9190d44ff1108f87a760e.jpg"; "en
el 6 aereopuerto de guadalajara.";2
6  Cuarto Album; "85a016d1ce8cc8804bcb18bfa0710fdc0486d664.jpg"; "la
catedral"; 3
6  Cuarto Album; "ad9dfcfddc1bc8f621b5834b056fc9acf1ea697e.jpg"; "la
fuente en el hotel";   4
5  Tercer Album; "c1255a9376ed02cc604d39d3652ba93bc1f9f3bc.jpg";
"boleto de avion ahora en la 5";5
5  Tercer Album; "a99d518dcc8589fc675e3268d590dd8d9df1f380.jpg"; "la
catedral en el album 5";   6
6  Cuarto Album; "2ca45a0f7c4729d205f11a6b8af78ed05a82369f.jpg";
"adentro de una iglecia en ela lbum 6";   7
4  Segundo Album; "5666319836020d4c6e361a909f5b51be7f961d1b.jpg";
"ahora en el cuatro";8
4  Segundo Album; "36e816468f6da0c375a40ad56db7aba5659a5412.jpg";
"ahora en el cuatro";   9
4  Segundo Album; "48faf416a1a24e541a4caef941bc00032debb9cc.jpg";
"xx";   10



on my template

 foreach ($mr_album_imagen_list as $mr_album_imagen):?>

  getIdimagen() ?>
  getDescripcion()?>



here only display 3

2   Cuarto Albume86a3e7835d70d256fe9190d44ff1108f87a760e.jpgen el 6
aereopuerto de guadalajara.
5   Tercer Albumc1255a9376ed02cc604d39d3652ba93bc1f9f3bc.jpgboleto
de avion ahora en la 5
8   Segundo Album   5666319836020d4c6e361a909f5b51be7f961d1b.jpgahora
en el cuatro

only display the firsts

your have  a idea?

sorry for the english

--~--~-~--~~~---~--~~
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: Best way for e-mail templates

2009-10-08 Thread Martin Ibarra Cervantes

hi, i use swift

$transport = 
Swift_SmtpTransport::newInstance(sfConfig::get('app_correo_hostname'),sfConfig::get('app_correo_puerto'))
->setUsername(sfConfig::get('app_correo_usuario'))
->setPassword(sfConfig::get('app_correo_password')) ;

$mailer = Swift_Mailer::newInstance($transport);
$body = "the body"; 
$subject = "Validacion de Cuenta, Mis Retratos.";
$message   = Swift_Message::newInstance($subject)
->setFrom(array(sfConfig::get('app_correo_usuario', 'Mis 
Retratos')))
->setTo(array($this->form->getValue('correo'))) 
->setBody($body);
$mailer->send($message);
its very single.


On Thu, Oct 8, 2009 at 10:41 AM, Alexandru-Emil Lupu
 wrote:
> What i have done was to implement swift mailer, create a component that
> handles the emails and parser, and all the email templates stored into
> database as
>
> Subject, Html, plain ...
>
> Unfortunatelly, I cannot reveal the code ...
> Alecs
>
>
> On Thu, Oct 8, 2009 at 8:04 PM, HAUSa
>  wrote:
>>
>> Hi all,
>>
>> What is in your opinion the best way to store an e-mail template?
>> In one of my actions, when an e-mail has to be sent to the user, I
>> want to grab a template and replace some values.
>>
>> My idea is to create a module called "emails" and use the template
>> folder, but maybe there is a less dirty method?
>>
>> Thanks!
>>
>
>
>
> --
> As programmers create bigger & better idiot proof programs, so the universe
> creates bigger & better idiots!
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
>
>
> >
>

--~--~-~--~~~---~--~~
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: difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-08 Thread Martin Ibarra Cervantes

first try process the array,

$result = array(first, second, etc);

may be with split or xplode

and after save this in your db


On Wed, Oct 7, 2009 at 10:45 PM, Bhumika Gohil  wrote:
>
> Hello Dennis
>
>    I have below Problem in my symfony , If possible then help me
>
>
> I used following code to display multi-selected drop down box for
> country ..
>
> $this->widgetSchema['countries'] = new sfWidgetFormDoctrineChoice(array
> (
> 'model' => 'Countries',
> 'multiple' => true,
> ));
>
> and now I want to save these multi-selected values in database by
> comma separated or in another table
>
>
>
> but it is saving "Array" string into database ...
>
>
>
> 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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] upload multiple files with ajax

2009-10-06 Thread Martin Ibarra Cervantes

hi guys,

I need upload images to my server, for example


Image_1
Comment_Image_1

Image_2
Comment_Image_3

Image_3
Comment_Image_3

maybe with ajax or not, but i need save the values in a DB,

--~--~-~--~~~---~--~~
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: Rebuilding model

2009-08-06 Thread Martin Ibarra Cervantes
if you add a field on the a table you need rebuild the schema and  model.

On Tue, Jul 21, 2009 at 11:10 PM, James Cauwelier  wrote:

>
> I don 't think you should.  Database access should be abstracted in
> Doctrine.  However, rebuilding never hurts, except when you have a
> huge database.
>
> You do have to make sure the tables are present in the database, but
> that 's pretty obvious.
>
>
> James
>
> On Jul 21, 6:20 pm, Rytis Daugirdas  wrote:
> > Hello,
> >
> > Do I need to rebuild my model after changing my database backend (for
> > example, when switching from MySQL to SQLite)? The ORM is Doctrine.
> >
>

--~--~-~--~~~---~--~~
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: Forms

2009-08-06 Thread Martin Ibarra Cervantes
you can embebed a form and with unset(); in lib/form you can disabled the
fields in the function configure().

On Tue, Aug 4, 2009 at 9:07 AM, Richtermeister  wrote:

>
> Hi juaninf,
>
> you cannot auto-generate forms that span more than 1 table.
> However, once all forms are generated, you can embed one inside the
> other via the embedForm() method.
>
> Hope this helps.
> Daniel
>
>
> On Aug 3, 3:12 pm, juaninf  wrote:
> > I know that the php symfony propel:build-forms command generates the
> > forms taking the fields that were mapped of a table, but i want make
> > this, in one form only with two tables, this is possible make manually
> > and add one clase within of lib/form path? or symfony can be make
> > automatic
> >
>

--~--~-~--~~~---~--~~
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: Upload image with admin generator

2009-08-04 Thread Martin Ibarra Cervantes
need define this on your From type file, look in jobeet is very single

On Tue, Aug 4, 2009 at 6:40 AM, djones  wrote:

>
> The Jobeet tutorial has image uploading.
> Look at the Admin Generator chapter for more information:
> http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12
>
> On Aug 3, 6:29 pm, bogo  wrote:
> > Hi,
> > thanks for the hint, but I need upload input in the same form. I dug a
> > lot and didn't find solution, so I suppose that's missing feature in
> > admin generator. I will try override generated actions and templates.
> >
> > cheers,
> > bogo
> >
> > On 1 Sie, 10:33, sonius  wrote:
> >
> >
> >
> > > i just add a link to another module eg: imagehandler/uploadFile and
> > > let that module handle the imageupload.
> >
> > > On Aug 1, 6:03 am, bogo  wrote:
> >
> > > > Hi,
> > > > I'd like touploadimage usingadmingenerator. I've tried set field
> > > > type in mygenerator.yml to:
> >
> > > >   edit:
> > > > title:  Editing photo "%%title%%"
> > > > fields:
> > > >   path_thumb:
> > > > type: admin_input_file_tag
> > > > help: default size 25x25
> >
> > > > but it doesn't work. Default input field is displayed and error
> > > > message returned.
> >
> > > > how can Iuploadimages byadmingenerator? I use symfony version
> > > > 1.2.8.
> >
> > > > Thanks in advance!
> > > > bogo
> >
>

--~--~-~--~~~---~--~~
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: Symfony+Doctrine+PGSQL

2009-07-30 Thread Martin Ibarra Cervantes
your need put the DSN correct

on youur config/databases.yml


On Wed, Jul 29, 2009 at 1:10 PM, Gábor Fási  wrote:

>
> Just specify the correct DSN and you should be fine. The pgsql dsn has
> a different format than the mysql one, it looks like this:
> pgsql:host=hostname;dbname=databasename;user=username;password=thepassword
>
> 2009/7/29 Guelmis Lázara Martínez Ramírez :
> >
> > Hi:
> >  I have been trying to change the sfPropelPlugin to the sfDoctrinePlugin,
> I have found many references on the web but they are headed to mysql, etc,
> but I haven´t found anything for pgsql, so I need an example, a base, that
> works.
> >
> > This is my ProjectConfiguration class
> >
> > class ProjectConfiguration extends sfProjectConfiguration
> > {
> > public function setup()
> > {
> > $this->enablePlugins('sfDoctrinePlugin');
> > $this->disablePlugins('sfPropelPlugin');
> >
> > }
> > }
> >
> > So Doctrine is already working, when I execute >>symfony list doctrine,
> it works ok, but from there I don't know how to make it work with pgsql, so
> please if anyone has an example of symfony 1.2.8, with Doctrine as ORM and
> pgsql please send it to me, or please post it.
> >
> > Thanks ins advance, sorry if my english isn't perfect.
> >
> > --
> >
> >
> >
> >
> >
> >
> > >
> >
>
> >
>

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