RE: [symfony-users] symfony criteri

2010-05-31 Thread Noor Mustafa

HI,

$c->add(QuestionsPeer::USERNAME,'ali'.'%',Criteria::LIKE); 
add this line i hope it will execute right record which u requrie

Date: Fri, 28 May 2010 21:42:22 -0700
Subject: [symfony-users] symfony criteri
From: kaliapari...@gmail.com
To: symfony-users@googlegroups.com

Howdy !!!

I am building queries...the query I am trying to do is
SELECT question FROM questions where username like 'ali'

now the result of this is clearly all the data in the question column of my 
questions table, right?

 so to translate this into symfony, I do this

$c= new Criteria()
$c->add(QuestionsPeer::USERNAME,'ali');
$results = QuestionsPeer::doSelect($c);

Now $results contains all the data of the questions table, where I am looking 
only for the question column, what do I need to add to the above query to make 
it work,


I tried this $c->addSelectColumn(QuestionsPeer::QUESTION);
but that does not work!!!

So any leads anyone?





-- 

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
  
_
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

-- 
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 to change text label attached to new link in embedRelation form

2010-05-31 Thread Noor Mustafa

Hi, 

 you should try this in FormClass 


 public function setup(){
this->setWidgets(array(
'name' =>new sfWidgetFormInput());
}

$this->widgetSchema['allergy_code']->setLabel('Allegray code');

or in action


$form = new myForm();

$form->setLabels('allergy_code','Allegray code' );





> Date: Fri, 28 May 2010 10:01:55 +0100
> Subject: Re: [symfony-users] how to change text label attached to new link in 
> embedRelation form
> From: p...@clearintent.co.uk
> To: symfony-users@googlegroups.com
> 
> Hi Stephane
> 
> Unfortunately, for some reason that isn't working.
> 
> I can access $this->widgetSchema['UglyName'] but setLabel doesn't
> change the name of the 'newLink'. I think it affects the main name of
> it but not the label of the new Link.
> 
> When I inspect the widget it has a positions array that I can access
> with ['UglyName']->getPositions() and the last position is
> 'newUglyName'
> getFields()  yields an array of widgets the last one beingis
> referenced by 'aNewUglyName' but I can't work out how to get at it to
> try setLabel on it.
> 
> 
> Any ideas?
> 
> Thanks,
> 
> Paul
> 
> On 28 May 2010 09:23, Paul Burdon  wrote:
> > HI Stephane,
> >
> > Just the ticket.
> >
> > Thanks!
> >
> > Paul
> >
> > On 28 May 2010 00:24, Stéphane  wrote:
> >> Hi,
> >>
> >> $this->getWidget($uglyName)->setLabel('my smart label');
> >>
> >> Cheers,
> >>
> >>
> >> Before Printing, Think about Your Environmental Responsibility!
> >> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
> >>
> >>
> >> On Fri, May 28, 2010 at 12:25 AM, Tofuwarrior 
> >> wrote:
> >>>
> >>> I have successfully use embedRelation to embed a relation in my form
> >>> BUT the new link at the bottom has a label next to it that says
> >>> NewUglyLongPropelObjectName  .
> >>>
> >>> How can I change this, I haven't set any new link anywhere so I'm not
> >>> sure how to change this.
> >>>
> >>> Is it a widget set somewhere.
> >>>
> >>> Anyone?
> >>> Deadline tonight, really rather not have this ugly mess spoiling
> >>> things.
> >>>
> >>> embedRelation -> Very cool!
> >>>
> >>> --
> >>> 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
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

-- 
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: shopping cart?

2010-05-31 Thread Richard D Shank
I'm getting ready to start building a store for a music site.  It will 
only be virtual products for now (mp3 downloads), but it will have some 
of the elements you are needing.  Right now, I plan on building it using 
the work from sfShop. I don't know what your time frame is for needing 
it, but I intend on contributing everything back that I can.


On 05/30/2010 11:31 PM, bretth wrote:

Yeah actually sales reporting has heaps to do with a shopping cart;
clients want fancy graphs which can be changed by easy to use filters
with all sorts of useful feedback info; to know different periods of
time, compare different items, different kinds of graphs etc. They
also want tabular data as well!

Individually each of these items might only take a few hours to
develop at a minimum, but when we're comparing development costs, a
few hours for each of these pieces of functionality suddenly adds up.

Add to this, an item typically needs a few photos for it, the ability
to rate it, tag it, have comments on it, find related items, have
discounts, have discount vouchers, have different sizes. The cart
needs to be able to manage quantities of each item type. Payment
modules need to be written. And then what about multi currency
capabilities? And also i18n for content etc. It also might need to
send invoices, perhaps dispatch shipments etc.

You really need the whole shebang for a fully functioning system and
nearly all of these things are actually more complicated than they
sound to develop, so naturally I was hoping that there was already
something in existence for symfony ;)


On May 31, 6:25 am, Eno  wrote:
   

On Fri, 28 May 2010, bretth wrote:
 

I agree that it's easy to get a basic shopping cart going; the issue
really is all the "extra" things; the main one being advanced sales
reporting.
   

Sales reporting doesn't have much to do with building a shopping cart.
That would involve running some queries against your orders database
surely?

--
 
   


--
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: sfCKEditor doesn't display anything

2010-05-31 Thread Ricardo
Hello,
Did you fix your problem ? I have the same problem but only on IE. On
firefox it works perfectly. Does your fckeditor widget appear in
firefox ?




-- 
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: why not host symfony1.4 on shared-hosting?

2010-05-31 Thread Chris Banford
I've had really, really excellent experiences with Hetzner.de (one of 
the largest German hosts). If having your server in Germany is ok with 
you, then they offer fantastic combo of hardware, support and reliability.


EQ 4 for 49.- Euros/month.
Quad-core i7 920
8 GB DDR3 RAM
2x 759 GB HDD - RAID 1
100 GB Backup space
Unlimited traffic (throttled to 10 MBS after 5TB traffic a month)

http://www.hetzner.de/en/hosting/produkte_rootserver/eq4/

-Chris


what is the cheapest i can get for a dedicated server?


--
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] Нужен программист в Москве на 1 неделю (Symphony PHP Framework)

2010-05-31 Thread Геоком Перово
Приветствую!

Нашей компании нужен программист на неделю (может чуть больше)
подменить нашего штатного программиста.

Есть куча разных мелочей, которые нужно доработать на сайте http://ts97.ru/
и настроить синхронизацию баз с сайтом www.lk-broker.ru

Работа в офисе на полный раб. день, район перово (Москва).

На все выделяется 10 000р.  А если  опыт работы на  Django достаточно
большой, можно будет переключиться на следующий проект...

Дайте знать, если предложение Вам интересно. Андрей.

-- 
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] Symfony 1.4 Alias

2010-05-31 Thread RedQueen
On the main page of Symfony we can find a lot of guides. And it really
help but sometime it dont answer all questions. One of this question
is "What if I don't want any alias?". All tutorials explain we have to
add few lines to apache config file to use the alias. But I dont want
any alias... I just want to write simple URL and get on my site. What
sohould I do?

-- 
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 неделю (Symphony PHP Framewo rk)

2010-05-31 Thread Stéphane
Please, english :o)


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


2010/5/31 Геоком Перово 

> Приветствую!
>
> Нашей компании нужен программист на неделю (может чуть больше)
> подменить нашего штатного программиста.
>
> Есть куча разных мелочей, которые нужно доработать на сайте
> http://ts97.ru/
> и настроить синхронизацию баз с сайтом www.lk-broker.ru
>
> Работа в офисе на полный раб. день, район перово (Москва).
>
> На все выделяется 10 000р.  А если  опыт работы на  Django достаточно
> большой, можно будет переключиться на следующий проект...
>
> Дайте знать, если предложение Вам интересно. Андрей.
>
> --
> 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] Patch in ticket #6632 not applied to Symfony 1.4

2010-05-31 Thread Olivier Scherler
Today I was investigating how I could avoid that sfDoctrineGuard  
happily (i.e. status == success) answers Ajax requests with a login  
form when the session expires, and I found ticket #6632:


  [PATCH] TimedOut Ajax request only gets 401 only on GET
  

which was fixed about a year ago in changeset 19773 .


However, not in Symfony 1.3 and 1.4. In fact, practically the only  
difference between BasesfGuardAuthActions.class.php in 1.2 and 1.4 is  
this fix in 1.2.


Should I reopen the ticket or open a new one?

Olivier

--
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 неделю (Symphony PHP Framewo rk)

2010-05-31 Thread Gareth McCumskey
Please don't post your job advertisements here -sigh-

