[symfony-users] Re: Create sfGuard user in production environment

2010-07-02 Thread fRAnKEnSTEin
Mariano,

Do you have access to the database? for example using phpmyadmin or
something?

Cheers

-- 
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] sfguardplugin i18n login page

2010-07-02 Thread fRAnKEnSTEin
Hi,

I am using  "sfguardplugin" for everything related to credentials at
the backend(generated with the backend generator). I have added a
combobox language selector based on Jobbet's tutorial, and everything
works fine.

The only problem i got is the login page generated by the pluggin,
eveytime i try to change the language it does not worck,  the post
generated by the combobox to the action:

www.mysite.com/backend_dev.php/change_language?

never be executed. Is like somewhere the plugin intercepts the post
and avoid the execution of if.

After changing the language the url becomes to:

http://www.mysite.com/backend_dev.php/change_language?language=en&_csrf_token=xx

As you can see the redirection that has the "change_language" action
is necer executed.

Any idea?

Cheers

-- 
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: i18n doubts backend generator

2010-07-02 Thread fRAnKEnSTEin
HI,

Thank you. I was using as third parameter "sf_admin.es.xml" instead
"sf_admin".

Cheers



On Jul 1, 10:11 pm, Gábor Fási  wrote:
> You also need to pass a third parameter, a catalog - in your case it
> is 'sf_admin'. The default is 'messages', so unless you specify
> otherwise, symfony is looking for a translation in the 'messages'
> file.
>
>
>
> On Thu, Jul 1, 2010 at 21:03, fRAnKEnSTEin  wrote:
> > hi there,
>
> > I have added i18n support to my app's backend(generated using backend
> > generator ), following next steps:
>
> > 1- Create folder called "i18n" in my app's "backeng" folder
> > 2- Copy/paste file called "sf_admin.es.xml" to  "i18n" folder just
> > created
> > 3- Set in apps/backend/config/settings.yml
>
> > ...
> > all:
> >  .settings:
> >        ...
> >        ...
> >        standard_helpers: ['Partial', 'I18N', 'Cache']
> >        i18n: true
> >        ...
>
> > Now when i chage the language using the combobox, the language changes
> > in all admin generator different parts, but the menu options that i
> > have in my app like:
>
> >  
>
> > does not. in fact nothing but adim generator specific parts are
> > translated(like filter section etc). for example if i just put some
> > text like:
>
> > 
>
> > It does not work ether.
>
> > Any idea why?
>
> > Cheers
>
> > --
> > 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: i18n doubts backend generator

2010-07-01 Thread fRAnKEnSTEin
notice that i have added in "sf_admin.es.xml" the next lines:

  
  
Reservations
Reservaciones
  
  ...


-- 
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] i18n doubts backend generator

2010-07-01 Thread fRAnKEnSTEin
hi there,

I have added i18n support to my app's backend(generated using backend
generator ), following next steps:

1- Create folder called "i18n" in my app's "backeng" folder
2- Copy/paste file called "sf_admin.es.xml" to  "i18n" folder just
created
3- Set in apps/backend/config/settings.yml

...
all:
  .settings:
...
...
standard_helpers: ['Partial', 'I18N', 'Cache']
i18n: true
...

Now when i chage the language using the combobox, the language changes
in all admin generator different parts, but the menu options that i
have in my app like:

 

does not. in fact nothing but adim generator specific parts are
translated(like filter section etc). for example if i just put some
text like:



It does not work ether.

Any idea why?

Cheers

-- 
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: mediatemnple Dv server symfony deployment

2010-06-23 Thread fRAnKEnSTEin
Hi,

Thank you very much for your help. Basically 3 steps for making this
work:

1- Cleaning cache is a very good idea
2- The tutorial posted above works like a charm!
3- Also runing the "frontend_dev.php" mode helps for debuggin problems

Cheers

On 18 jun, 07:26, Nicolás Moreira  wrote:
> Try my tutorial:
>
> http://blog.linkuy.com/2010/05/05/deployment-proyecto-symfony-en-serv...
>
> this blog have a traduction to english
>
> regards
>
>
>
> On Fri, Jun 11, 2010 at 6:33 PM, scvroin  wrote:
> > I succesfully deploy the result of the jobeet tutorial on a shared
> > host, so after change the connections, and there's no errors about
> > require some file, and you have just a blank page in the browser you
> > may try to delete the content of the cache folder or if you have ssh
> > just clear cache and then it should work.
>
> > Silviu
>
> > On Jun 11, 7:12 am, fRAnKEnSTEin  wrote:
> > > Hi there,
>
> > > Does any body knows any tutorial/guide/page or something that explains
> > > how to deploy a Symfony(v1.4) project in a dedicated virtual (dv 3.5)
> > > mediatemple server?
>
> > > At the moment i have just uploaded the project to my dv server, chaged
> > > the Db configuration like this pgae explains:
>
> > >http://www.symfony-project.org/jobeet/1_2/Doctrine/en/23
>
> > > But all i see is a blank page, i already turned off phph safe_mode,
> > > but still nothing.
>
> > > Any idea will be very apreciatted.
>
> > > Cheers
>
> > --
> > 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
>
> --
> Nicolás Moreira
> Funder & CEO
> Outsourcing | Web Design | Development | Consultancy | E-Marketing
> Web: linkuy.com
> E-Mail: nicolas.more...@linkuy.com
> Skype: call.linkuy