On Monday 31 May 2010 12:47:15 Геоком Перово wrote:
> Приветствую!
> 
> Нашей компании нужен программист на неделю (может чуть больше)
> подменить нашего штатного программиста.
> 
> Есть куча разных мелочей, которые нужно доработать на сайте http://ts97.ru/
> и настроить синхронизацию баз с сайтом www.lk-broker.ru
> 
> Работа в офисе на полный раб. день, район перово (Москва).
> 
> На все выделяется 10 000р.  А если  опыт работы на  Django достаточно
> большой, можно будет переключиться на следующий проект...
> 
> Дайте знать, если предложение Вам интересно. Андрей.

-- 
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: shopping cart?

2010-05-31 Thread Donald Tyler
Bretth,

Eno is right, *almost* everything that you mention is not really part of a
shopping cart solution.

The features that you mention are obviously all very useful for various
aspects of sales, but I think you'll have more luck if you search for and
combine various different plugins and solutions for each of the features
your looking for. Trying to find a shopping cart plugin that offers all
those things (especially considering they aren't shopping cart features) is
going to be very difficult.

Finding a shopping cart plugin with all those features in it is kind of like
try to buy a house that already has all the furniture you want, with the
entertainment centre already perfectly configured, and decorated exactly how
you want it. Sure those things are related, but you'll have a much easier
time just getting the individual parts from the people that specialize in
them.

On Mon, May 31, 2010 at 3:27 AM, Richard D Shank  wrote:

> I'm getting ready to start building a store for a music site.  It will only
> be virtual products for now (mp3 downloads), but it will have some of the
> elements you are needing.  Right now, I plan on building it using the work
> from sfShop. I don't know what your time frame is for needing it, but I
> intend on contributing everything back that I can.
>
>
> On 05/30/2010 11:31 PM, bretth wrote:
>
>> Yeah actually sales reporting has heaps to do with a shopping cart;
>> clients want fancy graphs which can be changed by easy to use filters
>> with all sorts of useful feedback info; to know different periods of
>> time, compare different items, different kinds of graphs etc. They
>> also want tabular data as well!
>>
>> Individually each of these items might only take a few hours to
>> develop at a minimum, but when we're comparing development costs, a
>> few hours for each of these pieces of functionality suddenly adds up.
>>
>> Add to this, an item typically needs a few photos for it, the ability
>> to rate it, tag it, have comments on it, find related items, have
>> discounts, have discount vouchers, have different sizes. The cart
>> needs to be able to manage quantities of each item type. Payment
>> modules need to be written. And then what about multi currency
>> capabilities? And also i18n for content etc. It also might need to
>> send invoices, perhaps dispatch shipments etc.
>>
>> You really need the whole shebang for a fully functioning system and
>> nearly all of these things are actually more complicated than they
>> sound to develop, so naturally I was hoping that there was already
>> something in existence for symfony ;)
>>
>>
>> On May 31, 6:25 am, Eno  wrote:
>>
>>
>>> On Fri, 28 May 2010, bretth wrote:
>>>
>>>
 I agree that it's easy to get a basic shopping cart going; the issue
 really is all the "extra" things; the main one being advanced sales
 reporting.


>>> Sales reporting doesn't have much to do with building a shopping cart.
>>> That would involve running some queries against your orders database
>>> surely?
>>>
>>> --
>>>
>>>
>>
>>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Symfony 1.4 Alias

2010-05-31 Thread Jonathan Wage
Put it in a web accessible folder under apache and open the url.

- Jon

On Mon, May 31, 2010 at 7:56 AM, RedQueen  wrote:

> On the main page of Symfony we can find a lot of guides. And it really
> help but sometime it dont answer all questions. One of this question
> is "What if I don't want any alias?". All tutorials explain we have to
> add few lines to apache config file to use the alias. But I dont want
> any alias... I just want to write simple URL and get on my site. What
> sohould I do?
>
> --
> 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
>



-- 
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You should follow me on Twitter: http://www.twitter.com/jwage

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.com

-- 
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] Output escaping and components

2010-05-31 Thread ColinFine
If output escaping is enabled, how can you get at the raw values in a
component?
I rather think I'm hitting a bug in sfOutputEscaperObjectDecorator
(see below), but there should be a workround using an equivalent of
$sf_data, but I can't find it.

Chapter 7 explains how in a partial you can use $sf_data->getRaw to do
so, but $sf_data is not available in a component (unsurprisingly).

Snippets of my code:

in RotaGrid.class.php:
 function __construct(RotaBox $box) ...

in assignSuccess.php
 includecomponent('rota', 'layoutSubboxes', array('rota' => $rota));

in components.class.php:
 public function executeLayoutSubboxes()
{
   $this->grid = new RotaGrid($this->rota)
}

This gives:
"Argument 1 passed to RotaGrid::__construct() must be an instance of
RotaBox, instance of sfOutputEscaperObjectDecorator given"

but if I change the line in components.class.php to
   $this->grid = new RotaGrid($this->rota->getRaw())

it complains:
"Call to undefined method BaseRotaBox::getRaw"

So if I try to use the object directly it fails because it's an
sfOutputEscaperObjectDecorator, but as soon as I call a method -
specifically a method of sfOutputEscaperObjectDecorator in order to
get the real object - it apparently applies the magic and tries to
call that method on the real object.  This looks like a bug to me.

But I should be able to use the equivalent of $sf_data, presumably
through something like getContext(); but I can't work out how to get
at it.

Symfony 1.4 (I think) PHP 5.2.9

-- 
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: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
Put what?

On 31 Maj, 16:15, Jonathan Wage  wrote:
> Put it in a web accessible folder under apache and open the url.
>
> - Jon
>
>
>
> On Mon, May 31, 2010 at 7:56 AM, RedQueen  wrote:
> > On the main page of Symfony we can find a lot of guides. And it really
> > help but sometime it dont answer all questions. One of this question
> > is "What if I don't want any alias?". All tutorials explain we have to
> > add few lines to apache config file to use the alias. But I dont want
> > any alias... I just want to write simple URL and get on my site. What
> > sohould I do?
>
> > --
> > 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
>
> --
> Jonathan H. Wage (+1 415 992 5468)
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> You should follow me on Twitter:http://www.twitter.com/jwage
>
> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> training, consulting, application development, or business related questions
> at jonathan.w...@sensio.com

-- 
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: Symfony 1.4 Alias

2010-05-31 Thread Massimiliano Arione
The alias is needed only for the "sf" folder.
If you won't (or can't) use an alias, you can just copy "sf" folder
under your "web" folder

cheers
Massimiliano

On 31 Mag, 13:56, RedQueen  wrote:
> On the main page of Symfony we can find a lot of guides. And it really
> help but sometime it dont answer all questions. One of this question
> is "What if I don't want any alias?". All tutorials explain we have to
> add few lines to apache config file to use the alias. But I dont want
> any alias... I just want to write simple URL and get on my site. What
> sohould I do?

-- 
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: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
I still don't get it :/
I will try to explain more easy way what I want. So :D:D:D:D
Lets start the basics. After we install the symfony 1.4 acording with
tutorial on the symfony page we have few standard folders like "app",
"config" or "web". Awesome :D
When we will add the alias we can access to "web" folder ONLY!!! And
it is great cause it is safe for my private data like password to
database or anything else.
Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
The problem is when I won't add the alias, any user can open for
example "config/database.yml" file and read my private data.
Who will B so patient to explain me STEP BY STEP or like for a child
to understand this how to avoid to use alias but still have protected
data in symfony folders except "web". Please

On 31 Maj, 18:02, Massimiliano Arione  wrote:
> The alias is needed only for the "sf" folder.
> If you won't (or can't) use an alias, you can just copy "sf" folder
> under your "web" folder
>
> cheers
> Massimiliano
>
> On 31 Mag, 13:56, RedQueen  wrote:
>
> > On the main page of Symfony we can find a lot of guides. And it really
> > help but sometime it dont answer all questions. One of this question
> > is "What if I don't want any alias?". All tutorials explain we have to
> > add few lines to apache config file to use the alias. But I dont want
> > any alias... I just want to write simple URL and get on my site. What
> > sohould I do?

-- 
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: Symfony 1.4 Alias

2010-05-31 Thread Donald Tyler
It sounds like you're just having trouble understanding how to setup a site
in Apache.

If you can you post the apache configuration for your site, maybe I can
point you in the right direction.

On Mon, May 31, 2010 at 12:04 PM, RedQueen  wrote:

> I still don't get it :/
> I will try to explain more easy way what I want. So :D:D:D:D
> Lets start the basics. After we install the symfony 1.4 acording with
> tutorial on the symfony page we have few standard folders like "app",
> "config" or "web". Awesome :D
> When we will add the alias we can access to "web" folder ONLY!!! And
> it is great cause it is safe for my private data like password to
> database or anything else.
> Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> The problem is when I won't add the alias, any user can open for
> example "config/database.yml" file and read my private data.
> Who will B so patient to explain me STEP BY STEP or like for a child
> to understand this how to avoid to use alias but still have protected
> data in symfony folders except "web". Please
>
> On 31 Maj, 18:02, Massimiliano Arione  wrote:
> > The alias is needed only for the "sf" folder.
> > If you won't (or can't) use an alias, you can just copy "sf" folder
> > under your "web" folder
> >
> > cheers
> > Massimiliano
> >
> > On 31 Mag, 13:56, RedQueen  wrote:
> >
> > > On the main page of Symfony we can find a lot of guides. And it really
> > > help but sometime it dont answer all questions. One of this question
> > > is "What if I don't want any alias?". All tutorials explain we have to
> > > add few lines to apache config file to use the alias. But I dont want
> > > any alias... I just want to write simple URL and get on my site. What
> > > sohould I do?
>
> --
> 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: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
And thats why I dont want the alias :D

On 31 Maj, 19:10, Donald Tyler  wrote:
> It sounds like you're just having trouble understanding how to setup a site
> in Apache.
>
> If you can you post the apache configuration for your site, maybe I can
> point you in the right direction.
>
> On Mon, May 31, 2010 at 12:04 PM, RedQueen  wrote:
> > I still don't get it :/
> > I will try to explain more easy way what I want. So :D:D:D:D
> > Lets start the basics. After we install the symfony 1.4 acording with
> > tutorial on the symfony page we have few standard folders like "app",
> > "config" or "web". Awesome :D
> > When we will add the alias we can access to "web" folder ONLY!!! And
> > it is great cause it is safe for my private data like password to
> > database or anything else.
> > Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> > The problem is when I won't add the alias, any user can open for
> > example "config/database.yml" file and read my private data.
> > Who will B so patient to explain me STEP BY STEP or like for a child
> > to understand this how to avoid to use alias but still have protected
> > data in symfony folders except "web". Please
>
> > On 31 Maj, 18:02, Massimiliano Arione  wrote:
> > > The alias is needed only for the "sf" folder.
> > > If you won't (or can't) use an alias, you can just copy "sf" folder
> > > under your "web" folder
>
> > > cheers
> > > Massimiliano
>
> > > On 31 Mag, 13:56, RedQueen  wrote:
>
> > > > On the main page of Symfony we can find a lot of guides. And it really
> > > > help but sometime it dont answer all questions. One of this question
> > > > is "What if I don't want any alias?". All tutorials explain we have to
> > > > add few lines to apache config file to use the alias. But I dont want
> > > > any alias... I just want to write simple URL and get on my site. What
> > > > sohould I do?
>
> > --
> > 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: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
And I tried the solution number 2 from Massimiliano Arione. He said to
copy the sf folder to web folder. I did it (I don't understand what
for but I did it) and what? NOTHING.
I still have to use URL like "www.my_page.com/web" and any stranger
can change the url to "www.my_page.com/apps" and visit my private
files.
If I add alias I have short URL like "www.my_page:8083.com" or
"www.stupid_alias.my_page.com"  but on serwer I am in "web" folder.
I want the same without this unnessesary alias

On 31 Maj, 19:19, RedQueen  wrote:
> The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
> And thats why I dont want the alias :D
>
> On 31 Maj, 19:10, Donald Tyler  wrote:
>
> > It sounds like you're just having trouble understanding how to setup a site
> > in Apache.
>
> > If you can you post the apache configuration for your site, maybe I can
> > point you in the right direction.
>
> > On Mon, May 31, 2010 at 12:04 PM, RedQueen  wrote:
> > > I still don't get it :/
> > > I will try to explain more easy way what I want. So :D:D:D:D
> > > Lets start the basics. After we install the symfony 1.4 acording with
> > > tutorial on the symfony page we have few standard folders like "app",
> > > "config" or "web". Awesome :D
> > > When we will add the alias we can access to "web" folder ONLY!!! And
> > > it is great cause it is safe for my private data like password to
> > > database or anything else.
> > > Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> > > The problem is when I won't add the alias, any user can open for
> > > example "config/database.yml" file and read my private data.
> > > Who will B so patient to explain me STEP BY STEP or like for a child
> > > to understand this how to avoid to use alias but still have protected
> > > data in symfony folders except "web". Please
>
> > > On 31 Maj, 18:02, Massimiliano Arione  wrote:
> > > > The alias is needed only for the "sf" folder.
> > > > If you won't (or can't) use an alias, you can just copy "sf" folder
> > > > under your "web" folder
>
> > > > cheers
> > > > Massimiliano
>
> > > > On 31 Mag, 13:56, RedQueen  wrote:
>
> > > > > On the main page of Symfony we can find a lot of guides. And it really
> > > > > help but sometime it dont answer all questions. One of this question
> > > > > is "What if I don't want any alias?". All tutorials explain we have to
> > > > > add few lines to apache config file to use the alias. But I dont want
> > > > > any alias... I just want to write simple URL and get on my site. What
> > > > > sohould I do?
>
> > > --
> > > 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] Re: Question about sfWidgetFormChoice

2010-05-31 Thread Javier Garcia

On 03/05/2010 02:36 PM, Raphael Schumacher wrote:

$choices =array_merge(array('' =>  '-'), array_combine(range(14,130),
range(14,130)));
   


That shows the select options correctly but i dont get the choosen 
values. I mean,


if i choose for example 14, and in the action write something like this:

   var_dump($valores_widgets['edad']['de']);


that shows 0.

If i just write this below the values are right :

$choices = array_combine(range(14,130),range(14,130)));


Here you have the widget definition:

$this->widgetSchema['edad'] = new sfWidgetFormSchema();

foreach (array('de', 'a') as $value)
{

$this->widgetSchema['edad'][$value] = new 
sfWidgetFormChoice(array(
'label' => 
$value,
'choices' 
=> ...


Any idea?

--
Javi

Ubuntu 8.04 - Symfony 1.3

--
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: Symfony 1.4 Alias

2010-05-31 Thread Donald Tyler
If you have no access to the Apache configuration, then I don't see how you
can use the symfony framework securely. You *must* be able to define the web
root of your virtual host for the symfony framework to be secure.

I'm sure there's a "hacky" way to get it to work with your setup. But you
really need to use a host where you can properly configure your site. The
"web" folder really needs to be your site root. If it's not, then your going
to have all kinds of security issues.

To help you further with these, we are going to need more specifics on your
environment. We obviously know you are using apache, but:

   1. What configuration options *do* you have access to.
   2. Do you have a single directory (your web root) that you are allowed to
   upload files to?
   3. If not, what directories can you upload files to?
   4. Does your web host allow .htaccess overrides?
   5. etc..


On Mon, May 31, 2010 at 12:29 PM, RedQueen  wrote:

> And I tried the solution number 2 from Massimiliano Arione. He said to
> copy the sf folder to web folder. I did it (I don't understand what
> for but I did it) and what? NOTHING.
> I still have to use URL like "www.my_page.com/web" and any stranger
> can change the url to "www.my_page.com/apps" and visit my private
> files.
> If I add alias I have short URL like "www.my_page:8083.com" or
> "www.stupid_alias.my_page.com"  but on serwer I am in "web" folder.
> I want the same without this unnessesary alias
>
> On 31 Maj, 19:19, RedQueen  wrote:
> > The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
> > And thats why I dont want the alias :D
> >
> > On 31 Maj, 19:10, Donald Tyler  wrote:
> >
> > > It sounds like you're just having trouble understanding how to setup a
> site
> > > in Apache.
> >
> > > If you can you post the apache configuration for your site, maybe I can
> > > point you in the right direction.
> >
> > > On Mon, May 31, 2010 at 12:04 PM, RedQueen 
> wrote:
> > > > I still don't get it :/
> > > > I will try to explain more easy way what I want. So :D:D:D:D
> > > > Lets start the basics. After we install the symfony 1.4 acording with
> > > > tutorial on the symfony page we have few standard folders like "app",
> > > > "config" or "web". Awesome :D
> > > > When we will add the alias we can access to "web" folder ONLY!!! And
> > > > it is great cause it is safe for my private data like password to
> > > > database or anything else.
> > > > Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> > > > The problem is when I won't add the alias, any user can open for
> > > > example "config/database.yml" file and read my private data.
> > > > Who will B so patient to explain me STEP BY STEP or like for a child
> > > > to understand this how to avoid to use alias but still have protected
> > > > data in symfony folders except "web". Please
> >
> > > > On 31 Maj, 18:02, Massimiliano Arione  wrote:
> > > > > The alias is needed only for the "sf" folder.
> > > > > If you won't (or can't) use an alias, you can just copy "sf" folder
> > > > > under your "web" folder
> >
> > > > > cheers
> > > > > Massimiliano
> >
> > > > > On 31 Mag, 13:56, RedQueen  wrote:
> >
> > > > > > On the main page of Symfony we can find a lot of guides. And it
> really
> > > > > > help but sometime it dont answer all questions. One of this
> question
> > > > > > is "What if I don't want any alias?". All tutorials explain we
> have to
> > > > > > add few lines to apache config file to use the alias. But I dont
> want
> > > > > > any alias... I just want to write simple URL and get on my site.
> What
> > > > > > sohould I do?
> >
> > > > --
> > > > 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

[symfony-users] Re: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
Ok... I really appreciate your help mr Donald.
So answer 1) I can add alias through special menager panel for the
hosting server. (but I dont want alias), everything what I can do with
my serwer I have to do through this menager panel. I can use FTP
client to upload and download files.
2) On my serwer I have 3 folders: cgi-bin, requetes and www.
Everything what is in "www" folder we can se through the browser with
the easiest URL like www.my_page.com. Other folders are protected and
there is no way to see the content of other folders through any
browser.
3) I can upload files everywhere I want but like I said only files in
"www" folder are visible in the browser.
4) I can use .htaccess