-- 
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: mediatemnple Dv server symfony deployment

2010-06-11 Thread fRAnKEnSTEin
Hi,

Ok i have deleted that limitation, now i can load the
"frontend_dev.php" file but all i can see is a blank page :(

Any idea?

cheers

-- 
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: mediatemnple Dv server symfony deployment

2010-06-11 Thread fRAnKEnSTEin
ok gonna see chck that, but meanwhile is there any tutorial about
deploying symfony projects over dv mediatemple servers?
do i have to created vhosts? modify the httpd.conf or something

chers

-- 
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: mediatemnple Dv server symfony deployment

2010-06-10 Thread fRAnKEnSTEin
using the "frontend_dev.php" i get:

You are not allowed to access this file. Check frontend_dev.php for
more information.

any idea?

-- 
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] mediatemnple Dv server symfony deployment

2010-06-10 Thread fRAnKEnSTEin
Hi there,

Does any body knows any tutorial/guide/page or something that explains
how to deploy a Symfony(v1.4) project in a dedicated virtual (dv 3.5)
mediatemple server?

At the moment i have just uploaded the project to my dv server, chaged
the Db configuration like this pgae explains:

http://www.symfony-project.org/jobeet/1_2/Doctrine/en/23

But all i see is a blank page, i already turned off phph safe_mode,
but still nothing.

Any idea will be very apreciatted.

Cheers

-- 
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] render widget as label

2010-06-04 Thread fRAnKEnSTEin
Hi there,

Is there any way of rendering a form widget as a label? for example if
i have a form called ""fooForm" defined as:

...
...
public function configure()
{
 ...
 ...
 $this->setWidgets(array(
'price'   => new sfWidgetFormInputText(),
 ));
 ...
 ...
}

then in my template:

 render() ?> 

Instead of rendeing the widget as an input text element, i need to
render it like a label element. I have searched is there is any
"sfWidgetFormLabel" or something but there is not.

Any idea?

Cheers

-- 
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: render multiple partials ajax

2010-06-03 Thread fRAnKEnSTEin
Hi there,

Thanks, rendering json like the actions ersponse is a very good idea.

Cheers

-- 
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: render multiple partials ajax

2010-06-03 Thread fRAnKEnSTEin
Hi there,

OK here is an example, supose that i havethe next HTML:

...
...
01
...
...

...
...
$100
...
...
Calculate
...
...

Now, when some user clicks over "Calculate" link the app ill make an
ajax call to my controller's "foo", this ajax call needs to render the
"total" and "day" divs in my html. Noe as you see those divs are two
"separated" from ech other so i can not just make a partial that
contains:

..
...

...
...

...
...
 
...
...
is just a lot of html in that partial that i do not need to render via
ajax... and i can not create a partial with just the 2 divs i need
because they are in two different places totally different.
Thats why i am asking is there is any form of rendering multiple
partials from an action, so i can create one partial that contains(for
example) the "days" div, another partial that contains the "amount"
div and just render those. so my controller may look like

public function foo()
{
 $foo = 25;
 $foo2 = 300;
 return $this->renderPartial('myPartial1', array("days" => $foo));
 return $this->renderPartial('myPartial2', array("amount" =>
$foo));
}

Ay idea?

Cheers

On 3 jun, 12:37, Donald Tyler  wrote:
> I'm not completey understanding what you're trying to accomplish.
>
> When you say Ajax call from a controller, what exactly do you mean? It
> doesn't sound like you're talking about a typical ajax request from a
> browser.
>
> On Thursday, June 3, 2010, fRAnKEnSTEin  wrote:
> > Hi,
>
> > is there any way to render multiple partials with an ajax call from a
> > controller? the problem that i am having is that i need to refresh
> > after the ajax call, segments of html that are in differentes
> > separated parts of the dom, so i can not create a partial with this
> > elemets inside(because that will force me almost to create a partial
> > with al the  inside XD)
>
> > I think rendering multiple partials could solve may problem..but not
> > sure if this is the right aproach..
>
> > Any idea?
>
> > Cheers
>
> > --
> > 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] render multiple partials ajax

2010-06-03 Thread fRAnKEnSTEin
Hi,