extra 5) I tried with .htaccess. I create .htaccess file next to "www"
folder but didnt worked as I expected. So I moved it into "www" folder
bot the same result.
Content of the .htaccess file was at the first time:
RewriteEngine on
RewriteRule ^/$ /www/my_extra_folder/

and after I moved it into www folder:
RewriteEngine on
RewriteRule ^/$ /my_extra_folder/

And what can I say. Of course it redirect me to the "my_extra_folder"
BUT the URL in the browser looked like this "www.my_page.com/
my_extra_folder".
This mean that somebody can change the URL and get access to
"www.my_page.com/apps/".

Also I wrote a mail to the company which provides hosting services for
me but I'm sure it is to late to get the answer today. I asked about a
way to change the root folder on the server from "www" to "www/
my_folder".

Maybe I will have to change the offer for more advanced. I have the
cheapest offer so maybe I need something like PRO or higher.

I hope mr Donald we will be in contact to explain this issue to the
end :D:D:D I understand maybe today is too late but I hope tomorow we
will continue it.

If I can't do this on my server because it not allows me to change
apache configuration maybe you will explain me how to understand this
using localhost.

I have installed Wamp server on my notebook. I'm using Windows 7 x86.



On 31 Maj, 20:59, Donald Tyler  wrote:
> If you have no access to the Apache configuration, then I don't see how you
> can use the symfony framework securely. You *must* be able to define the web
> root of your virtual host for the symfony framework to be secure.
>
> I'm sure there's a "hacky" way to get it to work with your setup. But you
> really need to use a host where you can properly configure your site. The
> "web" folder really needs to be your site root. If it's not, then your going
> to have all kinds of security issues.
>
> To help you further with these, we are going to need more specifics on your
> environment. We obviously know you are using apache, but:
>
>    1. What configuration options *do* you have access to.
>    2. Do you have a single directory (your web root) that you are allowed to
>    upload files to?
>    3. If not, what directories can you upload files to?
>    4. Does your web host allow .htaccess overrides?
>    5. etc..
>
> On Mon, May 31, 2010 at 12:29 PM, RedQueen  wrote:
> > And I tried the solution number 2 from Massimiliano Arione. He said to
> > copy the sf folder to web folder. I did it (I don't understand what
> > for but I did it) and what? NOTHING.
> > I still have to use URL like "www.my_page.com/web" and any stranger
> > can change the url to "www.my_page.com/apps" and visit my private
> > files.
> > If I add alias I have short URL like "www.my_page:8083.com" or
> > "www.stupid_alias.my_page.com"  but on serwer I am in "web" folder.
> > I want the same without this unnessesary alias
>
> > On 31 Maj, 19:19, RedQueen  wrote:
> > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
> > > And thats why I dont want the alias :D
>
> > > On 31 Maj, 19:10, Donald Tyler  wrote:
>
> > > > It sounds like you're just having trouble understanding how to setup a
> > site
> > > > in Apache.
>
> > > > If you can you post the apache configuration for your site, maybe I can
> > > > point you in the right direction.
>
> > > > On Mon, May 31, 2010 at 12:04 PM, RedQueen 
> > wrote:
> > > > > I still don't get it :/
> > > > > I will try to explain more easy way what I want. So :D:D:D:D
> > > > > Lets start the basics. After we install the symfony 1.4 acording with
> > > > > tutorial on the symfony page we have few standard folders like "app",
> > > > > "config" or "web". Awesome :D
> > > > > When we will add the alias we can access to "web" folder ONLY!!! And
> > > > > it is great cause it is safe for my private data like password to
> > > > > database or anything else.
> > > > > Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> > > > > The problem is when I won't add the alias, any user can open for
> > > > > example "config/database.yml" file and read my private data.
> > > > > Who will B so patient to explain me STEP BY STEP or like for a child
> > > > > to understand this how to avoid to use alias but still have protected
> > > > > data in symfony folders except "web". Pl

[symfony-users] Re: Symfony 1.4 Alias

2010-05-31 Thread RedQueen
Ok... I really appreciate your help mr Donald.
So answer 1) I can add alias through special menager panel for the
hosting server. (but I dont want alias), everything what I can do with
my serwer I have to do through this menager panel. I can use FTP
client to upload and download files.
2) On my serwer I have 3 folders: cgi-bin, requetes and www.
Everything what is in "www" folder we can se through the browser with
the easiest URL like www.my_page.com. Other folders are protected and
there is no way to see the content of other folders through any
browser.
3) I can upload files everywhere I want but like I said only files in
"www" folder are visible in the browser.
4) I can use .htaccess


extra 5) I tried with .htaccess. I create .htaccess file next to "www"
folder but didnt worked as I expected. So I moved it into "www" folder
bot the same result.
Content of the .htaccess file was at the first time:
RewriteEngine on
RewriteRule ^/$ /www/my_extra_folder/

and after I moved it into www folder:
RewriteEngine on
RewriteRule ^/$ /my_extra_folder/

And what can I say. Of course it redirect me to the "my_extra_folder"
BUT the URL in the browser looked like this "www.my_page.com/
my_extra_folder".
This mean that somebody can change the URL and get access to
"www.my_page.com/apps/".

Also I wrote a mail to the company which provides hosting services for
me but I'm sure it is to late to get the answer today. I asked about a
way to change the root folder on the server from "www" to "www/
my_folder".

Maybe I will have to change the offer for more advanced. I have the
cheapest offer so maybe I need something like PRO or higher.

I hope mr Donald we will be in contact to explain this issue to the
end :D:D:D I understand maybe today is too late but I hope tomorow we
will continue it.

If I can't do this on my server because it not allows me to change
apache configuration maybe you will explain me how to understand this
using localhost.

I have installed Wamp server on my notebook. I'm using Windows 7 x86.



On 31 Maj, 20:59, Donald Tyler  wrote:
> If you have no access to the Apache configuration, then I don't see how you
> can use the symfony framework securely. You *must* be able to define the web
> root of your virtual host for the symfony framework to be secure.
>
> I'm sure there's a "hacky" way to get it to work with your setup. But you
> really need to use a host where you can properly configure your site. The
> "web" folder really needs to be your site root. If it's not, then your going
> to have all kinds of security issues.
>
> To help you further with these, we are going to need more specifics on your
> environment. We obviously know you are using apache, but:
>
>    1. What configuration options *do* you have access to.
>    2. Do you have a single directory (your web root) that you are allowed to
>    upload files to?
>    3. If not, what directories can you upload files to?
>    4. Does your web host allow .htaccess overrides?
>    5. etc..
>
> On Mon, May 31, 2010 at 12:29 PM, RedQueen  wrote:
> > And I tried the solution number 2 from Massimiliano Arione. He said to
> > copy the sf folder to web folder. I did it (I don't understand what
> > for but I did it) and what? NOTHING.
> > I still have to use URL like "www.my_page.com/web" and any stranger
> > can change the url to "www.my_page.com/apps" and visit my private
> > files.
> > If I add alias I have short URL like "www.my_page:8083.com" or
> > "www.stupid_alias.my_page.com"  but on serwer I am in "web" folder.
> > I want the same without this unnessesary alias
>
> > On 31 Maj, 19:19, RedQueen  wrote:
> > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
> > > And thats why I dont want the alias :D
>
> > > On 31 Maj, 19:10, Donald Tyler  wrote:
>
> > > > It sounds like you're just having trouble understanding how to setup a
> > site
> > > > in Apache.
>
> > > > If you can you post the apache configuration for your site, maybe I can
> > > > point you in the right direction.
>
> > > > On Mon, May 31, 2010 at 12:04 PM, RedQueen 
> > wrote:
> > > > > I still don't get it :/
> > > > > I will try to explain more easy way what I want. So :D:D:D:D
> > > > > Lets start the basics. After we install the symfony 1.4 acording with
> > > > > tutorial on the symfony page we have few standard folders like "app",
> > > > > "config" or "web". Awesome :D
> > > > > When we will add the alias we can access to "web" folder ONLY!!! And
> > > > > it is great cause it is safe for my private data like password to
> > > > > database or anything else.
> > > > > Actually almost great Why?... Cause I WAN'T THE STUPID ALIAS!!!
> > > > > The problem is when I won't add the alias, any user can open for
> > > > > example "config/database.yml" file and read my private data.
> > > > > Who will B so patient to explain me STEP BY STEP or like for a child
> > > > > to understand this how to avoid to use alias but still have protected
> > > > > data in symfony folders except "web". Pl