is there any way to render multiple partials with an ajax call from a
controller? the problem that i am having is that i need to refresh
after the ajax call, segments of html that are in differentes
separated parts of the dom, so i can not create a partial with this
elemets inside(because that will force me almost to create a partial
with al the  inside XD)

I think rendering multiple partials could solve may problem..but not
sure if this is the right aproach..

Any idea?

Cheers

-- 
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: Add form widgets dynamically from javascript

2010-05-28 Thread fRAnKEnSTEin
Hi,

Luc thanks for your fast reply!. OK as i understand i do not need to
embed forms, because i do not need to "... input of data (edition or
adding new data) into multiple related objects.". What i need to do is
much simpler(i think) than that:

**Just think,  for example, that i want to create a "todo" site, so
everytime the user clicks over the "add another" link the app will
render a new textbox that will be part of the "todoForm", so you can
click the "add" link as many times you wish to create any amount of
todo's(new textboxes ), and then submit the form and save them.**

So back to my problem, I have created one form called "stepOneForm" in
wich i have created 2 widgets( and validators form them too ) as
follows:

class StepOneForm extends BaseForm
{
public function configure() {
$this->setWidgets(array(
'txt_check_in'  => ,
'txt_check_out'=> ,
));

$this->setValidators(array(
'txt_check_in'  => ...,
'txt_check_out'=> ...,
} // end configure
}

Then i have created a module called "reserve" wich has a template
called "StepOneSuccess"(and it's related action called
"executeStepOne"), that renders the widgets of the "StepOneForm" as
follows:





 renderError() ?>
 render() ?>


 renderError() ?>
 render() ?>




+Add another room



renderError() ?>



Now, the above template and form("StepOneForm") does not have all the
inputs that i need to complete the process, i still need to add
"rooms", so the user can select a checkin-checkout date and then add
rooms as he/she needs to reserve. For this i have created the "add"
link, so everytime the user clicks on it, it fires an AJAX javascript
method that asks the server to create the widgets needed for entry the
room data (Note, this "room data" is not another form, they are just
widgets like  "adult quantity" input, "children quantity" input and
"bed type" input, that i need to add to "steOneForm" dynamically when
the user clicks the "add" link)...

And here is my problem:

a) Do i need to embedForm? (the link you gave me used embedform..but i
am not sure if i need to use this)
b) How can i add dynamically new widgets to the "stepOneForm" when the
user clicks over the "add" link
c) How can i render this new widgets dynamically created into the
template

any idea?

Cheers,

Shirkavand

-- 
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] Add form widgets dynamically from javascript

2010-05-27 Thread fRAnKEnSTEin
Hi,

Curret work:

I have created a regular form class called "stepOne" using form
framework, so it have some widgets and validators.Now in one of my
frontend templates i have created a link called "add", when the user
click over this link, it fires a javascript AJAX method called
"addrow" that creates a new html table row that has inside some inputs
and combos

The problem:

How can i add to "stepOne" form class all this inputs that have been
created in the clients side using javascript AJAX call and render them
into the view, so when the users submits the form...validators and all
of the form's framework stuff worked properly?

Any idea?

Cheers

-- 
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] admin i18n doubt

2010-05-20 Thread fRAnKEnSTEin
Hi there,

i have the following in a generator.yml of certain module:

...
...
 config:
  ...
  fields:
  name: { label: Name }
...
...

I have implemented succesfuly i18n in amin generator, but all
"fileds: name: label ..." does not get translated...i have tryed using
sf_admin_xx.xml file including the trasnaltion but not sucess eather.

Any idea?

Cheers

-- 
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] Call to undefined function include_component()

2010-05-17 Thread fRAnKEnSTEin
Hi,

I have followed "Language Switching" from 
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19
tutorial for implementing a combo laguage selector to my site. When i
try to load the site i get an error:

Fatal error: Call to undefined function include_component() in 
apps/frontend/templates/layout.php ...

I have testing for "include_component_slot", "include_partial" and
both gives me the same error as "include_component"

am i missing something here?

Cheers

-- 
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: bug? or i am missing something?

2010-05-12 Thread fRAnKEnSTEin
The last post at this URL

http://forum.symfony-project.org/index.php/m/91635/

here suggest a solution but it does not worked

Any other idea?

-- 
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] bug? or i am missing something?

2010-05-12 Thread fRAnKEnSTEin
Hi there,

i have a module called "availability" in my backend app, it's
"generator.yml" file has:

...
list:
  ...
  ...
  sort: [created_at desc]
...

Suddenly when i try to enter into the module i get an error:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near

If i delete or comment the "sort: [created_at desc]" part, the module
works fine. For some extrange reason de auto generated SQL tryes to
make an "order by" using "desc" and "asc" clausules both at the same
time in the query...that's why i get the exception...i have searched
for this error and found out some possible fixes, but none of them
works for me...is this a bug? i am using symfony 1.4 is there any
patch or possible fix?

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] bug? or i am missing something?