[symfony-users] sf 1.4: How can execute a task within another task? (tasks in a task)

2010-05-31 Thread Fernando Navarro Páez
Can I execute symfony build --all --no-confirmation --and-load in
MyTask?

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


[symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread ken
I would advise tracing through sfDoctrineForm::save() method. Embedded
forms save is not actually fired on containing form save. So if you
have many many relation or another embedded form inside an embedded
form, they wont be persisted.

On May 31, 1:28 pm, Michael Hodges  wrote:
> Hello Symfony fans,
>
> I'm hoping someone can point to the error in my ways.  I am working with
> embedded forms and the problem is that the master record is saved to the
> database, but not the user date for the detail records.  I have followed the
> 'more with symphony 1.4 en' example very carefully and have been very
> successful with all aspects of the project except getting the save to work.
> It's like a Toyota scenario where I have a great car, except for one fatal
> flaw.  Hoping you can help.
>
> The schema involves a master record, Transaction Receipt (master form), and
> two detail records: PurchaseDetail (Purchases) and PaymentDetail (Payments),
> the embedded forms.  For every receipt there must be at least one purchase
> and one payment detail.  My validation rules for this work well thanks to
> the examples in the tutorial.  The schema is as follows (I left a lot out
> except the essentials for readability):
>
> TransactionReceipt:
>   connection: doctrine
>   tableName: TransactionReceipt
>   actAs:  { Timestampable: }
>   columns:
>     receipt_id:  {  type: integer(4), primary: true, autoincrement: true }
>     paid_amount:  { type: 'decimal(5, 2)',  notnull: true }
>     paid_date:  { type: timestamp(25), notnull: true }
>     Purchases:  { class: PurchaseDetail, local: receipt_id, foreign:
> receipt_id, type: many }
>     Payments:  { class: PaymentDetail, local: receipt_id, foreign:
> receipt_id, type: many }
>
> PurchaseDetail:
>   connection: doctrine
>   tableName: PurchaseDetail
>   actAs:  { Timestampable: }
>   columns:
>     purchase_id:  { type: integer(4), primary: true, autoincrement: true}
>     receipt_id:  { type: integer(4) }
>     fee_name:  { type: string(45) }
>     fee_description:  { type: string(45) }
>     fee_amount:  { type: 'decimal(5, 2)'  }
>     quantity:  { type: integer(4) }
>   relations:
>     TransactionReceipt:  { owningSide: Yes, local: receipt_id, type: one,
> foreign: receipt_id, foreignType: many, foreignAlias: Purchases, onDelete:
> CASCADE, onUpdate: CASCADE }
>
> PaymentDetail:
>   connection: doctrine
>   tableName: PaymentDetail
>   actAs:  { Timestampable: }
>   columns:
>     payment_id:  { type: integer(4), primary: true, autoincrement: true }
>     receipt_id:  { type: integer(4) }
>     payment_type:  { type: string(2) }
>     payment_amount:  { type: 'decimal(5, 2)'  }
>   relations:
>     TransactionReceipt:  { owningSide: Yes, local: receipt_id, type: one,
> foreign: receipt_id, foreignType: many, foreignAlias: Payments, onDelete:
> CASCADE,  onUpdate: CASCADE }
>
> The YAML dump of the tainted values are taken in TransactionReceiptForm at
> the beginning of the saveEmbeddedForms method.
> The results demonstrate that the subforms are correctly holding the tainted
> values provided by the user.
>
> _csrf_token: 4abd94aee8c8a102c044558e44263726
> student_id: '10002'
> for_academic_year: '2009'
> paid_date: '2010-05-29 18:20:12'
> receipt_amount: '20.00'
> paid_amount: '20.00'
> newPurchases:
>   -
>     fee_name: 'ACT Pass'
>     fee_amount: '20.00'
>     quantity: '1'
>   -
>     fee_name: ''
>     fee_amount: ''
>     quantity: ''
>   -
>     fee_name: ''
>     fee_amount: ''
>     quantity: ''
>   -
>     fee_name: ''
>     fee_amount: ''
>     quantity: ''
> paid_by: mom
> newPayments:
>   -
>     payment_type: CA
>     payment_amount: '20'
>   -
>     payment_type: ''
>     payment_amount: ''
>
> In TransactionReceiptForm the default framework doSave method is called, I
> don't override it.  When there are errors in any of the subfields they are
> handled correctly.  However, when there are no errors and the doSave can
> proceed with saving the data to disk, only the master TransactionReceipt
> record is written to disk.  None of the detail records for Payments or
> Purchases are written to disk.  If I comment out the 'unset' logic in
> TransactionReceiptForm method saveEmbeddedForm, then the detail records with
> 'null' values are saved but none of the user input is saved too.  Each
> detail record does include the receipt_id, so that's a good start.
>
> My TransactionReceiptForm, method configure is as follows:
>     . . .
>     $collectionForm = new PurchaseDetailCollectionForm(null, array(
>       'receipt' => $this->getObject(),
>       'count'   => sfConfig::get('app_purchases_per_form'),
>     ));
>     $this->embedForm('newPurchases', $collectionForm);
>     $collectionForm = new PaymentDetailCollectionForm(null, array(
>       'receipt' => $this->getObject(),
>       'count'   => sfConfig::get('app_payments_per_form'),
>     ));
>     $this->embedForm('newPayments', $collectionForm);
>     $this->embedRelation('Purchases');
>     $this->embedRel

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread Daniel Lohse
Last time I heard, embedded forms are saved when calling a form's save() 
method. This change was in the 1.3 & 1.4 release.

Daniel

Sent from my iPad

On Jun 1, 2010, at 2:27 AM, ken  wrote:

> I would advise tracing through sfDoctrineForm::save() method. Embedded
> forms save is not actually fired on containing form save. So if you
> have many many relation or another embedded form inside an embedded
> form, they wont be persisted.
> 
> On May 31, 1:28 pm, Michael Hodges  wrote:
>> Hello Symfony fans,
>> 
>> I'm hoping someone can point to the error in my ways.  I am working with
>> embedded forms and the problem is that the master record is saved to the
>> database, but not the user date for the detail records.  I have followed the
>> 'more with symphony 1.4 en' example very carefully and have been very
>> successful with all aspects of the project except getting the save to work.
>> It's like a Toyota scenario where I have a great car, except for one fatal
>> flaw.  Hoping you can help.
>> 
>> The schema involves a master record, Transaction Receipt (master form), and
>> two detail records: PurchaseDetail (Purchases) and PaymentDetail (Payments),
>> the embedded forms.  For every receipt there must be at least one purchase
>> and one payment detail.  My validation rules for this work well thanks to
>> the examples in the tutorial.  The schema is as follows (I left a lot out
>> except the essentials for readability):
>> 
>> TransactionReceipt:
>>   connection: doctrine
>>   tableName: TransactionReceipt
>>   actAs:  { Timestampable: }
>>   columns:
>> receipt_id:  {  type: integer(4), primary: true, autoincrement: true }
>> paid_amount:  { type: 'decimal(5, 2)',  notnull: true }
>> paid_date:  { type: timestamp(25), notnull: true }
>> Purchases:  { class: PurchaseDetail, local: receipt_id, foreign:
>> receipt_id, type: many }
>> Payments:  { class: PaymentDetail, local: receipt_id, foreign:
>> receipt_id, type: many }
>> 
>> PurchaseDetail:
>>   connection: doctrine
>>   tableName: PurchaseDetail
>>   actAs:  { Timestampable: }
>>   columns:
>> purchase_id:  { type: integer(4), primary: true, autoincrement: true}
>> receipt_id:  { type: integer(4) }
>> fee_name:  { type: string(45) }
>> fee_description:  { type: string(45) }
>> fee_amount:  { type: 'decimal(5, 2)'  }
>> quantity:  { type: integer(4) }
>>   relations:
>> TransactionReceipt:  { owningSide: Yes, local: receipt_id, type: one,
>> foreign: receipt_id, foreignType: many, foreignAlias: Purchases, onDelete:
>> CASCADE, onUpdate: CASCADE }
>> 
>> PaymentDetail:
>>   connection: doctrine
>>   tableName: PaymentDetail
>>   actAs:  { Timestampable: }
>>   columns:
>> payment_id:  { type: integer(4), primary: true, autoincrement: true }
>> receipt_id:  { type: integer(4) }
>> payment_type:  { type: string(2) }
>> payment_amount:  { type: 'decimal(5, 2)'  }
>>   relations:
>> TransactionReceipt:  { owningSide: Yes, local: receipt_id, type: one,
>> foreign: receipt_id, foreignType: many, foreignAlias: Payments, onDelete:
>> CASCADE,  onUpdate: CASCADE }
>> 
>> The YAML dump of the tainted values are taken in TransactionReceiptForm at
>> the beginning of the saveEmbeddedForms method.
>> The results demonstrate that the subforms are correctly holding the tainted
>> values provided by the user.
>> 
>> _csrf_token: 4abd94aee8c8a102c044558e44263726
>> student_id: '10002'
>> for_academic_year: '2009'
>> paid_date: '2010-05-29 18:20:12'
>> receipt_amount: '20.00'
>> paid_amount: '20.00'
>> newPurchases:
>>   -
>> fee_name: 'ACT Pass'
>> fee_amount: '20.00'
>> quantity: '1'
>>   -
>> fee_name: ''
>> fee_amount: ''
>> quantity: ''
>>   -
>> fee_name: ''
>> fee_amount: ''
>> quantity: ''
>>   -
>> fee_name: ''
>> fee_amount: ''
>> quantity: ''
>> paid_by: mom
>> newPayments:
>>   -
>> payment_type: CA
>> payment_amount: '20'
>>   -
>> payment_type: ''
>> payment_amount: ''
>> 
>> In TransactionReceiptForm the default framework doSave method is called, I
>> don't override it.  When there are errors in any of the subfields they are
>> handled correctly.  However, when there are no errors and the doSave can
>> proceed with saving the data to disk, only the master TransactionReceipt
>> record is written to disk.  None of the detail records for Payments or
>> Purchases are written to disk.  If I comment out the 'unset' logic in
>> TransactionReceiptForm method saveEmbeddedForm, then the detail records with
>> 'null' values are saved but none of the user input is saved too.  Each
>> detail record does include the receipt_id, so that's a good start.
>> 
>> My TransactionReceiptForm, method configure is as follows:
>> . . .
>> $collectionForm = new PurchaseDetailCollectionForm(null, array(
>>   'receipt' => $this->getObject(),
>>   'count'   => sfConfig::get('app_purchases_per_form'),
>> ));
>> $this->embedForm('newP

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread Michael Hodges
The tracing I did demonstrated that the save indeed invoked the collection
form which in turn invoked each of the model forms.  I haven't been been
able to trace where the tainted values of the subforms don't get stored once
cleaned so that they can be saved as part of a transaction.

Can someone help me understand how the sfFormDoctrine handles the cleaned
data of the subforms?   Is there an analog to the taintedValues array for
the cleaned values of the master and subforms, or are the cleaned values
saved to disk as each form and subform is processed?  I think it is the
first case since all forms and subforms have to be validated before anything
is saved.  If it is the first case, I've not figured out what the array of
cleaned values is called and where best for me to put debug statements.

[I'm using debug statements because I've not yet figured out how to get
xdebug (using NetBeans) to continue stepping me through source code once
I've pressed the save button.  I'll ask this in another thread if I can't
eventually figure it out.]

Thanks for any help with resolving the subform save problem.
 - Michael

On Mon, May 31, 2010 at 3:00 PM, Daniel Lohse
wrote:

> Last time I heard, embedded forms are saved when calling a form's save()
> method. This change was in the 1.3 & 1.4 release.
>
> Daniel
>
> Sent from my iPad
>
> On Jun 1, 2010, at 2:27 AM, ken  wrote:
>
> > I would advise tracing through sfDoctrineForm::save() method. Embedded
> > forms save is not actually fired on containing form save. So if you
> > have many many relation or another embedded form inside an embedded
> > form, they wont be persisted.
> >
> > On May 31, 1:28 pm, Michael Hodges  wrote:
> >> Hello Symfony fans,
> >>
> >> I'm hoping someone can point to the error in my ways.  I am working with
> >> embedded forms and the problem is that the master record is saved to the
> >> database, but not the user date for the detail records.  I have followed
> the
> >> 'more with symphony 1.4 en' example very carefully and have been very
> >> successful with all aspects of the project except getting the save to
> work.
> >> It's like a Toyota scenario where I have a great car, except for one
> fatal
> >> flaw.  Hoping you can help.
> >>
> >> The schema involves a master record, Transaction Receipt (master form),
> and
> >> two detail records: PurchaseDetail (Purchases) and PaymentDetail
> (Payments),
> >> the embedded forms.  For every receipt there must be at least one
> purchase
> >> and one payment detail.  My validation rules for this work well thanks
> to
> >> the examples in the tutorial.  The schema is as follows (I left a lot
> out
> >> except the essentials for readability):
> >>
> >> TransactionReceipt:
> >>   connection: doctrine
> >>   tableName: TransactionReceipt
> >>   actAs:  { Timestampable: }
> >>   columns:
> >> receipt_id:  {  type: integer(4), primary: true, autoincrement: true
> }
> >> paid_amount:  { type: 'decimal(5, 2)',  notnull: true }
> >> paid_date:  { type: timestamp(25), notnull: true }
> >> Purchases:  { class: PurchaseDetail, local: receipt_id, foreign:
> >> receipt_id, type: many }
> >> Payments:  { class: PaymentDetail, local: receipt_id, foreign:
> >> receipt_id, type: many }
> >>
> >> PurchaseDetail:
> >>   connection: doctrine
> >>   tableName: PurchaseDetail
> >>   actAs:  { Timestampable: }
> >>   columns:
> >> purchase_id:  { type: integer(4), primary: true, autoincrement:
> true}
> >> receipt_id:  { type: integer(4) }
> >> fee_name:  { type: string(45) }
> >> fee_description:  { type: string(45) }
> >> fee_amount:  { type: 'decimal(5, 2)'  }
> >> quantity:  { type: integer(4) }
> >>   relations:
> >> TransactionReceipt:  { owningSide: Yes, local: receipt_id, type:
> one,
> >> foreign: receipt_id, foreignType: many, foreignAlias: Purchases,
> onDelete:
> >> CASCADE, onUpdate: CASCADE }
> >>
> >> PaymentDetail:
> >>   connection: doctrine
> >>   tableName: PaymentDetail
> >>   actAs:  { Timestampable: }
> >>   columns:
> >> payment_id:  { type: integer(4), primary: true, autoincrement: true
> }
> >> receipt_id:  { type: integer(4) }
> >> payment_type:  { type: string(2) }
> >> payment_amount:  { type: 'decimal(5, 2)'  }
> >>   relations:
> >> TransactionReceipt:  { owningSide: Yes, local: receipt_id, type:
> one,
> >> foreign: receipt_id, foreignType: many, foreignAlias: Payments,
> onDelete:
> >> CASCADE,  onUpdate: CASCADE }
> >>
> >> The YAML dump of the tainted values are taken in TransactionReceiptForm
> at
> >> the beginning of the saveEmbeddedForms method.
> >> The results demonstrate that the subforms are correctly holding the
> tainted
> >> values provided by the user.
> >>
> >> _csrf_token: 4abd94aee8c8a102c044558e44263726
> >> student_id: '10002'
> >> for_academic_year: '2009'
> >> paid_date: '2010-05-29 18:20:12'
> >> receipt_amount: '20.00'
> >> paid_amount: '20.00'
> >> newPurchases:
> >>   -
> >> fee_name: 'ACT Pass'
> >>

Re: [symfony-users] Re: Symfony 1.4 Alias

2010-05-31 Thread Eno
On Mon, 31 May 2010, RedQueen wrote:

> Ok... I really appreciate your help mr Donald.
> So answer 1) I can add alias through special menager panel for the
> hosting server. (but I dont want alias), everything what I can do with
> my serwer I have to do through this menager panel. I can use FTP
> client to upload and download files.
> 2) On my serwer I have 3 folders: cgi-bin, requetes and www.
> Everything what is in "www" folder we can se through the browser with
> the easiest URL like www.my_page.com.

So the contents of your web folder should be in the www folder.

> Other folders are protected and
> there is no way to see the content of other folders through any
> browser.

Good, so the rest of your symfony folders can go in requetes. You will 
probably need to edit index.php in web so it knows how to load the symfony 
classes (since the rest of nthe code is now one level 'up').

> 3) I can upload files everywhere I want but like I said only 
files in > "www" folder are visible in the browser.
> 4) I can use .htaccess

The htaccess file should be in www as usual.

> extra 5) I tried with .htaccess. I create .htaccess file next to "www"
> folder but didnt worked as I expected. So I moved it into "www" folder
> bot the same result.
> Content of the .htaccess file was at the first time:
> RewriteEngine on
> RewriteRule ^/$ /www/my_extra_folder/
> 
> and after I moved it into www folder:
> RewriteEngine on
> RewriteRule ^/$ /my_extra_folder/
> 
> And what can I say. Of course it redirect me to the "my_extra_folder"
> BUT the URL in the browser looked like this "www.my_page.com/
> my_extra_folder".
> This mean that somebody can change the URL and get access to
> "www.my_page.com/apps/".

Not if your apps folder is outside www.

> Also I wrote a mail to the company which provides hosting services for
> me but I'm sure it is to late to get the answer today. I asked about a
> way to change the root folder on the server from "www" to "www/
> my_folder".