2010-05-12 Thread fRAnKEnSTEin
Hi there,

i have a module called "availability" in my backend app, it's
"generator.yml" file has:

...
list:
  ...
  ...
  sort: [created_at desc]
...

Suddenly when i try to enter into the module i get an error:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near

If i delete or comment the "sort: [created_at desc]" part, the module
works fine. For some extrange reason de auto generated SQL tryes to
make an "order by" using "desc" and "asc" clausules both at the same
time in the query...that's why i get the exception...i have searched
for this error and found out some possible fixes, but none of them
works for me...is this a bug? i am using symfony 1.4 is there any
patch or possible fix?

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: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-06 Thread fRAnKEnSTEin
Hi there,

Thank you very much for your help:

>"...that is why some filter inputs (like the date filter field for example) 
>have 2 fields with the same name..."

Nice piece of info!. Ok you suggested me that i can take a look at the
auto-generated forms. I have searched in "cache" folder for the auto-
generated code, but i can not find the forms code that you suggested
me to read. I have searched in the next folders:

in "cache" folder:

myModule/actions
myModule/lib
myModule/Templates

and in these other folders too:

mySite/lib/filter
mySite/lib/form

And nothing. I need to find the auto-generated code to see how they
created the widget with the same name etc etc.

Can you tell me where i have to find these auto-generated forms.

Cheers

-- 
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: doctrine mysql driver

2010-05-04 Thread fRAnKEnSTEin
Did you ran "check_configuration.php" using a browser or using a
terminal window? Remember that the PHP program that the browser uses
may differ from the one that the terminal uses. So maybe you are
getting this error because you are seeing the configuration of the
wrong PHP.

Run "check_configuration.php " from both: the terminal and the
browser, and make sure the "php.ini used by PHP: /home3/normalyc/
public_html/php.ini" are the same in the output. And beside that make
sure any of your possible php.ini file has the "pdo_mysql" enabled.

Cheers

-- 
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: $this->getRequest()->isMethod('post')

2010-05-04 Thread fRAnKEnSTEin
Hi there,

If you are inside some controller action you can try "$request-
>isMethod('post')" instead  "$this->getRequest()->isMethod('post')"

Tell me what happen if you give it a try...

Cheers

-- 
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: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-04 Thread fRAnKEnSTEin
Hi,

As i see..i think i can not add few addXXXColumnQuery methods and
create a query in parts. I tell you why. I have 2 "custom inputs", so
if i create 2 addXXXColumnQuery methods, ill end with something like
this:

public function addMyCustomInput1ColumnQuery($query, $field, $value)
{
}

public function addMyCustomInput2ColumnQuery($query, $field, $value)
{
}

Now the query i need to create is this one:

$auery = Select * table
  where
  (initial_date <=  myCustomInput1 and final_date >=
myCustomInput1 )(*)
  or
  (final_date >=  myCustomInput2 and initial_date <=
myCustomInput2 )(**)
  or
  (initial_date >= myCustomInput1 and final_date <=
myCustomInput2)  (***)

First of all, as you see i need to create 3 conditions(marked with
(*), (**) and (***) ) and following your approach i only got 2
methods(one for each field that i am using, these are:myCustomInput1
and myCustomInput2),

Second each condition uses both fields for creating the query, so if i
use the method as you suggest:

public function addMyCustomInput1ColumnQuery($query, $field, $value)
{
  //HERE I GET THE MyCustomInput1 value
  $field = $this->getFieldName($field);

  //HERE I USE THE $field VARIABLE TO MAKE THE FIRST
CONDITION..BUT ALSO NEED TO GET THE myCustomInput1 VALUE TOO...AND
INSIDE THIS METHOD I DONT KNOW HOW, I
  //NEED SOMTHING LIKE
  $query->andWhere(initial_date <=  $fieldName and final_date >=
myCustomInput1 )
}

and as you can see even i i create the first condition comehow, even i
have to separece eachone (*),(**) and (***) with OR. So, please note
the query i need to create, i have 2 OR and 3 ANDS, each AND uses
myCustomInput1 and myCustomInput1 for creating the differents
conditions...

This is why i can not use just the addXXXColumnQuery and create the
query by parts...

Am i right?

Cheers

-- 
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: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-02 Thread fRAnKEnSTEin
hi There,

i do not need to make a join just a "select * from where
myCriteriaHere" the criteria is:


   (initial_date <=  myCustomInput1 and final_date >=
myCustomInput1 )
   or
   (final_date >=  myCustomInput2 and initial_date <=
myCustomInput2 )
   or
   (initial_date >= myCustomInput1 and final_date <= myCustomInput2)