Dont need to mess with aliases if you deploy as Ive described. Your www 
folder should only need index.php and the htaccess file. If yhou've 
changed the htaccess file from the default, you probably should change it 
back.



-- 


-- 
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: Symfony 1.4 Alias

2010-05-31 Thread Gareth McCumskey
This is all easily answered by looking at the symfony documentation which has 
a helpful section on setting up a symfony application on a shared web hosting 
service, i.e. a service where you do not have root access to the machine 
hosting the site:

http://www.symfony-project.org/book/1_0/03-Running-
Symfony#chapter_03_sub_configuring_a_shared_host_server

On Monday 31 May 2010 22:04:31 RedQueen wrote:
> Ok... I really appreciate your help mr Donald.
> So answer 1) I can add alias through special menager panel for the
> hosting server. (but I dont want alias), everything what I can do with
> my serwer I have to do through this menager panel. I can use FTP
> client to upload and download files.
> 2) On my serwer I have 3 folders: cgi-bin, requetes and www.
> Everything what is in "www" folder we can se through the browser with
> the easiest URL like www.my_page.com. Other folders are protected and
> there is no way to see the content of other folders through any
> browser.
> 3) I can upload files everywhere I want but like I said only files in
> "www" folder are visible in the browser.
> 4) I can use .htaccess
> 
> 
> extra 5) I tried with .htaccess. I create .htaccess file next to "www"
> folder but didnt worked as I expected. So I moved it into "www" folder
> bot the same result.
> Content of the .htaccess file was at the first time:
> RewriteEngine on
> RewriteRule ^/$ /www/my_extra_folder/
> 
> and after I moved it into www folder:
> RewriteEngine on
> RewriteRule ^/$ /my_extra_folder/
> 
> And what can I say. Of course it redirect me to the "my_extra_folder"
> BUT the URL in the browser looked like this "www.my_page.com/
> my_extra_folder".
> This mean that somebody can change the URL and get access to
> "www.my_page.com/apps/".
> 
> Also I wrote a mail to the company which provides hosting services for
> me but I'm sure it is to late to get the answer today. I asked about a
> way to change the root folder on the server from "www" to "www/
> my_folder".
> 
> Maybe I will have to change the offer for more advanced. I have the
> cheapest offer so maybe I need something like PRO or higher.
> 
> I hope mr Donald we will be in contact to explain this issue to the
> end :D:D:D I understand maybe today is too late but I hope tomorow we
> will continue it.
> 
> If I can't do this on my server because it not allows me to change
> apache configuration maybe you will explain me how to understand this
> using localhost.
> 
> I have installed Wamp server on my notebook. I'm using Windows 7 x86.
> 
> On 31 Maj, 20:59, Donald Tyler  wrote:
> > If you have no access to the Apache configuration, then I don't see how
> > you can use the symfony framework securely. You *must* be able to define
> > the web root of your virtual host for the symfony framework to be
> > secure.
> > 
> > I'm sure there's a "hacky" way to get it to work with your setup. But you
> > really need to use a host where you can properly configure your site. The
> > "web" folder really needs to be your site root. If it's not, then your
> > going to have all kinds of security issues.
> > 
> > To help you further with these, we are going to need more specifics on
> > your environment. We obviously know you are using apache, but:
> > 
> >1. What configuration options *do* you have access to.
> >2. Do you have a single directory (your web root) that you are allowed
> > to upload files to?
> >3. If not, what directories can you upload files to?
> >4. Does your web host allow .htaccess overrides?
> >5. etc..
> > 
> > On Mon, May 31, 2010 at 12:29 PM, RedQueen  wrote:
> > > And I tried the solution number 2 from Massimiliano Arione. He said to
> > > copy the sf folder to web folder. I did it (I don't understand what
> > > for but I did it) and what? NOTHING.
> > > I still have to use URL like "www.my_page.com/web" and any stranger
> > > can change the url to "www.my_page.com/apps" and visit my private
> > > files.
> > > If I add alias I have short URL like "www.my_page:8083.com" or
> > > "www.stupid_alias.my_page.com"  but on serwer I am in "web" folder.
> > > I want the same without this unnessesary alias
> > > 
> > > On 31 Maj, 19:19, RedQueen  wrote:
> > > > The problem is I HAVE NO ACCESS TO APACHE.CONFIG.
> > > > And thats why I dont want the alias :D
> > > > 
> > > > On 31 Maj, 19:10, Donald Tyler  wrote:
> > > > > It sounds like you're just having trouble understanding how to
> > > > > setup a
> > > 
> > > site
> > > 
> > > > > in Apache.
> > > > > 
> > > > > If you can you post the apache configuration for your site, maybe I
> > > > > can point you in the right direction.
> > > > > 
> > > > > On Mon, May 31, 2010 at 12:04 PM, RedQueen 
> > > 
> > > wrote:
> > > > > > I still don't get it :/
> > > > > > I will try to explain more easy way what I want. So :D:D:D:D
> > > > > > Lets start the basics. After we install the symfony 1.4 acording
> > > > > > with tutorial on the symfony page we have few standard folders
> > > > > > like "

[symfony-users] Re: Custom directory structure

2010-05-31 Thread Tom Ptacnik
Is there (/home/xx/public_html/api/lib/vendor/symfony/lib/
plugins/sfDoctrinePlugin/lib/database/) the file
sfDoctrineDatabase.class.php ?

On 27 kvě, 16:45, Ragnis  wrote:
> Nothing changed.
> Still theese errors:
>
> Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/
> plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php)
> [function.require]: failed to open stream: No such file or directory
> in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> sfAutoload.class.php on line 188
>
> Fatal error: require() [function.require]: Failed opening required '/
> home/xx/public_html/api/lib/vendor/symfony/lib/plugins/
> sfDoctrinePlugin/lib/database/
> sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/
> lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> sfAutoload.class.php on line 188
>
> On May 27, 11:45 am, Tom Ptacnik  wrote:
>
>
>
> > I think it can be done easily... it's just about moving the web folder
> > somewhere else. And you have to configure you virtual in a right way
> > of course.
>
> > Virtual
> >  - classic - for you into public_html/api
> >   don't forget for alias for vendor/symfony/data/web/sf (The Alias
> > statement is necessary for the images of the debug sidebar to be
> > displayed)
>
> > Then the project
> >   private_html/api = application
> >   public_html/api = web
>
> > 1) All stuff from /web folder move to public_html/api
> > 2) change the path to the web dir in ProjectConfiguration.class.php -
> > something like this should work: 
> > $this->setWebDir($this->getRootDir().'/../../public_html/api);
>
> > 3) change the path of the project in the front controllers:
> > index.php, frontend_dev.php, backend.dev.php  something like
> > require_once(dirname(__FILE__).'/../../private_html/api/config/
> > ProjectConfiguration.class.php');
>
> > On 24 kvě, 20:06, Ragnis  wrote:
>
> > > I want to use the following directory strucure:
>
> > > home
> > > ---xx
> > > --private_html
> > > -api
> > > apps
> > > cache
> > > config
> > > ...
> > > --public_html
> > > -api
> > > index.php
> > > frontend_dev.php
> > > ...
>
> > > But i don't know what files i need to edit to get it work.
>
> > > ProjectConfiguration.class.php
> > >  > > //require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/
> > > sfCoreAutoload.class.php';
> > > require_once '../../private_html/api/lib/vendor/symfony/lib/autoload/
> > > sfCoreAutoload.class.php';
> > > sfCoreAutoload::register();
>
> > > class ProjectConfiguration extends sfProjectConfiguration
> > > {
> > >   public function setup()
> > >   {
> > >     $this->setWebDir($this->getRootDir().'../../public_html/api');
> > >     $this->enablePlugins('sfDoctrinePlugin');
> > >   }
>
> > > }
>
> > > frontend_dev.php
> > > 
> > > // this check prevents access to debug front controllers that are
> > > deployed by accident to production servers.
> > > // feel free to remove this, extend it or make something more
> > > sophisticated.
> > > if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) &&
> > > false)
> > > {
> > >   die('You are not allowed to access this file. Check
> > > '.basename(__FILE__).' for more information.');
>
> > > }
>
> > > //require_once(dirname(__FILE__).'/config/
> > > ProjectConfiguration.class.php');
> > > require_once('../../private_html/api/config/
> > > ProjectConfiguration.class.php');
>
> > > $configuration =
> > > ProjectConfiguration::getApplicationConfiguration('frontend', 'dev',
> > > true);
> > > sfContext::createInstance($configuration)->dispatch();
>
> > > I get an php error:
>
> > > Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/
> > > plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php)
> > > [function.require]: failed to open stream: No such file or directory
> > > in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> > > sfAutoload.class.php on line 188
>
> > > Fatal error: require() [function.require]: Failed opening required '/
> > > home/xx/public_html/api/lib/vendor/symfony/lib/plugins/
> > > sfDoctrinePlugin/lib/database/
> > > sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/
> > > lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> > > sfAutoload.class.php on line 188
>
> > > --
> > > 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-users] Re: Edit/Diplay form content is not the same from database (production)