As yo can see i need to acces 2 values for create the query, following
your example supose i have 2 coupon fields, and into my
addCouponColumnCriteria method, i will need access to my coupon value
and my coupon2 value, but as long a i can see, if i use the method
"addCouponColumnCriteria", i only have acces to the coupon field, that
its value comes into the $value parameter.

So how can i create a method addGENERICColumnCriteria, where i can
have access to all the fields so i can create my complex criteria
using all the values that i need? or is there any way to acces the
values of the other fields inside addCouponColumnCriteria method?

Do you got me? BTW i do not have any idea of what these things you
used means: "CustomerPeer::ID, WebsitePeer::CUSTOMER_ID"

Cheers

-- 
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: How overwrite addFiltersCriteria in symfony 1.4?

2010-04-30 Thread fRAnKEnSTEin
Hi,

thank you for your answer. Ok i have a module in my backend called
"price". For this module i need to add a custom filter this is: i need
to add to dates, and make a quey based on the dates selected by the
user. So by now as i said before i just configure the generator.yml of
the "price" module, to show the partial that holds all the html i
need(ie the 2 datapickers) in the view of the prices module.

//app/backend/modules/price/config/generator.yml
...
filter:
display: [ _state ]
...

So when i se my browser to enter into the price module i can see the
filter section with thi inputs, where the user can enter the dates(for
now they are just 2 simple text inputs) and the "filter" button. Now
when the user enters the 2 dates and hit the "filter" button i need to
take those 2 inputs and create a custom query(the query is in my first
post), but i dont now where i have to create this query...i mean in
wich file, maybe in "PriceFormFilter.class.php" or in
"BasePriceFormFilter.class.php" or where else? i dont now if i need to
overwrite a\ certain function in dome certain classor if i need to
create a normal function and then call it from some special where
that's why i need to do.

So in few words: i have a price modulo in my backend, i need to show
up two inputs in the filtering section of the module, when the user
hit the filter button i need to take the values entered in the inputs
and execute a custom query so the results will be reflected in the
list action or something.

Any example, ideas? (need more details..just tell me)

Cheers

-- 
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 overwrite addFiltersCriteria in symfony 1.4?

2010-04-30 Thread fRAnKEnSTEin
Hi,

I need to create a custom "complex" filtering criteria in the admin
generator backend. In previeus version of symfony(ie 1.1) this can
done by overwriting the "addFiltersCriteria", method but in symfony
1.4 dont now how to achive this?

For now, i have modfied my module's "generator.yml" file to use a
partial for rendering the filtering section in the view as follows:
...
filter:
display: [ _state ]
...

In the partial(_state) i have the next html:




Now i want to create my custom criteria using the  inputs defined in
the _state partial above, like so:

(initial_date <=  myCustomInput1 and final_date >= myCustomInput1 )
or
(final_date >=  myCustomInput2 and initial_date <= myCustomInput2 )
or
(initial_date >= myCustomInput1 and final_date <= myCustomInput2)

1- Where do i have to add my custom query?
2- How can i access the "myCustomInput1" inputs defined in the partial
to create the query i need?

PD: I have generate the admin backend using this comand: "php symfony
generate:app backend"

Cheers

-- 
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: Making a form over several pages

2010-04-30 Thread fRAnKEnSTEin
very interesting! thanks for sharing

On 29 abr, 00:50, kaore  wrote:
> This post describes a way to spread a form over multiple 
> pages:http://tech.cibul.org/a-way-to-make-multipage-forms-with-symfony/
>
> --
> 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 
> athttp://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: Doctrine innerJoin doubt

2010-04-29 Thread fRAnKEnSTEin
yeap! it worked like a charm...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


[symfony-users] Re: radiobutton and select values

2010-04-29 Thread fRAnKEnSTEin
thank you very much it worked!

-- 
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: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
someone with an idea..still having problems with 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] Re: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin

hi,
The problem is that i am using a form, so instead of cretaing a
"select_tag" in the template, i use for example something like this
in
my form class:
...
new sfWidgetFormSelect(array( 'choices' => $this-
>getGroupChoices() ))
...
in the form class a tryed to retrieve my session variables using
symfony session object but this send an error telling that it does
not
exists.
So, how can set the value of a combo based con a session variable,
when this combo is created inside a form class using forms widgets?

what i like to do is something like render(array(...), "selected" => "3") //so the number 3 is stored in
the session variable, and here tels de helper to marck as  selectes
the index 3 of the combo

ideas?
Cheers

-- 
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: radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi,

The problem is that i am using a form, so instead of cretaing a
"select_tag" in the template, i use for example something like this in
my form class:

...
new sfWidgetFormSelect(array( 'choices' => $this->getGroupChoices() ))
...
in the form class a tryed to retrieve my session variables using
symfony session object like:

$a = $this->getUser()->getAttribute('nickname');

but this send an error telling me that the $this->getUser() does not
exists.