2010-05-31 Thread Tom Ptacnik
It has something to do with caching.

In the dev environment is it ok, and in the production work this weird
way?


On 27 kvě, 17:57, Popovich  wrote:
> Hi have a problem in the application i am creating when putting it in
> the server.
> Let´s say i have a typical form. I change to edit mode , change some
> values and save. Then i will redirect to the index page which shows
> the form data.
>
> The problem it´s that shows the old version of data. If i refresh the
> page then it appears the new data correctly but if then i click edit
> it shows the older data again.
>
> I have also a register form but in this case i have to do a refresh to
> the page so the form is saved in the db.
>
> What could be the problem? This is really strange.

-- 
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: formatting embedded form with embedRelation - how?

2010-05-31 Thread Tom Ptacnik
Changin the label is easy ... setLabel() 
http://www.symfony-project.org/forms/1_4/en/01-Form-Creation

For the changing format of the form  you have more ways ...
a) form formatters
b) changing template


On 27 kvě, 21:03, Tofuwarrior  wrote:
> Hi,
>
> I have used embed relation to embed (a relation! amazing)
>
> And it is great, so quick to be able to add new stuff BUT
>
> It renders with the propel class name as the label for the whole
> embedded form which looks very clunky and I can't work out how I can
> change this or in fact how I can change the formatting of this form at
> all.
>
> In a module I can use partials etc but how should it work?
>
> Anyone give me any pointers?
>
> Cheers,
>
> Paul

-- 
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: Problems with doctrine and Oracle 10g

2010-05-31 Thread Tom Ptacnik
So your problem is solved, or do you only make a mistake when
reporting this problem?

BTW those capital letters are not a great idea - nor in the model nor
in the sentences when reporting a problem.


On 27 kvě, 22:24, Andres Villaquiran  wrote:
> sORRY, I had a mistake, when i wrote:
>
> SMIS_SIS_ORGANIOZACION IS THE ORACLE SYNONYM OF SMI_SIS_ORACLE.
>
> must be
>
> SMIS_SIS_ORGANIZACION IS THE ORACLE SYNONYM OF SMI_SIS_ORGANIZACION.
>
>
>
> - Original Message 
> From: Andres Villaquiran 
> To: symfony-users@googlegroups.com
>
> Cc: SMI Sistemas 
> Sent: Thu, May 27, 2010 1:20:03 PM
> Subject: Problems with doctrine and Oracle 10g
>
> Hello
>
>   I'm new in Symfony. I have problems whe I try to retrieval data of  an 
> pre-existing data base table in oracle 10g. I TEST THE CONNECTION WITH ORACLE 
> AND IT WORKING VERY WELL.
>
> Please, I will appreciate so much any help with you.
>
> My configuration is :
> Apache 2.0.63
> php 5.2.13
> OS: Windows XP SP3
> Data Base: Oracle 10g - 10.2.0.1.0
>
> The Oracle table is:
>
> Column Name                      DATATYPE                      NULL
>
> ID_ORGANIZACION              NUMBER (10)                   No        
> C_ORGANIZACION               VARCHAR2 (10 Byte)        Yes        
> D_ORGANIZACION               VARCHAR2 (40 Byte)        Yes        
> D_DIRECCION_FISCAL         VARCHAR2 (240 Byte)      Yes        
> C_RIF                                  VARCHAR2 (20 Byte)        Yes        
> C_CLASE_ORGANIZACION   VARCHAR2 (20 Byte)       Yes        
> D_PAGINA_WEB                  VARCHAR2 (100 Byte)      Yes        
> C_ACCESO                          VARCHAR2 (20 Byte)        Yes        
> F_CAPTURA                         DATE                               Yes      
>   
> C_IDENTI_CAPTURA             VARCHAR2 (20 Byte)        Yes        
> F_ACTZCN                            DATE                               Yes    
>     
> C_IDENTI_ACTZCN                VARCHAR2 (20 Byte)        Yes        
>
> ID_ORGANIZACION is the primary key in oracle.
> SMIS_SIS_ORGANIOZACION IS THE ORACLE SYNONYM OF SMI_SIS_ORACLE.
>
> My definition in doctrine schema.yml is:
>
> smis_sis_organizacion:
>   columns:
>     Id_ORGANIZACION:   { type: integer, primary: true }
>     C_ORGANIZACION:   { type: string(10) }
>     D_ORGANIZACION:   { type: string(40) }
>     D_DIRECCION_FISCAL: { type: string(240) }
>     C_RIF:              { type: string(20) }
>     C_CLASE_ORGANIZACION: { type: string(20) }
>     D_PAGINA_WEB:         { type: string(100) }
>     C_ACCESO:             { type: string(20) }
>     F_CAPTURA :           { type: timestamp, notnull: true }
>     C_IDENTI_CAPTURA:     { type: string(20), notnull: true }
>     F_ACTZCN:             { type: timestamp, notnull: true }
>     C_IDENTI_ACTZCN:      { type: string(20), notnull: true }
>
> I CALL THE PAGE WITH RETRIEVE INFORMATION OF THIS TABLE USING:
>
> http://sm-143c0295bc7c/frontend_dev.php/ORGANIZACION
>
> I GET THIS NEXT ERROR:
>
> 500 | Internal Server Error |
> Doctrine_Record_UnknownPropertyException
> Unknown record property / related component
> "corganizacion" on "smis_sis_organizacion"
> stack trace
>     * at ()
> in 
> SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doct­rine\Doctrine\Record\Filter\Standard.php
>  line 55 ...
>
>     1.      */
>     2.     public function filterGet(Doctrine_Record $record, $name)
>     3.     {
>     4.         throw new 
> Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / 
> related component "%s" on "%s"', $name, get_class($record)));
>     5.     }
>     6. }
>     * at 
> Doctrine_Record_Filter_Standard->filterGet(object('smis_sis_organizacion'), 
> 'corganizacion')
> in 
> SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doct­rine\Doctrine\Record.php
>  line 1384 ...
>
>     1.             $success = false;
>     2.             foreach ($this->_table->getFilters() as $filter) {
>     3.                 try {
>     4.                     $value = $filter->filterGet($this, $fieldName);
>     5.                     $success = true;
>     6.                 } catch (Doctrine_Exception $e) {}
>     7.             }
>     * at Doctrine_Record->_get('corganizacion', 1)
> in 
> SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doct­rine\Doctrine\Record.php
>  line 1339 ...
>
>     1.                 return $this->$accessor($load);
>     2.             }
>     3.         }
>     4.         return $this->_get($fieldName, $load);
>     5.     }
>     6.
>     7.     protected function _get($fieldName, $load = true)
>     * at Doctrine_Record->get('corganizacion')
> in n/a line n/a ...
>
>     * at call_user_func_array(array(object('smis_sis_organizacion'), 'get'), 
> array('corganizacion'))
> in 
> SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\record\sfDo­ctrineRecord.class.php
>  line 212 ...
>
>     1.         return call_user_func_array(
>     2.