So, how can set the value of a combo based con a session variable,
when this combo is created inside a form class using forms widgets?

what i lik to do is something like render(array(...), "selected" => "3") //so the number 3 is stored in
the session variable, and here tels de helper to marck as  selectes
the index 3 of the combo

ideas?

Cheers

-- 
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] radiobutton and select values

2010-04-27 Thread fRAnKEnSTEin
hi,

I have some data stored in session variable, what i need to do, is to
load that data in the select and radio button that i have in my
template. My template looks like:

...
render(array('class' =>
"txt_boxes_peq")) ?>
render(array('class' =>
"class='radiobtn'")) ?>
...

how can i set the values of them bases on the session variable? i have
tryed several ways none of them worked, for example:

render(array('class' =>
"txt_boxes_peq"), array("default" => "3")) ?>

Any ideas?

Cheers

-- 
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: Doctrine innerJoin doubt

2010-04-27 Thread fRAnKEnSTEin
hi there,

Evert:

1- "Why don't you have an `id` column on reservation in your schema?"
as i saw on jobeete example, they do not define any "id" column for
any of the DB tables..thats because symfony add it automatically for
each db table.

2- "have you tried to define the innerJoin as -
>innerJoin('r.ReservationDetail rd');" yes i have, but i got an error,
this is because as you can see in y first post, the schema defines
"foreignAlias: ReservationDetails" in plural. (Just like jobbet shcmea
example btw)

3- "which relations are defined in your BaseReservation class": this
are the relations of my BaseReservation and BaseReservationDetail
classes:

$this->hasMany('ReservationDetail as ReservationDetails',
array(
 'local' => 'id',
 'foreign' => 'reservation_id'));

$this->hasOne('VolcanoLodgeReservation', array(
 'local' => 'reservation_id',
 'foreign' => 'id',
 'onDelete' => 'CASCADE'));
4- "You could also debug with `var_dump($reservations->toArray());`",
this is what it prints:

array
  0 =>
array
  'id' => string '1' (length=1)
  'name' => string 'hgjhg' (length=5)
  'email' => string '124' (length=3)
  'commets' => string 'wrwer' (length=5)
  'ReservationDetails' =>
array
  0 =>
array
  ...
  1 =>
array
  ...

Still cant get this thing work...any ideas?

PD: vivek pandey this post is not about how to install xampp with
symfony. Please make a new post and i will be glad to help 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] Re: Doctrine innerJoin doubt

2010-04-25 Thread fRAnKEnSTEin
Hi,

Yes i have tryed:
$reservation->getAdultsReserved()
or
$reservation->adultsreserved
or
$reservation->adults_reserved
or
$reservation->adultsReserved
or
$reservation->AdultsReserved()

and so on..none of them workeddo i have something wrong in my
db schema or somthingthis is rare...
Any idea?
Cheers

-- 
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: Doctrine innerJoin doubt

2010-04-25 Thread fRAnKEnSTEin
sorry what i want to say is that none of them worked

-- 
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: Doctrine innerJoin doubt

2010-04-25 Thread fRAnKEnSTEin
Hi,

Yes i have tryed:

$reservation->getAdultsReserved()

or

$reservation->adultsreserved

or

$reservation->adults_reserved

or

$reservation->adultsReserved

or

$reservation->AdultsReserved()

and so on..any of them workeddo i have somthing wrong in my db
schema or somthingthis is rare...

Any idea?

Cheers
On 24 abr, 16:05, Tiago Antunes  wrote:
> Hi fRAnKEnSTEin,
>
> Have you tried to access with $reservation->getAdultsReserved() ?
>
> Regards,
> Tiago Antunes
>
>
>
>
>
> On Sat, Apr 24, 2010 at 5:36 AM, fRAnKEnSTEin  wrote:
> > Hi,
>
> > 1) I have this DB schema:
>
> > Reservation:
> >  columns:
> >    name:                      { type: string(255), notnull: true }
> >    email:                      { type: string(255), notnull: true }
> >    commets:                { type: string(500), notnull: true }
>
> > ReservationDetail:
> >  columns:
> >    reservation_id:             { type: integer, notnull: true }
> >    adults_reserved:          { type: string(255), notnull: true }
> >    childrens_reserved:      { type: string(255), notnull: true }
> >  relations:
> >    Reservation:    { onDelete: CASCADE, local: reservation_id,
> > foreign: id, foreignAlias: ReservationDetails }
>
> > 2) Here is my query and the setVar:
>
> > $q = Doctrine_Query::create()
> >      ->select('r.id, rd.adults_reserved, rd.childrens_reserved')
> >      ->from('Reservation r')
> >      ->innerJoin('r.ReservationDetails rd');
> > $q->where('rd.reservation_id = 1');
> > $reservations = $q->execute();
>
> > $this->setVar("reservations", $reservations);
>
> > 3) In my template:
>
> > 
> >     adults_reserved?>
> >     childrens_reserved?>
> > 
>
> > Here i got an error that tells me: ...can't find related
> > "adults_reserved"...
>
> > My question: How can i access and print those details, what im missing
> > here?
>
> > 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 > legroups.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 
> athttp://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] Doctrine innerJoin doubt

2010-04-23 Thread fRAnKEnSTEin
Hi,

1) I have this DB schema:

Reservation:
  columns:
name:  { type: string(255), notnull: true }
email:  { type: string(255), notnull: true }
commets:{ type: string(500), notnull: true }

ReservationDetail:
  columns:
reservation_id: { type: integer, notnull: true }
adults_reserved:  { type: string(255), notnull: true }
childrens_reserved:  { type: string(255), notnull: true }
  relations:
Reservation:{ onDelete: CASCADE, local: reservation_id,
foreign: id, foreignAlias: ReservationDetails }

2) Here is my query and the setVar:

$q = Doctrine_Query::create()
  ->select('r.id, rd.adults_reserved, rd.childrens_reserved')
  ->from('Reservation r')
  ->innerJoin('r.ReservationDetails rd');
$q->where('rd.reservation_id = 1');
$reservations = $q->execute();

$this->setVar("reservations", $reservations);

3) In my template:


 adults_reserved?>
 childrens_reserved?>


Here i got an error that tells me: ...can't find related
"adults_reserved"...

My question: How can i access and print those details, what im missing
here?

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: join and custom filtering

2010-04-18 Thread fRAnKEnSTEin
for the first issue this is my schema.yml

Client:
  actAs: { Timestampable: ~ }
  columns:
name:   { type: string(255), notnull: true }
email:  { type: string(255), notnull: true }
phone_number:   { type: string(255), notnull: true }

Picture:
  actAs: { Timestampable: ~ }
  columns:
client_id: { type: integer, notnull: true }
photo:{ type: string(255), notnull: true }
  relations:
Client:{ onDelete: CASCADE, local: client_id, foreign: id,
foreignAlias: Pictures }

when i use somehting lile:

$client = $this->getRoute()->getObject();
$pictures = $client->Pictures[];

i get an error telling me that Pictures

"Unknown record property / related component "Pictures" on "Client" "

Any idea?

-- 
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] join and custom filtering

2010-04-18 Thread fRAnKEnSTEin
Hi,

1- I generated a backend using the admin generator of symfony. Two of
the generated modules are called "client" and "picture"(one client can
have many pictures). Now in the "client" module i configurate the
generator.yml in the "list:" option to show a "View" action, like so:

...
list:
  object_actions:
   View: ~
...

Now when i click over the view link in the list page, i execute this
code in the controller:

...
$client = $this->getRoute()->getObject();
...

What i need to do, is to fecth all the pictures of the given client
using doctrine methods, for example something like this:

$pictures = $client->getPictures(); //with "getPictures()" i mean some
doctrine automated method that returns me the data i need when i
defined "1 to many" relations in the Db schema, it is not a method
that i created to acomplish this fuction

All the examples i have seen, create a query, or a criteria..but
doctrine has to give me some kind of method to retrieve this kind of
data automatically, any idea?



2- The adim generator created a automatically some filters in the
differents modules, so the user can make trivial searches using them.
I am trying to create some non trivial filters, i have read:

http://trac.symfony-project.org/wiki/HowtoAddCustomFilterCriteria
http://www.strangebuzz.com/index.php/2008/04/03/31-symfony-10-tutorial-extending-the-admin-generator
http://trac.symfony-project.org/wiki/HowtoAddCustomFilterCriteria
...(and some many others)

but none of them explain exactly how this can be done, or just give
some routes that i do not have in my project(for example apps/backend/
modules/releases/actions/actions.php) any idea or example or good
tutorial of how can i created a non trivial filter and add it to some
admin generator module?

Any advice will be apreciatted

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: Best way to implement a multi step form

2010-04-14 Thread fRAnKEnSTEin
>I was thinking about
>saving form data from step 1 to step 2 in the session, but I may have
>problems with form serialisation.

Theres no prolbem with that(in fact there are 2 popular ways of doing
this: a)using session or b)using cookies)..because what you are going
to sve in session is an array that contents the diferenets values of
form's widgets. For example, if you create a contact form with a name,
lastname and comment inputs, then you will have an array like
contact['name'], contact[last_name] and contact[comments], so you will
just store this array called "contact" in session, and this will not
give any serialization problem or so, because is not an object it just
a data type like integer, string etc.

Cheers

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


[symfony-users] Re: Form help

2010-04-14 Thread fRAnKEnSTEin
Maybe this help a bit:

Assuming the field you talk about "author field" is a select widget in
the form you can set its default value in the options section of the
widget, to get the logged user, use something like:

class myUser extends sfGuardSecurityUser
{
 public function getUserId()
 {
if($this->isAuthenticated())
   return $this->getGuardUser()->getId(); //here retirns what
user is logged in
else
   return 0;
  }
}

cheers

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


[symfony-users] help with sfWidgetFormChoice and forms

2010-04-13 Thread fRAnKEnSTEin
Hi,

Two questions here, any advice will be apreciatted:

1- I'm using "sfWidgetFormChoice" in a form. The problem that i'm
having is that i need to place the options tags generated by de widget
into  of a table instead using  that the widget generates by
default. Is there any way of rendering this options tags using ? this is the line that generates the options:

...
'rdb_rooms' => new sfWidgetFormChoice(array( 'choices'  => array("",
"","",""),'expanded' => true)),
...

2- My second doubt is about form posting, i have a form with some
widgets(options, selects and text inputs) when the user submits the
form and there is any validation error, the form re display the page
and all the widgets display the values entered by the user as well, if
the form does not present any validation problem it redirects to
another page of the site. Now if the user hit the back button of the
browser, the textbox inputs display the values entered by the user
previusly, but all the selects and radios buttons losts it's original
entered value. Why the text inputs conservers the value entered by the
user and the combo+radios does not?

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: Some doubts

2010-04-13 Thread fRAnKEnSTEin
yeah! everything works! thanks Gareth McCumskey and the others ;)

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


[symfony-users] Re: Some doubts

2010-04-13 Thread fRAnKEnSTEin
Hi,

Thank you very much Dennis Benkert and Peter Petrik help me alot!

1- About the debbuging app i already installed xdebug on my system,
but rather than use that with an IDE like netbeans or eclipse, i just
one to print the value of some variable in the screen. Just as simple
as that, for example if i declare $foo = "myFooValue" what i like to
do is something like:

print_r($foo);

to see it's value on the screen, Is this possible without any
debugging tool?

2- About the mootools+AJAX integration with symfony anyone knows any
tip?

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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Some doubts

2010-04-12 Thread fRAnKEnSTEin
hi,

I'm new in symfony, and i have some doubts about "forms" creation, by
the way, i have been following this tutorial:
http://www.symfony-project.org/forms/1_4/en/01-Form-Creation

1- Why in symfony all the HTML elements like inputs, selects etc
should be created using php rendering? dont understand what are the
benefits of this, i mean, instead of using 
i must create a form class, then create inside this class all the
widgets that the form will use, and finally render all that widgets in
the view template.

2-In the tutorial section "Listing 1-6" they use this line:

$this->widgetSchema->setNameFormat('contact[%s]');

but never explain how can i extract all the fields of the form using
the "contact" array for example in the index action, i tryed lots of
ways($request->getParameter('contact')[0] or $request-
>getParameter('contact')->get('email') or $request-
>getParameter('contact[email]')) any idea how can i get this fields?

3- I'm integrating Mootools javascript framework with my test app.
Until now everything goes fine except the ajax part, i have searched
about symfony=mootools=jax withoot any luck. I already make the ajax
call, and it gets to the server side just well, but the response is
not well maybe i need to implemete a js template but not sure how to
do using mootools. I saw some examples using jquery but it is not the
same. Any idea?

4- Sometimes i need to see what are the values of some variables, how
can i just use a print_r(), or an echo or something to see its
contents?

Any idea will be apreciated

cheers

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


[symfony-users] Custom template and backend generator

2010-04-09 Thread fRAnKEnSTEin
Hi,

I have created a backed using the backend generator of symfony and got
2 problems. One of the generated modules is called "availability",
it's generator.yml file is like:

...
list:
actions:
  generateSeason: { label: Generate Season }
...

and its related action in the controler file of the module

public function executeListGenerateSeason(sfWebRequest $request)
{
  ...
  ...
}

After this a have created the related template file(located in apps/
backend/module/availability/templates) for this action called
"listGenerateSeasonSuccess.php" with some html code in it. The problem
that i have is  when i click the action "Generate Season" in the list
view  the  "listGenerateSeasonSuccess" does not load the css file that
the layout.php  has by default, these are:



)

in the browser i saw that the page view of
"listGenerateSeasonSuccess.php" includes oly the next stylesheets:




so have included the css of the layout "hardcoed" in the
"listGenerateSeasonSuccess.php" file like:






...
...
 and it loads fine...why this is happening? as i know the decorator
patern must work..what am i missing here?

The second thing that i am having trouble with... is that i need to
customise the look and feel of te filter section   plus some other
things in the new, edit ect views and in its related controllers-
actions, but the backend generator does not create any of these
files...at least  in the template directoy nor in the actions one. How
can i access this files to customice them?

any advice will be apreciated.

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

To unsubscribe, reply using "remove me" as the subject.