Re: [symfony-users] Re: Symfony2 slow on windows (xp)

2011-03-28 Thread Alex Pilon
Check this link out: http://tinyurl.com/68fnrgt

On Fri, Mar 25, 2011 at 09:16, Stanley  wrote:

> Thank you for suggestion.
> I have just installed gedit, but I couldn't find the plugin for step
> by step debugging.
> You have the link to the plugin?
>
> On Mar 24, 9:45 pm, Alex Pilon  wrote:
> > I dont know the answer to your question, but on linux you can get a ton
> of
> > plugins for gedit that can make gedit as good and better than notepad++.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Mar 24, 2011 at 07:59, Stanley 
> wrote:
> > > Guys,
> >
> > > Do you encounter slowness using symfony2 on windows xp?
> > > After I installed symfony2 PR8 on the machine, I browsed
> > >http://localhost/web/app_dev.php/.
> > > It took ages to finish. Probably more than 10 seconds.
> > > On Ubuntu it only takes about 1 second.
> > > I ever installed symfony1.4.9 and the performance under windows xp and
> > > ubuntu were comparable.
> >
> > > I profiled using xdebug and the problem is on file_exists php function
> > > call.
> > > Guess symfony2 makes a lot of file_exists function call. Probably this
> > > function is not optimized under windows or got additional internal
> > > logic that makes it runs slow (googling and found some say there is
> > > buffer mechanism in-built. not sure if true.).
> > > Or, windows is not good in file handling and linux is more advanced?
> >
> > > I prefer working in windows because of notepad++. Notepad++ is only
> > > available in windows.
> > > I like the debugger plugin. It can be activated from any URL web page
> > > and it's quite stable.
> > > I tried netbeans under linux but it's slow and can only debug from a
> > > predefined URL and not stable (debugger sometimes doesn't work.
> > > probably due to my inexperience).
> > > Is there similar notepad++ under linux?
> > > Any idea and suggestion is really appreciated.
> >
> > > Thanks.
> >
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it
> to
> > > security at symfony-project.com
> >
> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Symfony2 slow on windows (xp)

2011-03-24 Thread Alex Pilon
I dont know the answer to your question, but on linux you can get a ton of
plugins for gedit that can make gedit as good and better than notepad++.

On Thu, Mar 24, 2011 at 07:59, Stanley  wrote:

> Guys,
>
> Do you encounter slowness using symfony2 on windows xp?
> After I installed symfony2 PR8 on the machine, I browsed
> http://localhost/web/app_dev.php/.
> It took ages to finish. Probably more than 10 seconds.
> On Ubuntu it only takes about 1 second.
> I ever installed symfony1.4.9 and the performance under windows xp and
> ubuntu were comparable.
>
> I profiled using xdebug and the problem is on file_exists php function
> call.
> Guess symfony2 makes a lot of file_exists function call. Probably this
> function is not optimized under windows or got additional internal
> logic that makes it runs slow (googling and found some say there is
> buffer mechanism in-built. not sure if true.).
> Or, windows is not good in file handling and linux is more advanced?
>
> I prefer working in windows because of notepad++. Notepad++ is only
> available in windows.
> I like the debugger plugin. It can be activated from any URL web page
> and it's quite stable.
> I tried netbeans under linux but it's slow and can only debug from a
> predefined URL and not stable (debugger sometimes doesn't work.
> probably due to my inexperience).
> Is there similar notepad++ under linux?
> Any idea and suggestion is really appreciated.
>
> Thanks.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Searchable behavior and french characters

2011-03-21 Thread Alex Pilon
I found the problem and the solution.

The problem was that the text analyzer Doctrine_Search_Analyzer_Standard was
not taking into account utf-8 encoding.

The solution is that there is a class called Doctrine_Search_Analyzer_Utf8.

You can apply this to a model like so:

MyModel:
  actAs:
Timestampable: ~
SoftDelete: ~
Searchable:
  fields: [name, description]
  analyzer: Doctrine_Search_Analyzer_Utf8

Thanks

On Mon, Mar 21, 2011 at 14:18, Alex Pilon  wrote:

> To further this, I traced the search code, and the keywords being entered
> seem to preserve any french characters.
>
> Why is the searchable behavior changing characters at all?
>
>
> On Mon, Mar 21, 2011 at 14:12, Alex Pilon  wrote:
>
>> I tried that, however I noticed that there is more to this problem.
>>
>> When a record gets inserted and the search index is added, words with
>> accents get replaced - not always to the correct letter.
>>
>> For example, qualité is in the search index as "qualita".
>>
>> Is there a best practice or something that I am missing in terms of
>> getting this to work properly?
>>
>>
>> On Mon, Mar 21, 2011 at 13:58, Gabriel Petchesi wrote:
>>
>>> You should run a transliteration filter upon the query text before
>>> sending the search query to the database.
>>>
>>> gabriel
>>>
>>>  --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to symfony-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Alex Pilon
>> (613) 608-1480
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Searchable behavior and french characters

2011-03-21 Thread Alex Pilon
To further this, I traced the search code, and the keywords being entered
seem to preserve any french characters.

Why is the searchable behavior changing characters at all?

On Mon, Mar 21, 2011 at 14:12, Alex Pilon  wrote:

> I tried that, however I noticed that there is more to this problem.
>
> When a record gets inserted and the search index is added, words with
> accents get replaced - not always to the correct letter.
>
> For example, qualité is in the search index as "qualita".
>
> Is there a best practice or something that I am missing in terms of getting
> this to work properly?
>
>
> On Mon, Mar 21, 2011 at 13:58, Gabriel Petchesi wrote:
>
>> You should run a transliteration filter upon the query text before sending
>> the search query to the database.
>>
>> gabriel
>>
>>  --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Searchable behavior and french characters

2011-03-21 Thread Alex Pilon
I tried that, however I noticed that there is more to this problem.

When a record gets inserted and the search index is added, words with
accents get replaced - not always to the correct letter.

For example, qualité is in the search index as "qualita".

Is there a best practice or something that I am missing in terms of getting
this to work properly?

On Mon, Mar 21, 2011 at 13:58, Gabriel Petchesi  wrote:

> You should run a transliteration filter upon the query text before sending
> the search query to the database.
>
> gabriel
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] Searchable behavior and french characters

2011-03-21 Thread Alex Pilon
Hi,

I have a project that is running on MSSQL server. Everything works fine,
however I have a model that is Searchable. The model itself is language
neurtal (its either french or english, there is no notion of translations
for them). However when the index is built any words that have characters
with accents seem to be converted to the plain letter without the accent.
Then when I search for something with accents it doesn't find anything.

Any ideas how to go about resolving this?

Thanks

-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Symfony with datatables

2011-03-18 Thread Alex Pilon
http://www.google.ca/search?sourceid=chrome&ie=UTF-8&q=symfony+datatables

On Fri, Mar 18, 2011 at 14:29, Alex Pilon  wrote:

> whats a datatable?
>
>
> On Fri, Mar 18, 2011 at 13:56, Mariah  wrote:
>
>> hi everyone,
>>
>> does anyone of you have an example of how to make datatables work with
>> doctrine?
>> I'm using symfony 1.4.9
>> thank you.
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Symfony with datatables

2011-03-18 Thread Alex Pilon
whats a datatable?

On Fri, Mar 18, 2011 at 13:56, Mariah  wrote:

> hi everyone,
>
> does anyone of you have an example of how to make datatables work with
> doctrine?
> I'm using symfony 1.4.9
> thank you.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Fatal errors (new xsd and class not found)

2011-03-14 Thread Alex Pilon
Google translate the spanish?

On Mon, Mar 14, 2011 at 03:58, Lideln  wrote:

> Nobody ? The only other case I found on google was spanish and I
> didn't understand a word of it :)
>
> Don't tell me I'm the only one to have the PR7 not working once
> downloaded and extracted ? :-/
> Any help from one of the developers would be appreciated so I can
> continue my coding.
>
> Thanks in advance,
>
>
> On 11 mar, 05:30, Lideln  wrote:
> > Hi,
> >
> > I downloaded the PR7, and got a few fatal errors.
> >
> > On my project first, I updated the files from PR6 and I "think" I did
> > not forget anything, but I get that error :
> > Fatal error: Uncaught exception 'InvalidArgumentException' with
> > message '[ERROR 1845] Element '{http://symfony.com/schema/dic/services}
> > container': No matching global declaration available for the
> > validation root. (in
> >
> file:///C:/wamp/www/ratethestar/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/../Resources/config/web.xml
> > - line 5, column 0)' in C:\wamp\www\ratethestar\vendor\symfony\src
> > \Symfony\Component\DependencyInjection\Loader\XmlFileLoader.php on
> > line 396
> >
> > Then I tried to launch the AcmeDemo just to make sure I did not forget
> > anything, and I got that error :
> > Fatal error: Class 'Symfony\Component\DependencyInjection\Compiler
> > \ResolveDefinitionTemplatesPass' not found in C:\wamp\www
> > \symfony_PR7\vendor\symfony\src\Symfony\Component\DependencyInjection
> > \Compiler\PassConfig.php on line 48
> >
> > Any ideas ?
> >
> > Thank you all
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Setup Symfony in Windows

2011-03-13 Thread Alex Pilon
in lib/vendor/symfony/data/bin there is a file called symfony.bat, if you
copy that to the project directory then you can run symfony commands.

On Sun, Mar 13, 2011 at 12:58, ken  wrote:

> it's not a linux specific command. as long as php binary is in your PATH
> environment, you can execute it in command line aka dos. you just have to
> make sure that you cd to the project directory
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
I ended up figuring it out.. it was because I was sorting by date, on a
field that I set as only a date so the timestamp part wasnt included in the
sort. Developer error.. as usual :P

On Sat, Mar 12, 2011 at 18:12, Alex Pilon  wrote:

> Cool, I tried it out like so
>
> Note:
>   actAs:
> Timestampable:
>   updated:
> disabled: true
>   created:
> type: date
> format: Y-m-d
>   options:
> orderBy: created_at DESC
>
> Does the order by for a relation component have to specifically go on the
> relationship definition? The above did not seem to work.
>
> On Sat, Mar 12, 2011 at 13:17, Gábor Fási  wrote:
>
>> You can add orderBy to your relation definition like this:
>>
>> Gallery:
>>  columns:
>>title: string(255)
>>  relations:
>>Images:
>>  local: id
>>  foreign: gallery_id
>>  foreignAlias: Gallery
>>  type: many
>>  orderBy: position
>>
>> taken from
>> http://test.ical.ly/2010/09/30/did-you-know-that-you-can-sort-your-doctrine-relations-by-setting-an-orderby-option-in-your-schema/
>>
>> On Sat, Mar 12, 2011 at 19:10, Alex Pilon  wrote:
>> > Hello,
>> > I have a model which has a collection of notes attached to it.
>> > So for example I access $show->getNotes() and that gives me a
>> > Doctrine_Collection. However I want it to be sorted by the date it was
>> > created (ie orderBy('a.created_at').
>> > What is the best way to do that? Should I simply override the getNotes
>> and
>> > write a Doctrine query?
>> >
>> > --
>> > Alex Pilon
>> > <%28613%29%20608-1480>(613) 608-1480
>> >
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it
>> to
>> > security at symfony-project.com
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" group.
>> > To post to this group, send email to symfony-users@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/symfony-users?hl=en
>> >
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Alex Pilon
> (613) 608-1480
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
Cool, I tried it out like so

Note:
  actAs:
Timestampable:
  updated:
disabled: true
  created:
type: date
format: Y-m-d
  options:
orderBy: created_at DESC

Does the order by for a relation component have to specifically go on the
relationship definition? The above did not seem to work.

On Sat, Mar 12, 2011 at 13:17, Gábor Fási  wrote:

> You can add orderBy to your relation definition like this:
>
> Gallery:
>  columns:
>title: string(255)
>  relations:
>Images:
>  local: id
>  foreign: gallery_id
>  foreignAlias: Gallery
>  type: many
>  orderBy: position
>
> taken from
> http://test.ical.ly/2010/09/30/did-you-know-that-you-can-sort-your-doctrine-relations-by-setting-an-orderby-option-in-your-schema/
>
> On Sat, Mar 12, 2011 at 19:10, Alex Pilon  wrote:
> > Hello,
> > I have a model which has a collection of notes attached to it.
> > So for example I access $show->getNotes() and that gives me a
> > Doctrine_Collection. However I want it to be sorted by the date it was
> > created (ie orderBy('a.created_at').
> > What is the best way to do that? Should I simply override the getNotes
> and
> > write a Doctrine query?
> >
> > --
> > Alex Pilon
> > (613) 608-1480
> >
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
> >
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/symfony-users?hl=en
> >
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Alex Pilon
Hello,

I have a model which has a collection of notes attached to it.

So for example I access $show->getNotes() and that gives me a
Doctrine_Collection. However I want it to be sorted by the date it was
created (ie orderBy('a.created_at').

What is the best way to do that? Should I simply override the getNotes and
write a Doctrine query?

-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] mergeForm vs embedForm

2011-03-06 Thread Alex Pilon
Anyone know of a resource that outlines the difference between these two
functions?

-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: sfGuardPlugin Redirect Problem

2011-03-06 Thread Alex Pilon
I had a similar problem when the login success url was the homepage and the
login page was presented when viewing the homepage.

Any possibility that might be part of the issue?

On Mar 6, 2011 5:09 AM, "Drew Sire"  wrote:

Reproduce Problem
http://184.73.247.117/backend.php
username = d...@buzzybeemarketing.com
password = testing

File
/var/www/html/
palcheck-1.0.com/plugins/sfGuardPlugin/modules/sfGuardAuth/actions/

Here is the code causing the problem. When originally set to @homepage, it
creates an infinite redirect loop problem in the browser. so I hard coded a
redirect with php header function to one of the modules. When you reproduce
the error, you will see it's like the modules (ad) aren't recognizing the
cookie/session/login. Because it keeps presenting the login screen. I
noticed there are related bugs in the reports for sfGuardPlugin. For
example, problems with other redirects, to images. This looks like a
session/cookie problem though. And it just started all of the sudden.

elseif ($user->isAuthenticated())
{
 //die('redirect' . __LINE__);
//$this->redirect('http://184.73.247.117/backend.php/login');
//$this->redirect('@homepage');
header("Location: http://184.73.247.117/backend.php/ad";);


}




On Sat, Mar 5, 2011 at 4:30 AM, catchamonkey  wrote:
>
> Hi Drew,
>...

-- 
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: Integration of "external" PHP code in Symfony

2011-03-04 Thread Alex Pilon
That's the idea yes.. if you have myServiceObject.class.php

 wrote:

> Thanks Oscar,
>
> Meaning then that 3rd party call, as long as it's organized into
> classes, should be easy to integrate... right?
>
> Saludos!
>
> Pablo
>
>
> On Mar 3, 2:35 am, oscar balladares  wrote:
> > Symfony handle it very well.
> >
> > If you have third party code, you should put it in yourProjectName/lib
> > directory.
> > Thanks to the autoloader, Smyfony will scan for new classes inside that
> dir.
> >
> > You only have to simple reference a class on any controller.
> > for expamle a class named Math;
> >
> > in a controller:
> > $math=new Math();
> > if class Math has static methods:
> > $sum=Math::sum(2,4);
> >
> > 2011/3/2 pbertu 
> >
> > > Hi everybody, pleased to meet you!
> >
> > > I am currently evaluating Symfony as the platform for all my future
> > > development projects. I'm half way thru Jobeet's tutorial, and the
> > > framework is really powerful.
> >
> > > My concerns come when I think how to include or integrate
> > > "external" (to call it somehow) PHP code inside a Symfony generated
> > > system.
> >
> > > For instance, I've seen very interesting external classes for user
> > > licence generation, advanced graphics, geolocation, etc.. and I
> > > would't like my systems to be limited to the development of extensions
> > > by the Symfony community (even when it's impressive!). On the
> > > contrary, I'd like to have the chance to integrate extra functions
> > > without breaking Symfony's structure  -and that of course they resist
> > > the structure updates!
> >
> > > I'm not thinking about database; it's clear that DB should be
> > > generated and maintained 100% by Symfony; but I think of UI functions,
> > > or stored data access in or ordere to generate special reports or
> > > realtime connections with other systems.
> >
> > > I will much appreciate if you can tell me about your experiences, pros
> > > and cons, that you have seen with Symfony in this sense, so I can
> > > decide whether I keep moving forward or I have to look somewhere else
> > > (which I wouldn't like to!)
> >
> > > Many thanks in advance, and best regards to all the community
> >
> > > Pablo
> >
> > > --
> > > 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: How to get the realtionship column in sfDatagrid

2011-03-04 Thread Alex Pilon
Why don't you apply to be a developer of that plugin and contribute your
changes?

On Fri, Mar 4, 2011 at 00:30, Emerson Barrion
wrote:

> Thanks Leon!..
>
> But upon checking the sfGridPlugin, its in alpha state at the moment [?]
>
> My temporary solution to my problem is modifying the core of
> sfDatagridPlugin.
>
> I know its consequences, but if ever i find a better solution or even
> updates to this plugin that will i eventually apply.
>
> Thanks for the response.
>
> On Fri, Mar 4, 2011 at 6:46 AM, Leon van der Ree wrote:
>
>> I don't know how this works for the datagrid, but there is an
>> alternative plugin which can handle this without a problem:
>>
>> the sfGrid, together with the sfDataSourcePlugin:
>> http://www.symfony-project.org/plugins/sfGridPlugin
>> http://www.symfony-project.org/plugins/sfDataSourcePlugin
>>
>> It is all described in the readme' s
>>
>> On 2 mrt, 03:36, dartheroz  wrote:
>> > Hi...
>> > i have a problem in sfDatagrid plugin since i want to display the city
>> > of certain user but the city name is in another table.
>> >
>> > User
>> > 
>> > id
>> > city_id
>> > first_name
>> > last_name
>> >
>> > City
>> > --
>> > id
>> > name
>> >
>> > -> I want to get the name of the City but im using the class "User".
>> > $d = new sfDatagridDoctrine('UserGrid', 'AppUser')
>> >
>> > Please help me.
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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

Re: [symfony-users] mysql_real_escape_string

2011-03-03 Thread Alex Pilon
This sort of task should be done for you by Doctrine - assuming you are
using database models and such.

The question you are asking indicates that you have not done very much
reading into the specifics of the framework.

I would recommend you run through this tutorial
http://www.symfony-project.org/jobeet/1_4/ in order to gain a more thorough
understanding of what symfony and Doctrine/Propel are meant to do.

On Thu, Mar 3, 2011 at 19:17, Laxmi  wrote:

> Hello
>
> How can i implement mysql_real_escape_string  in symfony. I am
> submitting a form and by using mysql_real_escape_string  i want
> replace special characters in database by slash.
>
> Thanks
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-03 Thread Alex Pilon
The way you described is using the arrayaccess interface which I believe is
something that symfony takes great advantage of.

I would say that is a fine way to do it.

2011/3/3 Sebastian Göttschkes 

> Hi,
>
> I'm currently not using FormWidgets as I got some Javascript working and
> some special changes in the form. I now need to get the value of a
> FormField, which can be either the value stored in the database (when the
> edit-page is viewed without a POST) or the (wrong) data submitted by the
> user.
>
> I understand that I can use $form['fieldName']->getValue(), but as symfony
> is almost always avoiding arrays, I'm curious if this is the correct way. I
> was looking for something like $form->getField('fieldName')->getValue().
>
> Thanks for your help in clearing this issue.
>
> Regards,
> Sebastian
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] sfWidgetFormDateRange with a Propel Form

2011-03-03 Thread Alex Pilon
http://www.symfony-project.org/api/1_4/sfWidgetFormDateRange

* from_date: The from date widget (required)
* to_date: The to date widget (required)

These two options should be set to the widgets you'll be using for the from
and to date.

On Thu, Mar 3, 2011 at 06:22, Ben Bieker  wrote:

> Hi,
>
> I currently have the following problem: I got a form that has 2 Date
> fields in it. What I want to do is that the user has to specify a date
> range in the form. I now need a validation method that checks if the
> from field's date is < than the to field's date, so that the user cannot
> specify an invalid range.
>
> I looked through the api documentation and found the validator
> sfWidgetFormDateRange which does what I want. But how to use it with
> propel? I have to add the sfWidgetFormDateRange as a new widget in my
> form and therefore the widgetSchema['from'] and widgetSchema['to'] would
> be empty.
>
> Do I have to manually overwrite them later with he values from the
> dateRange widget? And if I have to do so: how to do it?
>
> Thanks in advance for your help!
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-02 Thread Alex Pilon
I do not know very much about symfony2 at the moment, however in symfony 1
if you load a directory of fixtures in a single command such as

symfony doctrine:data-load data/fixtures/pages.yml data/fixtures/layout.yml

it doesn't matter what order you load them, the relationships get create
regardless.

is there a particular problem you're having? or are you just asking a
general question?

On Wed, Mar 2, 2011 at 13:00, Gustavo Adrian wrote:

> Yes, but my problem is the order in which they're loaded. Suppose I have:
>
> . Layout
> . Page (Has an association ManyToOne with Layout)
>
> In this case, if the fixtures from Page are loaded before the Layout ones,
> it would throw a constraint exception, because each page has a Layout
> associated, which is not loaded yet in the DB.
>
> Is there a way to define an order for the bundles to load their fixtures?
> maybe using the order in which they're added in the array in
> "registerBundles"?
>
>
> Thanks!
>
> On Wed, Mar 2, 2011 at 2:50 PM, Christophe COEVOET  wrote:
>
>> Le 02/03/2011 18:47, Gustavo Adrian a écrit :
>>
>>  Hi everyone,
>>>
>>> I'd like to know if there's a way to load fixtures from different bundles
>>> in order (without calling explicitly doctrine:data:load for each bundle by
>>> hand). I create the bundle's instances (in the "registerBundles" method on
>>> my AppKernel) in the order it should be loaded. Is there a way to take this
>>> into account when I load the fixtures of my bundles? Or is anything I am
>>> missing?
>>>
>>>
>>> Thanks in advance!
>>>
>>>  Running doctrine:data:load without specifying the options will load the
>> fixtures from all bundles.
>>
>> Regards
>>
>> --
>> Christophe | Stof
>>
>> --
>> 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Alex Pilon
What do you mean there are none bundled with sf1.4?

I mean in databases.yml for example, when you have

dev:
  connection:
 # settings
prod:
  connection:
# settings

A common security problem is credentials getting in the hands of the wrong
person. So in effort to remove unneeded credentials when deploying an
application, you are saying that creating a task to remove any non prod
settings is the way to go?

What do you mean by dumping content in .yml.dist or .prod. ? Could you
elaborate on this?

Thanks

On Tue, Mar 1, 2011 at 15:57, Stéphane  wrote:

> There are none bundled with sf1.4.
>
> Anyway it's not that hard to code a task to remove every dev: in .yml files
> and dump content in .yml.dist or .prod.
> Needs to wrap this into a "release" process.
>
> Regards,
>
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> On Tue, Mar 1, 2011 at 9:28 PM, Alex Pilon  wrote:
>
>> Hello,
>>
>> Is there a way (sf1.4) to only publish production settings (e.g., in
>> databases.yml, app.yml, or settings.yml) when you deploy a symfony
>> application?
>>
>> Thanks
>>
>> --
>> Alex Pilon
>> (613) 608-1480
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] Protect development credentials when deploying application

2011-03-01 Thread Alex Pilon
Hello,

Is there a way (sf1.4) to only publish production settings (e.g., in
databases.yml, app.yml, or settings.yml) when you deploy a symfony
application?

Thanks

-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread Alex Pilon
All I can say in response to these types of questions is to look at the
symfony-reloaded site:

"Symfony2 is *not ready for production yet*. The final release is planned
for *March 2011* and will support *PHP 5.3.2* and up. Use symfony
1.4<http://www.symfony-project.org/> for
your projects."

You need to consider what you plan on targeting.

On Tue, Mar 1, 2011 at 14:46, oscar balladares  wrote:

> Also there is no Admin generator :(
> ( I didnt like it much anyway hoho)
>
> In previous message, I meant: There are NOT good Examples or HowTo for
> Plugins.
>
> 2011/3/1 oscar balladares 
>
> Time will decide.
>>
>> If you have a DeadLine, you should stay with 1.4
>> If not, (something like a year) you could go with 2.0
>>
>> I have little time (I mean days not hours) getting involved with 2.0
>> (about 4 or 5 hours a day) and at the end of this week
>> I feel very confortable with it.
>>
>> You should know that there is no that much documention. Not very clever
>> sometimes (you should check differences on
>> docs.symfony-reloaded.org/guides and docs.symfony-reloaded.org/master/
>> guides)
>>
>> There are some good plugins, but with some usefull howTo's examples.
>>
>> If the scheduled release date remains intact, there is going to be a lot
>> official documentation in March or April.
>>
>> 2011/3/1 Michał Piotrowski 
>>
>> 2011/3/1 Thor :
>>> > Are all sf 1.4 plugins already available in 2.0?
>>>
>>> Do you really need all sf 1.4 plugins? :)
>>>
>>> > if not, i'd think if i needed that
>>>
>>> For a large project you most likely want to write almost everything by
>>> yourself.
>>>
>>> Back to the topic. In December I started a large project and I decided
>>> that I will use symfony 1.4. I do not regret that decision. If I chose
>>> Symfony2 then, I wouldn't have so many working code now. What has
>>> changed over the past three months?
>>> - Symfony2 is now more polished
>>> - in a few days there will be a version with stable API
>>> - documentation increasingly growing
>>> - more and more Bundles, code snippets
>>>
>>> From my POV Symfony2 now is very worth considering if you don't have
>>> any "ASAP deadline" for project.
>>>
>>> --
>>> Best regards,
>>> Michal
>>>
>>> http://eventhorizon.pl/
>>>
>>> --
>>> 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: How to set up a situation where a comments table is used for multiple entities

2011-02-26 Thread Alex Pilon
Thanks for that plug in link and the ideas.

2011/2/26 Grzegorz Śliwiński 

> Michal's idea is one way, although personally wouldn't add that many
> fk's into Comment model. Each new model that will get commented, will
> result in modifying Comment table. If it'll grow up, ALTER TABLE might
> take long time.
> Second idea is to create association tables for each commented model
> (i'd prefer that), - Each new model will result ony in new association
> table, without the need to alter comment table
> Third idea is used in vjCommentPlugin:
> http://www.symfony-project.org/plugins/vjCommentPlugin
> There are no foreign keys, instead there is field which indicates
> commented object's model, and it's id.
>
> On 25 Lut, 16:51, Alex Pilon  wrote:
> > Hello Everyone,
> >
> > I have a schema in which I have several entities, lets call them Shows,
> > Broadcasters and Pitches.
> >
> > A Show is essentially pitched to a Broadcaster which creates the Pitch
> which
> > is an entity that sits between Show and Broadcaster and creates a many to
> > many relationship.
> >
> > This is all fine and good, however there is a Note model which is meant
> to
> > be attached to Show and Broadcaster (and potentially Pitch in the
> future).
> >
> > It seems to me that this sort of multi use comments table won't work
> quite
> > right unless Show and Broadcaster have a common primary key, as there
> > wouldn't be anyway to guarentee unique ids between the Show and
> Broadcaster
> > and therefore Note would have an invalid foreign key.
> >
> > The idea I had to solve this was to create an entity table in which the
> > other Models inherit from, but the types of inheritance don't seem to
> solve
> > this problem, as simple puts everything in one table, which is rather
> > undesirable, and concrete doesn't seem to allow shared ids with a base
> > table.
> >
> > Anyone ever have a similar set up?
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-26 Thread Alex Pilon
I don't think its a bug. It's maybe more along the lines of a feature that
would be nice to have.

Maybe try this
http://www.symfony-project.org/plugins/sfDoctrineFBAutocompletePlugin

On Sat, Feb 26, 2011 at 11:23, Javier Garcia  wrote:

> Ok, now I understand how this widget works..When you create this kind
> of widget, it actually creates two fields: autocomplete_my_field (the
> field that is showed and where you insert the data (values of the
> array elements) and my_field (a hidden field, where the keys are
> inserted).
>
> This widget works ok when you insert only an element but when you
> insert more than an element the key of the elements are overwritten
> (the id of the second element overwrites the id of the the first one,
> the id of the third element overwrites the id of the second
> one, ), so you can not retrieve all them. So it's a bug I think..
>
> Javier
>
> On Feb 24, 4:27 pm, Javier Garcia  wrote:
> > Hi,
> >
> > i have this widget :
> >
> > $this->widgetSchema['user']  = new sfWidgetFormChoice(array(
> >   'choices'  => array(),
> >   'renderer_class'   => 'sfWidgetFormJQueryAutocompleter',
> >   'renderer_options' => array('url' => 'autocomplete', 'config' =>
> > '{ multiple:true }'),
> > ));
> >
> > And this is the autocomplete function:
> >
> >   public function executeAutocomplete($request)
> >   {
> >
> > $this->getResponse()->setContentType('application/json');
> >
> > $q = "%" . $request->getParameter('q') . "%";
> >
> > $limit = $request->getParameter('limit');
> >
> > //Criteria code
> >
> > return $this->renderText(json_encode($cli));
> >
> >   }
> >
> > that returns this ("Response" tab in Firebug):
> >
> > {"17":"John","18":"Ann"}   //the numbers are the values in the id
> > field.
> >
> > Then i choose both names in the autocomplete input this way:
> >
> > [John, Peter]
> >
> > When i submit the form, the getPostParameters() method returns this:
> >
> > array
> >   'example' =>
> > array
> >   'id' => string '' (length=0)
> >   '_csrf_token' => string
> > '388774046d0f5c8b4a3f114ddb15af7b' (length=32)
> >   'user' => string '18' (length=2)
> >   'autocomplete_example' =>
> > array
> >   'user' => string 'John, Ann, '
> >
> > So what should i do to retrieve the id's of the users?
> >
> > sf 1.4.
> >
> > Javier
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] [Symfony2]

2011-02-25 Thread Alex Pilon
Hey,

I cloned symfony2 sandbox from git and set up a virtual host pointing to the
web directory. It pretty well worked out of the box except:

http://symfony2.local/app_dev.php

Gives me an error that says

URL "" is not valid (it does not start with a /).

However http://symfony2.local/app_dev.php*/* works fine.

Any reason for this?

-- 
Alex Pilon
(613) 608-1480

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

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


[symfony-users] How to set up a situation where a comments table is used for multiple entities

2011-02-25 Thread Alex Pilon
Hello Everyone,

I have a schema in which I have several entities, lets call them Shows,
Broadcasters and Pitches.

A Show is essentially pitched to a Broadcaster which creates the Pitch which
is an entity that sits between Show and Broadcaster and creates a many to
many relationship.

This is all fine and good, however there is a Note model which is meant to
be attached to Show and Broadcaster (and potentially Pitch in the future).

It seems to me that this sort of multi use comments table won't work quite
right unless Show and Broadcaster have a common primary key, as there
wouldn't be anyway to guarentee unique ids between the Show and Broadcaster
and therefore Note would have an invalid foreign key.

The idea I had to solve this was to create an entity table in which the
other Models inherit from, but the types of inheritance don't seem to solve
this problem, as simple puts everything in one table, which is rather
undesirable, and concrete doesn't seem to allow shared ids with a base
table.

Anyone ever have a similar set up?

-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Create dynamic folder and save files in it.

2011-02-25 Thread Alex Pilon
If you are using symfony's file upload form widgets and validators you might
want to checkout the generateXXXFilename method as well as look at creating
a subclass of sfValidatedFile to control where you save the file.

On Fri, Feb 25, 2011 at 09:34, Massimiliano Arione wrote:

> On Friday, February 25, 2011 9:41:40 AM UTC+1, GarethMc wrote:
>>
>> Create the directory in the uploads folder using the mkdir function
>> (http://php.net/manual/en/function.mkdir.php) and then store the
>> uploaded file in there.
>
>
> Be aware: you must validate the type of uploaded file.
> Otherwise, you risk security issues, e.g. if a malicious user uploads a php
> file.
>
> cheers
> Massimiliano
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Symfony with MS-SQL Server

2011-02-23 Thread Alex Pilon
Works great for me. My company built a job board using sf and mssql.

On Feb 23, 2011 6:05 AM, "axel at"  wrote:

Hello list,

are there any experiences running symfony 1.4 with Microsoft SQL
Server backends? is it stable, are there any known bugs or problems?

thx axel

--
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] Updating existing project (Newbie to symfony)

2011-02-11 Thread Alex Pilon
Do what you would do if this was a normal php app. Check the apache logs and
then return with a question about what is in there if that doesn't lead you
to the solution.

On Fri, Feb 11, 2011 at 10:45, stof  wrote:

> On Thu, 10 Feb 2011 15:27:53 -0430, Amador Antonio Cuenca
>  wrote:
> > Hi all, I'm a junior developer, with experience in C#, Java, Ruby and
> some
> > Scala and PHP, I've assigned to extend a existing symfony project (I've
> > never work with symfony). Well, Here my problem:
> >
> > I readed the quickstart and I copy the project from the server to my
> > personal computer. I've changed:
> > 1.- ProjectConfiguration.class.php => require_once
> > 'C://symfony//lib/autoload/sfCoreAutoload.class.php';
> > 2.- databases.yml => I changed the host, user and password
> > 3.- propel.ini => I changed the host, user and password
> > 4.- clear the cache...
> >
> > But I get this exception:
> >
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was
> unable
> > to complete your request.
> > Please contact the server administrator, ad...@example.com and inform
> them
> > of the time the error occurred, and anything you might have done that
> may
> > have caused the error.
> > More information about this error may be available in the server error
> log.
> >
> > The project run in the server but in my PC don't, I've tested the
> symfony
> > installation create another project(Jobeet) and it works,
> >
> > What do you think? Do I have to do something else? I'll really
> appreciate
> > your help guys.
> >
> > Regards,
> > --
> > TSU. Amador Cuenca
>
> You should access the front controller of the dev environment to have an
> exception message. The message provided by Apache when an error 500 occurs
> does not says what was wrong.
>
> --
> Christophe | Stof
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Alex Pilon
postive affirmation.

On Thu, Feb 10, 2011 at 12:34, Manu  wrote:

> what's the point of that message ?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Alex Pilon
 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Trying to send emails

2011-02-08 Thread Alex Pilon
Would the mail server discarding the message make the mail function on the
php side fail? I always thought that php mail code failed when it could not
contact the mail server for some reason.

On Tue, Feb 8, 2011 at 10:52, stof  wrote:

> On Tue, 8 Feb 2011 07:35:46 -0800 (PST), Javier Garcia
>  wrote:
> > Hi, my problem: no email is sent.
> >
>
> The only errors appearing in the logs are about headers already sent,
> which is certainly due to the fact you use var_dump() which prints 0 before
> the headers are chenged by Symfony. nothing appears about an error when
> sending the mail so it seems not to be in the Symfony code.
>
> Check your smtp parameters, and try using a real adress. Maybe the email
> sent from @example.com is just discarded as spam by the mail server.
>
> --
> Christophe | Stof
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Trying to send emails

2011-02-08 Thread Alex Pilon
Hi,

Can you please answer whether or not you can send email using the native php
mail function? It would seem to me that your configuration is wrong.

Try and sub out the credentials with Googles smtp and see if you can make it
work. Start from what you know works and work your way to the desired
configuration and you'll find the answer to your problem.

On Tue, Feb 8, 2011 at 10:35, Javier Garcia  wrote:

> Hi, my problem: no email is sent.
>
>
> On Feb 8, 5:01 pm, stof  wrote:
> > On Tue, 8 Feb 2011 06:21:36 -0800 (PST), Javier Garcia
> >
> >  wrote:
> > > No idea?
> >
> > Well, what is your problem exactly ? You don't ask any question in your
> > previous mail.
> >
> > Thus, the logs say the mail is sent.
> >
> > --
> > Christophe | Stof
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Trying to send emails

2011-02-08 Thread Alex Pilon
ions.class.php:28))
> > Feb 07 18:09:56 symfony [info] {sfWebResponse} Send status "HTTP/1.1
> > 200 OK"
> > Feb 07 18:09:56 symfony [warning] {sfWebDebugLogger}  Warning at /home/
> > javier/programazione/sv_ok/lib/vendor/symfony/lib/response/
> > sfWebResponse.class.php on line 357 (Cannot modify header information
> > - headers already sent by (output started at /home/javier/
> > programazione/sv_ok/apps/frontend/modules/sfGuardForgotPassword/
> > actions/actions.class.php:28))
> > Feb 07 18:09:56 symfony [info] {sfWebResponse} Send header "Content-
> > Type: text/html; charset=utf-8"
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Configuration 2.80
> > ms (13)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Factories 14.09 ms
> > (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Action
> > "sfGuardForgotPassword/password" 178.64 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} View "Success" for
> > "sfGuardForgotPassword/password" 22.97 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Component
> > "sfGuardAuth/signin" 1.70 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Partial "sfGuardAuth/
> > _signin" 3.80 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Component "default/
> > header" 0.02 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Partial "default/
> > _header" 0.68 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Component "default/
> > menuPrincipale" 0.02 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Partial "default/
> > _menuPrincipale" 3.68 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Component "default/
> > footer" 0.02 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebDebugLogger} Partial "default/
> > _footer" 0.69 ms (1)
> > Feb 07 18:09:56 symfony [info] {sfWebResponse} Send content (43186 o)
> >
> > sf 1.4/propel
> >
> > Any idea?
> >
> > Regards
> >
> > Javi
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-08 Thread Alex Pilon
Glad I could help. Remember to always survey what you have to work with when
coding. That and to read all documentation for something when you start
using it.

On Feb 8, 2011 8:12 AM, "Manu"  wrote:

!! I didn't know there was a registration form !!

You're right, extending *that* form works perfectly.

I love you. :)


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

-- 
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: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-08 Thread Alex Pilon
I made a form that inherited the included registration form. Look at its
source code and you' ll see why.

On Feb 8, 2011 3:29 AM, "Manu"  wrote:

Hum .. I can keep reading the source, sure.
Can't anyone explain to me how they did it on their projects ?

Did you start by a generate-admin sfguarduser call ?

Thank you for your patience.

--

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

-- 
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] Any way to rename actions.class.php

2011-02-07 Thread Alex Pilon
I think he means.. he has say 10 modules each with an actions.class.php.
When these are all open in an editor, the file name shows actions.class.php,
and so it becomes confusing what file you are editing and you have to click
like 5 tabs to find the actions file you are looking for. So applying some
sort of naming convention to them that indicates what file they come from
would be nice.. im sure there is a way to do it.

I'll look when I get home and see if i can find a way to do it.

On Mon, Feb 7, 2011 at 16:04, Stéphane  wrote:

> I don't get it.
> What is the problem ?
> Do you know you can break your actions methods into individual classes ? Is
> it this ?
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
>
> On Mon, Feb 7, 2011 at 5:53 PM, George M. Harkin  > wrote:
>
>> When editing our module's actions.php i run into the issue of a 20
>> actions.class.php files.
>>
>> Is it possible to rename it to module_name.actions.class.php or
>> something else?  This a feature request?
>>
>> Thanks!
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Alex Pilon
Read the source code, you basically need to make use a form that inherits
one of the sfGuardUser forms that includes the password field on it. The
source code is highly self documenting. Reading the source code is the best
way to figure out simple problems like this.

On Mon, Feb 7, 2011 at 11:23, Manu  wrote:

> My head hurts. Everyone seem to say that it's easy to do, but I can't
> find one tutorial on it, nor anyone to explain it to me. :(
>
> Please help, the profile-editing-thing is the last thing I'm missing
> on my blog.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] style tag (begin and end)

2011-02-04 Thread Alex Pilon
Research symfony slots.

On Thu, Feb 3, 2011 at 05:16, Igor Bobko  wrote:

> Hello guyz. Please tell me how i can insert style tag ( type='text/css'>...) in header from template.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: NEWBIE: echo out getUri() result in showSuccess. Jobeet tut ?

2011-02-03 Thread Alex Pilon
The methods in the table of which you speak are methods of the sfWebRequest
class, an instance of which is passed into each action.

I've highlighted the relevant bits in red below.

public function executeShow(sfWebRequest $request)
  {
$this->job = JobeetJobPeer::retrieveByPk($request->getParameter('id'));
$this->forward404Unless($this->job);

echo $request->getUri();
  }


On Thu, Feb 3, 2011 at 16:02, OldWest  wrote:

> Near the bottom of the page under heading "The Request":
> http://www.symfony-project.org/jobeet/1_2/Propel/en/04
>
> There are a list of wrappers that can be used to "gather" data. And I am
> just trying to understand how to implement them in the view from the
> controller. Like in normal php, I could do: echo $_SERVER['REQUEST_URI'];
> and get that data on the page.
>
> How do I do this 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 at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Plugin Install

2011-02-02 Thread Alex Pilon
http://www.symfony-project.org/plugins/sfCsvPlugin this?

Click read me...

On Wed, Feb 2, 2011 at 05:17, Ravi Kotwani  wrote:

> Hello All,
>
> As i am a beginer in symfony. Can any one tell me the steps to use the
> csv import export plugin.
>
> Thankx.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: old docs

2011-01-25 Thread Alex Pilon
Availability is important yes, however relevant search results are also
important. I experience the same issues when searching. Results are always
brought up that refer to documentation and writing that is several versions
old.

When working in Drupal, relevant and up to date search results always come
up. Is there a way to make the updated documentation have more weight in
search results?

On Tue, Jan 25, 2011 at 09:34, Gabriel Petchesi  wrote:

> I use google custom search for this purpose:
> http://www.google.com/cse/
> I've set up my own search engine with the Symfony documentation I'm
> interested in, works really nice.
>
> here are people still using the older versions so I think this
> documentation should be still available.
>
> gabriel
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Taxonomy / Content Categorization using Symfony

2011-01-12 Thread Alex Pilon
Check out the tagging plugin for doctrine..
http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin I
believe it is built by the punk'ave guys.

On Tue, Jan 11, 2011 at 23:24, info contact  wrote:

> Hi,
> I am building a content driven forum website, where I am interested in
> auto-categorizing content into a taxonomy based on the text of the
> data.
> Is there any plugin or any easy way to do with Symfony.
> I am looking to have my own taxonomy. eg: Books => Computers, Books =>
> Fiction etc.. based on certain keywords that i can define for each.
> I am also open to a standard taxo with keywords that I can tweak.
>
> I found drupal has something inbuilt
> http://drupal.org/node/774892
>
> Thanks,
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] pdo connection error

2011-01-05 Thread Alex Pilon
Post your database.yml.

On Wed, Jan 5, 2011 at 11:40, erman taylan  wrote:

> hi all,
>
> My project works fine on my local. When i put it on Debian, I am facing an
> error:
>
> PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL
> server at 'reading initial communication packet', system error: 110
>
> I searched it on the internet, everyone thinks its because of databases.yml
> file. I tried lots of one but could not fix the prob.
>
> Anyone help me, thanks,
> erman
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Alex Pilon
getActiveJobs() is on the JobeetJobTable class because in the context of
calling that method, those jobs aren't attached to any other entity. You
have no data currently loaded and you want to load only active ones.

The category getActiveJobs() is working off the basis of getting active jobs
*in that* category and so the method exists off that class. If it wasn't
then you would need to override getActiveJobs on the job table class to take
a category and filter, which you could totally do, and have the category one
call it with its category id.

I hope that makes some sense. It is really a question of design preference.
getActiveJobs on the category object allows you to have a method with no
arguments which reduces the margin for error because logic is encapsulated
from the caller.

On Tue, Dec 14, 2010 at 09:28, Andre Lopes  wrote:

> Hi,
>
> I have read the text, but I can't figure out the following:
>
> In the example with Jobeet website:
>
> I have the "public function getActiveJobs()" in the
> JobeetJobTable.class.php
> and then I have the "public function getActiveJobs()" in the
> JobeetCategory.class.php
>
> What is the reason for this?
>
> In the *Table.class.php I have only methods controlling the table and in
> the *class.php I have methods controlling the "Object actions"?
>
> I wait for reply.
>
> Best Regards,
>
>
> On Tue, Dec 14, 2010 at 12:16 PM, Stefan Paschke <
> symfony.pasc...@gmail.com> wrote:
>
>> yes you can:
>> http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine#chapter_08_sub_object_and_table_classes
>>
>> On Dec 14, 2010, at 1:02 PM, Andre Lopes wrote:
>>
>> > There are 2 classes for each Table, for example:
>> >
>> > JobeetJob.class.php and JobeetJobTable.class.php
>> >
>> > What is the difference between the two, what I must put in each one? Can
>> I find an answer for this online?
>> >
>> >
>> > Best Regards,
>>
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Reg: Pagination Plugin for symfony 1.2.9

2010-12-13 Thread Alex Pilon
What are you trying to do?

On Mon, Dec 13, 2010 at 08:46, Pradeep  wrote:

> Hello,
>
> Can someone help me how to do the pagination of results for symfony
> 1.2.9 version???
>
> On Nov 28, 10:03 pm, Pradeep  wrote:
> > Hello,
> >
> > I want to perform page navigation and noticed that sfPageNavigation
> > Plugin exists. But I am using symfony 1.2.9 version.
> >
> > I did not find  sf Page Navigation plugin suitable for this symfony
> > version. Does it exist one which suffices to this. Can you help me in
> > this scenario how to proceed in case it is is not supported for 1.2.9
> > symfony
> >
> > Thanks and Regards,
> > Pradeep
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: problem to use symfony

2010-12-13 Thread Alex Pilon
What do you mean it "didn't work"? Can you describe the problem you are
having?

On Sat, Dec 11, 2010 at 06:35, Justen Doherty  wrote:

> I use MAMP 1.8 with symfony 1.4 without any problems.. i tried to use the
> latest MAMP install which didnt work with symfony 1.4..
>
>
>
> On Fri, Dec 10, 2010 at 10:15 PM, Julian Reyes Escrigas <
> julian.reyes.escri...@gmail.com> wrote:
>
>>  Hi, i'm a new Mac User if you like install Apache2 + php5.3 + mysql 5.x
>> is easy with macports if you like in this post
>>
>> http://blog.ryanparman.com/2009/07/11/installing-php-5-3-with-mysqlnd-on-mac-os-x-with-macports/
>> you  can get the instructions for install a good enviroment for
>> development in MacOsX and try Porticus is a gui for macport
>>
>>
>>
>>
>> On viernes 10 de diciembre de 2010 at 15:34, dvi- wrote:
>>
>> on a mac os x with mamp
>>
>> i had troubles to conf my web server
>>
>>
>> i tested the code* (*http://www.symfony-project.org/getting-started/
>> 1_4/fr/05-Web-Server-Configuration) on a blank httpd.conf and
>> i tested to add the code on the original httpd.conf
>> and same results
>>
>> do you ear something about mac os x MAMP user ?
>>
>>
>> thanks
>>
>>
>> dvi-
>>
>> --
>> 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
>>
>
>
>
> --
> -
> http://www.linkedin.com/in/justendoherty - LinkedIn
> http://www.twitter.com/phpchap - Twitter
> http://www.anotherwebdeveloper.com - Portfolio
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Add to subscribe

2010-12-13 Thread Alex Pilon
A combination of user profile management, cron jobs, and setting up a
mailer.

You can get better answers by being more specific. Are you having a problem
with a particular aspect of that process? If you are at square zero and have
no idea how to implement that at all then you should do some reading about
various topics relating to that sort of thing.

On Sat, Dec 11, 2010 at 09:41, przemosk  wrote:

> Hi all,
>
> I have a question about add to subscribe. How i can make that, when
> user click checkbox and he have notification to his e-mail about new
> post on the blog.
>
>
> thanks,
> przemek
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-08 Thread Alex Pilon
You said it was a dumb question.

On Wed, Dec 8, 2010 at 16:56, deadwards  wrote:

> WOW! Thanks asshole!!
>
> On Dec 6, 1:54 pm, Alex Pilon  wrote:
> > Try this..http://tinyurl.com/2uhq73m
> >
> > Thanks!
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 6, 2010 at 14:49, deadwards 
> wrote:
> > > This may be a dumb question, but I can't figure out how to prompt for
> > > extended permissions (ex. publish_stream, email, etc.) when a user
> > > connects their Facebook account.
> >
> > > Can anyone point me in the right direction?
> >
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it
> to
> > > security at symfony-project.com
> >
> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> 
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: Re : [symfony-users] Where Modify action before saving

2010-12-08 Thread Alex Pilon
Can you post you schema.yml with respect to this model?


> *De :* Seifollh Ghaderi 
> *À :* symfony-users@googlegroups.com
> *Envoyé le :* Mer 8 décembre 2010, 19h 59min 17s
> *Objet :* [symfony-users] Where Modify action before saving
>
> Hi all.
> In my website I have Post module that each Post created by a user.
> I use SfDocringGuard plugin.
> I need to hidden used_id that displayed  via a combo box  in post/new page
> and  set it when user save the form.But I don't know where to do it?
> I modified Post.class.php as bellow
> /lib/model/Post.class.php
>  Code: public function save(Doctrine_Connection $conn=null)
> {
>$now=$this->getCreatedAt()?
> $this->getDateTimeObject('created_at')->format('U'):time();
>$this->setExpiresAt(date('y-m-d H:i:s'),time() + 84600 * 30);
>$this->setUserId($this->getUser()->getGuardUser()->getId());
>$this->setIsActivated(true);
> }
>
> It give this error:
> Unknown record property / related component "user" on "Post"
> My Post class has user attribute and relation between them is ok so whats
> the problem?
> Did I modify the right class?what's the sequence of function for saving a
> form?
>
> Thanks for any help.
>
> --
> Best Regards.
> Seifollah Ghaderi
>
>  --
> 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Exception occured exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are a

2010-12-07 Thread Alex Pilon
Hmm, well I do not know what might be causing this error as I have never
myself received an exception like this. Have you tried placing break points
through out the code to isolate where exactly the code is failing? Are you
able to run getEclassForStudent from a unit test and receive an expected
result?


On Tue, Dec 7, 2010 at 10:04, saichand  wrote:

> Hi Alex,
>
> here is the code :
>
>  public function getEclassForStudent($eclassId, $studentId)
>
>  {
>
>return $this->createQuery('e')
>
>  ->where('e.id = ?', $eclassId)
>
>  ->leftJoin('e.EclassStudent es WITH es.student_id = ? AND
> es.status = ? ', array($studentId,
> EclassStudentTable::STATUS_SUBSCRIBED))
>
>  ->innerJoin('e.Mentor')
>
>  ->fetchOne()
>
>;
>
>  }
>
> On Dec 7, 12:09 am, Alex Pilon  wrote:
> > Can you show us the code that is being called that is generating this
> > exception?
> >
> >
> >
> > On Mon, Dec 6, 2010 at 13:01, saichand  wrote:
> > > Hi ,
> >
> > > I am using Operating System :  centOs.
> >
> > > And using PHP Version -  5.2.9 ,  Mysql Version - 5.
> >
> > > Symfony Vertion - 1.4.1
> >
> > > Facing the following Exception in my project :
> >
> > > " 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
> >
> > > SQLSTATE[HY000]: General error: 2014 Cannot execute queries while
> > > other unbuffered queries are active. Consider using
> > > PDOStatement::fetchAll(). Alternatively, if your code is only ever
> > > going to run against mysql, you may enable query buffering by setting
> > > the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.  "
> >
> > > " Exception occured exception 'Doctrine_Connection_Mysql_Exception'
> > > with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute
> > > queries while other unbuffered queries are active. Consider using
> > > PDOStatement::fetchAll(). Alternatively, if your code is only ever
> > > going to run against mysql, you may enable query buffering by setting
> > > the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. Failing Query:
> > > "SELECT e.id AS e__id, e.start_date AS e__start_date, e.end_date AS
> > > e__end_date FROM eclass e WHERE (e.id = 1)"' in /home/wwwgoque/inet/
> > > lib/vendor/symfony/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
> > > Doctrine/Connection.php:1082 "
> >
> > > Is there any idea how to fix this.
> > > 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
> tosymfony-us...@googlegroups.com
> > > To unsubscribe from this group, send email to>
> symfony-users+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-06 Thread Alex Pilon
Try this.. http://tinyurl.com/2uhq73m

Thanks!

On Mon, Dec 6, 2010 at 14:49, deadwards  wrote:

> This may be a dumb question, but I can't figure out how to prompt for
> extended permissions (ex. publish_stream, email, etc.) when a user
> connects their Facebook account.
>
> Can anyone point me in the right direction?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Exception occured exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are activ

2010-12-06 Thread Alex Pilon
Can you show us the code that is being called that is generating this
exception?

On Mon, Dec 6, 2010 at 13:01, saichand  wrote:

> Hi ,
>
> I am using Operating System :  centOs.
>
> And using PHP Version -  5.2.9 ,  Mysql Version - 5.
>
> Symfony Vertion - 1.4.1
>
> Facing the following Exception in my project :
>
>
> " 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
>
> SQLSTATE[HY000]: General error: 2014 Cannot execute queries while
> other unbuffered queries are active. Consider using
> PDOStatement::fetchAll(). Alternatively, if your code is only ever
> going to run against mysql, you may enable query buffering by setting
> the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.  "
>
> " Exception occured exception 'Doctrine_Connection_Mysql_Exception'
> with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute
> queries while other unbuffered queries are active. Consider using
> PDOStatement::fetchAll(). Alternatively, if your code is only ever
> going to run against mysql, you may enable query buffering by setting
> the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. Failing Query:
> "SELECT e.id AS e__id, e.start_date AS e__start_date, e.end_date AS
> e__end_date FROM eclass e WHERE (e.id = 1)"' in /home/wwwgoque/inet/
> lib/vendor/symfony/plugins/sfDoctrinePlugin/lib/vendor/doctrine/
> Doctrine/Connection.php:1082 "
>
>
> Is there any idea how to fix this.
> 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Routing with sf_method question

2010-12-06 Thread Alex Pilon
http://redotheweb.com/2008/08/08/add-request-method-requirement-to-routing-in-symfony-11/

<http://redotheweb.com/2008/08/08/add-request-method-requirement-to-routing-in-symfony-11/>Does
that shed any light for you?

On Mon, Dec 6, 2010 at 11:52, Michael Smith  wrote:

> I have the following routing.yml:
> lead_import_upload:
>  url: /lead/import.:sf_format
>  param:   { module: lead, action: importUpload, sf_format: html }
>  requirements: { sf_method: get }
>
> lead_import_config:
>  url: /lead/import.:sf_format
>  param:   { module: lead, action: importConfig, sf_format: html }
>  requirements: { sf_method: post }
>
> and an importUploadSuccess.php:
> 
>  
>  
> 
>
> But when the form is submitted the importUpload action is called again
> instead of the importConfig action. The form's method is post am I
> missing something here?
>
> Thanks,
> Michael
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Alex Pilon
That should be working.. when you enable sfGuard you change the base class
of the myUser class to gain access to $this->getUser()->getGuardUser().

Can you check the class type of $this->getUser() ?  [
get_class($this->getUser()) ]

On Mon, Dec 6, 2010 at 11:56, Gareth McCumskey  wrote:

> As far as I am aware $this->getUser() does not access your own class that
> overrides sfBasicSecurityUser but is in fact an instance of
> sfBasicSecurityUser. I stand to be corrected however.
>
> On Mon, Dec 6, 2010 at 3:59 PM, Carlos  wrote:
>
>> Hi,
>>
>> I added some methods to myUser class, and suddenly I can't access to
>> them from the action.
>> $this->getUser()->method returns a "Call to undefined method" error
>> message. I really think it was working before... Maybe I modified any
>> yml file?
>>
>> My myUser class and one of this methods:
>>
>> class myUser extends sfBasicSecurityUser
>> {
>>  const INFO_MESSAGE= 'infoMessages';
>>  const WARNING_MESSAGE = 'warnMessages';
>>  const ERROR_MESSAGE   = 'errorMessages';
>>
>>  /**
>>  * Adds messages to user flash
>>  *
>>  * @param string $msg
>>  * @param string $level
>>  */
>>  public function addMessage($msg, $level = myUser::INFO_MESSAGE)
>>  {
>>// Gets the existing array, returns an empty array otherwise.
>>$flashContent = $this->getFlash($level, array());
>>
>>// If messages doesn't exists, it's loaded into flash.
>>if(!in_array($msg, $flashContent))
>>{
>>  $flashContent[] = $msg;
>>  $this->setFlash($level, $flashContent);
>>}
>>  }
>> ...
>> }
>>
>> Thanks,
>>
>> Carlos
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: image rendering problem-symfony 1.4

2010-12-03 Thread Alex Pilon
Take a closer look at the paths and folder structure you are using. That is
the issue.

On Fri, Dec 3, 2010 at 10:35, el-sid  wrote:

> Thanks for the reply,
>
> However, i had already tried that and it did not work. However,
> removing the quotes and adding two levels worked
>
> background:url(../../images/template/tray.gif)
>
> The thing is, it should have worked either way correct?
>
> This comes from a template i downloaded and it works right out of the
> box. However, trying to put it
> inside a symfony project caused me a lot of problems. Hence my reason
> for asking in this forum.
>
> I suspect that if i asked that in a html/css forum, they would be
> baffled as the syntax
> background:url("../../images/template/tray.gif")
> is correct but did not work.
>
> But thanks again for your reply
>
> On Dec 3, 6:19 pm, Christian Schaefer  wrote:
> > you're using a relative path but your missing one level.
> > according to your folder structure it would be
> >
> > #tray {padding:12px 15px; background:url("../images/template/
> > tray.gif") 0 0 repeat-x; font:85%/1.2 "tahoma",sans-serif;}
> >
> > however this is not an appropriate question for this mailing list as
> > it has nothing to do with symfony not even with php..
> >
> > On 3 Dez., 15:47, el-sid  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > hello all,
> >
> > > in my project, i have stored css files in web/css/template/ directory
> > > and images in web/images/template/ directory
> >
> > > However, images are not displaying in my project. Using the element
> > > inspector for chrome,
> > > i find this error
> >
> > > Failed to load resource: the server responded with a status of 404
> > > (Not Found)
> >
> > > and the resource path
> ishttp://eprocure:8080/css/images/template/tray.gif
> >
> > > its corresponding css style is
> >
> > > #tray {padding:12px 15px; background:url("../images/template/
> > > tray.gif") 0 0 repeat-x; font:85%/1.2 "tahoma",sans-serif;}
> >
> > > as i understand, for it to render correctly, it should have a path
> > > like without css in the path
> >
> > >  http://eprocure:8080/images/template/tray.gif
> >
> > > in my other projects, it renders correctly.
> >
> > > Does anyone understand what i am doing wrong?
> >
> > > Thanks
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] how custom error404

2010-11-29 Thread Alex Pilon
Did you clear your cache?

On Mon, Nov 29, 2010 at 22:19, Martin Ibarra Cervantes <
ibarra.cervan...@gmail.com> wrote:

> hi , i try change the error 404 bue i cant :-(
>
> in my settings i put
>
> all:
>   .settings:
> # Form security secret (CSRF protection)
> csrf_secret:c605b8fd5372fe7b296c9656301e11e69721f2cdd32248
>
> # Output escaping settings
> escaping_strategy:  true
> escaping_method:ESC_SPECIALCHARS
>
> # Enable the database manager
> use_database:   true
> enabled_modules:  [default]
>
>   .actions:
> *error_404_module: default
> error_404_action: error404*
>
> and i make a module on my public application, the name default and an
> action name error404
>
> but dont work
>
> you can help me.
>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Doctrine + Don't allow duplicate values

2010-11-18 Thread Alex Pilon
You can set an index on doctrine models and make the index unique..

http://www.doctrine-project.org/documentation/manual/1_0/en/defining-models:indexes:index-options

<http://www.doctrine-project.org/documentation/manual/1_0/en/defining-models:indexes:index-options>If
you want to make some sort of validator that checks to see if what you typed
already exists, there is some validator out there called
sfValidatorUsernameUnique or something which you can look at and probably
make it work for you. I think there is an email one too. Check the API.

Word

On Thu, Nov 18, 2010 at 12:43, Ardison Nicolas wrote:

> Hi folks,
> I have a table table with Doctrine where i have an numeric id as a key and
> an email, the email must be unique (as the key), i know that i can write the
> code to do it at the create method when i insert the data in the SQL. But i
> want to know if doctrine have something to do it editing the base of the
> model or of the form in the lib.
>
> Cheers!
>
> --
> Nicolas G. Ardison
> nicolas@gmail.com
>
> Antes de imprimir este mensaje, asegúrese de que es necesario. El medio
> ambiente está en nuestras manos.
> Before printing, think about the environment.
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Acces denied for user www-data

2010-11-18 Thread Alex Pilon
Did you clear the cache?

On Thu, Nov 18, 2010 at 08:44, Bor1s  wrote:

> Hello all, i am a beginner on symfony and i try to do the jobeet
> tutorial.
> All seem to be good as far as the final part of day 2 when i try to do
> a new module.
>
> When i try to access at my module's url (
> http://localhost/frontend_dev.php/myModule
> ) i have an connexion error :
> [code]PDO Connection Error: SQLSTATE[28000] [1045] Access denied for
> user 'www-data'@'localhost' (using password: YES)[/code]
>
> Even so all work fine; doctrine building all work fine, my database is
> created..
> Normally my user for mysql is "root" but in error message "www-data"
> is user..
>
> my database.yml :
> [code]all:
>  doctrine:
>class:sfDoctrineDatabase
>param:
>  dsn:mysql:dbname=mydbname;host=localhost
>  username:   root
>  password:   mypwd
> [/code]
>
> I don't understand ... can you help me ?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: symfony task into cron

2010-11-18 Thread Alex Pilon
Come on man, help yourself a little bit.
http://en.wikipedia.org/wiki//dev/null
<http://en.wikipedia.org/wiki//dev/null> > is a pipe character. It is
essentially forward output to a null stream effectively stifling any output
causes by the script.

On Thu, Nov 18, 2010 at 11:57, hribo  wrote:

> thanks, it works this way ;)
>
> do you also know what means an expression at the end: "> /dev/null " ?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] sfGuardUserProfile doesn't work? :-(

2010-11-16 Thread Alex Pilon
Can you post your schema?

On Nov 16, 2010 5:48 AM, "man mixi"  wrote:

Hi, experts.
I set up a simple relationship using sfGuardUserProfile.
But it does not work properly.

Remove 'p.name' from select method, In this case it works.
Why?
I do not understand the meaning of the error message.

Please help me.

---

ERROR MESSAGE
>500 | Internal Server Error | Doctrine_Query_Exception
>The root class of the query (alias s) must have at least one field
selected.


#action.php

   $this->saless = Doctrine_Query::create()
 ->select('s.user_id as userid,p.name, sum(s.amount) as amount')
 ->from('Sales s')
//  ->where('s.created_at between ? and ?',array($start,$end))
 ->leftJoin('s.Profile p')
 ->groupBy('userid')
 ->execute();

#schema.yml
Sales:
 tableName: sales
 actAs:{ Timestampable: ~ }
 columns:
   user_id:
 type: integer
   amount: integer
 relations:
User:
  class: sfGuardUser
  foreign: id
  local: use_id
  type: many
  onDelete: cascade
  foreignType: many
  foreignAlias: Sales
Profile:
  class: sfGuardUserProfile
  foreign: user_id
  local: user_id
  type: many
  onDelete: cascade
  foreignType: many
  foreignAlias: Sales

sfGuardUserProfile:
 tableName: sf_guard_user_profile
 actAs:{ Timestampable: ~ }
 columns:
   id: integer
   user_id:
 type: integer
 primary: true
   name: varchar(50)
 relations:
User:
  class: sfGuardUser
  foreign: id
  local: user_id
  type: one
  onDelete: cascade
  foreignType: one
  foreignAlias: Profile

--
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] Problems wiht: http://www.symfony-project.org/jobeet/1_4/Propel/en/03 Chapter

2010-11-11 Thread Alex Pilon
Do you have a database in your database server called myDatabase?

On Tue, Nov 9, 2010 at 09:42, PabloRS  wrote:

> Hello,
> Im trying to follow this excellent page to learn symfony but i have
> two problems in this chapter.
>
> 1.- When i run the command: symfony propel:insert-sql the console
> print the message:
>  Database "myDataBase" does not exist.
>
> My database exist. I can access it whit mysql
>
> 2.- I try to find a solution but i cant find it at the moment. For
> that i continue with the other steps but when i write: symfony
> propel:data-load the console print this message:
> SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown
> character set: 'utf-8'
>
> I dont understand where are my mistake. I deleted and created the
> project three times but always have the same mistakes.
>
> Please i need help. I like symfony. Its incredible but y need to
> understand what are happening
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] How to aasign external link in symfony

2010-11-11 Thread Alex Pilon
That is an html problem. You need to precede links that go outside your site
with http. Try puting a normal anchor with www.amazon.com in it. Amazon The link will be url will try to go to
http://yoursite.com/www.amazon.com.

In short, you need the http://.

On Thu, Nov 11, 2010 at 07:39, deepak  wrote:

> Hi
>
> There is a column in my table which stores external urls e.g.
> "www.amazon.com".
>
> Now when I try to use link_to('Product', $Obj->getUrl()). It outputs
> http://www.myappbaseurl.com/www.amazon.com";>Product
>
> Infact symfony takes all the url as internal uri.
>
> Is there a way in symfony thru which I can assign external url to
> links such as Product ?
>
> Now if there is a http:// added in the url it considers it as external
> url and redirects properly.
>
>
> Let me know if I make any sense here.
>
> Thanks
> Deepak
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Version control override/extend feature

2010-11-11 Thread Alex Pilon
Once you add or modify files you dont know  if youll be conflicting with
files from the other repo.  Check out svn:external that allows you to
reference other repos that you may or may not have read access to and save
custom  files to another repo. Im not experienced with git yet so their may
be unbeknownst to me an alternative their.?

On Nov 11, 2010 8:25 AM, "klemens_u"  wrote:

Thanks, but no - disconnecting is not an option because it's not
possible to get updates from the original repo.


On 11 Nov., 12:35, Gareth McCumskey  wrote:
> Why not just create a branch in...

> On Thu, Nov 11, 2010 at 12:25 PM, klemens_u  wrote:
> > Hi everyone,
>
> > I've go...
> > symfony-users+unsubscr...@googlegroups.com

>

> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> ...
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com

> twitter: @garethmcc

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

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

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


Re: [symfony-users] user-symfony

2010-11-10 Thread Alex Pilon
I do speak much more fluent english :)

On Wed, Nov 10, 2010 at 16:33, Alexandre Salomé
wrote:

> Puedes hablar inglés ?
>
> No hay component para ExtJS con symfony, pero puedes utilizar
> sfDynamicsPlugin para "combine and minify" javascript.
>
> Next messages will be in English, for the community ;)
>
> ---
> Alexandre Salomé - http://alexandre-salome.fr
>
> Le 10 nov. 2010 22:16, "Alex Pilon"  a écrit :
>
>
> ExtJs es un framework javascript que es comparable a Flash y Silverlight.He
> visto que normalmente utiliza para desarrollar RIA.
>
> 2010/11/10 Martin Ibarra Cervantes 
>
>
> >
> > ExtJs ? que es ExtJS ?
> >
> > 2010/11/10 Alex Pilon :
> > > Hola, mi español n...
>
>
>
>
> --
>
> Alex Pilon
> (613) 608-1480
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-p...
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] user-symfony

2010-11-10 Thread Alex Pilon
ExtJs es un framework javascript que es comparable a Flash y Silverlight.He
visto que normalmente utiliza para desarrollar RIA.

2010/11/10 Martin Ibarra Cervantes 

> ExtJs ? que es ExtJS ?
>
> 2010/11/10 Alex Pilon :
> > Hola, mi español no es bueno, sin embargo la integración de ExtJS es tan
> > simple como incluir las bibliotecas ExtJS en sus aplicaciones de archivo
> > view.yml. Más allá de eso creo que todo lo demás es una cuestión de usar
> > ExtJS con php como lo haría normalmente, y que tendría que algunas de las
> > preguntas más específicas con el fin de ayudarle aún más.
> > On Wed, Nov 10, 2010 at 09:23,  wrote:
> >>
> >> Si alguno de ustedes me puede dar los pasos para integrar symfony con
> >> extjs o enviarme alguna guia seria bueno...
> >>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it
> to
> >> security at symfony-project.com
> >>
> >> You received this message because you are subscribed to the Google
> >> Groups "symfony users" group.
> >> To post to this group, send email to symfony-users@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/symfony-users?hl=en
> >
> >
> >
> > --
> > Alex Pilon
> > (613) 608-1480
> >
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
> >
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/symfony-users?hl=en
> >
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] connect to mssql 2008

2010-11-10 Thread Alex Pilon
You can configure Doctrine to connect to a MSSQL database as follows:

all:
  sqlserver:
class: sfDoctrineDatabase
param:
  dsn: 'mssql:host=mssql.server.com;dbname=DBName;'
  username: user
  password: pass

Once you are connected, everything with doctrine will work pretty well as it
does with mysql.


On Wed, Nov 10, 2010 at 15:29, jimpass  wrote:

> Hi,
> I need to connect to mssql 2008, is it possible ? with doctrine ? and
> then is anybody know a good tutorial to do that ?
> Thanks.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Javascript onLoad event in a symfony context.

2010-11-10 Thread Alex Pilon
You could also have used a slot or something to give your template pages the
ability to add attributes to the body tag. However in this case I would as
Gareth suggested use jquery to register onload events.

On Tue, Nov 9, 2010 at 23:52, Gareth McCumskey  wrote:

> And to answer your question, if you look at the layout file it has a
> section labelled $sf_content. Everytiem you load a page, symfony runs your
> action, processes the view associated to that action and "catches" the HTML
> that view produces then takes your layout and inserts the generated HTML it
> caught, just like if you had done a normal include_once in a php file.
>
> On Wed, Nov 10, 2010 at 1:34 AM, Parijat Kalia wrote:
>
>> Hey people,
>>
>> I am trying to have an onLoad event in one of my webpages. But as we know,
>> the body tag appears in the layout and not the template pages. So I am
>> unable to understand how this can be done in symfony. If this is a little
>> out of context, I am sorry, but it's typically straight forward. Offcourse I
>> do not want that onload event on my body tag since it would load for all
>> pages, but I want the onLoad only for one specific page.
>>
>> Thanks and regards
>>
>> Parijat
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users]

2010-11-10 Thread Alex Pilon
Hola, ¿podría hacer una pregunta más específica? No podemos ayudar sin
obtener más información acerca de un problema específico que está teniendo.
Gracias.

On Wed, Nov 10, 2010 at 09:30,  wrote:

>
> como integro symfony con extjs le agradeceria si alguien me explicara como
> hacerlo
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] user-symfony

2010-11-10 Thread Alex Pilon
Hola, mi español no es bueno, sin embargo la integración de ExtJS es tan
simple como incluir las bibliotecas ExtJS en sus aplicaciones de archivo
view.yml. Más allá de eso creo que todo lo demás es una cuestión de usar
ExtJS con php como lo haría normalmente, y que tendría que algunas de las
preguntas más específicas con el fin de ayudarle aún más.

On Wed, Nov 10, 2010 at 09:23,  wrote:

>
> Si alguno de ustedes me puede dar los pasos para integrar symfony con extjs
> o enviarme alguna guia seria bueno...
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread Alex Pilon
Dude we arent upset about your presence and we don't wish you off this
board. The point is, that this is a symfony user group. In general if one is
using symfony, one already has a very good knowledge of php. When I say its
a professionals board I guess what I mean is be professional. If you need to
ask what a loop is, that means that you are missing some fundamental
computer programming knowledge and you should be asking that on a beginner
board or reading a tutorial. There is no way that you searched for hours and
couldn't find something that explained what a php foreach loop is.

So when posting here, be professional and figure out if your question has to
do with symfony or not. This user group needs to maintain a certain
reputation otherwise we might as well call it hte general question board.

On Tue, Nov 9, 2010 at 10:56, xpanshun  wrote:

> Thanks Alex. I was not aware this was a strictly professional board. I
> will definitely have to check out that site. Again, thanks for being
> understanding about it. I never meant to upset anyone with my
> presence.
>
> On Nov 9, 10:53 am, Alex Pilon  wrote:
> > Lol, dude, this is a group of symfony professionals. If you need to ask
> > basic php questions you should check out sitepoint.com. That entire
> board is
> > a more or less an entry level board that would be the appropriate place
> to
> > ask.
> >
> > Its great that you are trying to learn, but part of that is where and how
> to
> > find your own answers. Just keep in mind that there is a level of
> > appropriate places to find answers to these. Asking a symfony users group
> > how a foreach loop works is not really appropriate subject matter for
> this
> > users group.
> >
> > Anyways, keep learning, and really learn! If you just ask questions
> trying
> > to get something done by a deadline then maybe you need to take a step
> back
> > and learn to walk before running!
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Nov 9, 2010 at 10:42, xpanshun  wrote:
> > > I'm sorry if some of you feel I don't belong here because I ask for
> > > help on things that are basic to you. I am not a developer pro. I am
> > > doing a project for school that is due at the end of the month.
> >
> > > If I could find help elsewhere I would not be here. None of my
> > > teachers at school will help me and I have no friends that do this
> > > stuff. I am self teaching as much as I can, but I post here when I
> > > can't find answers on my own. Sometimes I will be looking for hours
> > > for the answer to a question that could be  answered for me here in a
> > > few minutes. This is the most responsive discussion board I have come
> > > across--that is why I use it. It has been a lifesaver to me because I
> > > would not be as far along in my project without it.
> >
> > > If you all feel like I am wasting your time with my questions, you do
> > > not have to answer them. Although, I VERY MUCH appreciate when people
> > > do take the time to help me with my novice inquiries.
> >
> > > I have never worked with a development framework before and I'm
> > > discovering how to incorporate different languages into how it works.
> > > Therefore, what may seem obvious to others is actually not so obvious
> > > to me.  I would also like to learn more of PHP, AJAX, and other
> > > languages when I have the time, but that time is not now--as I am
> > > skimming off the top to get my project presentable by the deadline.
> >
> > > This is why I ask questions. I just want you all to know that the
> > > answers you all give me DO help me to learn. Maybe not as intensively
> > > as reading a book, but I definitely have learned a lot from posting
> > > here.
> >
> > > Thank you for all of your patience and understanding.
> >
> > > On Nov 8, 12:25 am, Gareth McCumskey  wrote:
> > > > This is not symfony. This is basic PHP you should know before even
> > > > considering using symfony. Seriously, go study some PHP mate. a
> foreach
> > > loop
> > > > is autoamtically loops through an array. If you have the following
> code:
> >
> > > > $array_var = array (1,2,3);
> > > > foreach ($array_var as $var)
> > > > {
> > > >   echo $var;
> >
> > > > }
> >
> > > > you will get "123" printed out.
> >
> > > > On Sat, Nov 6, 2010 at 1:53 AM, xpanshun  wrote:
> > > > > Okay this may be the dumbest inquiry e

Re: [symfony-users] Re: Defining an object [alias]?

2010-11-09 Thread Alex Pilon
Lol, dude, this is a group of symfony professionals. If you need to ask
basic php questions you should check out sitepoint.com. That entire board is
a more or less an entry level board that would be the appropriate place to
ask.

Its great that you are trying to learn, but part of that is where and how to
find your own answers. Just keep in mind that there is a level of
appropriate places to find answers to these. Asking a symfony users group
how a foreach loop works is not really appropriate subject matter for this
users group.

Anyways, keep learning, and really learn! If you just ask questions trying
to get something done by a deadline then maybe you need to take a step back
and learn to walk before running!

On Tue, Nov 9, 2010 at 10:42, xpanshun  wrote:

> I'm sorry if some of you feel I don't belong here because I ask for
> help on things that are basic to you. I am not a developer pro. I am
> doing a project for school that is due at the end of the month.
>
> If I could find help elsewhere I would not be here. None of my
> teachers at school will help me and I have no friends that do this
> stuff. I am self teaching as much as I can, but I post here when I
> can't find answers on my own. Sometimes I will be looking for hours
> for the answer to a question that could be  answered for me here in a
> few minutes. This is the most responsive discussion board I have come
> across--that is why I use it. It has been a lifesaver to me because I
> would not be as far along in my project without it.
>
> If you all feel like I am wasting your time with my questions, you do
> not have to answer them. Although, I VERY MUCH appreciate when people
> do take the time to help me with my novice inquiries.
>
> I have never worked with a development framework before and I'm
> discovering how to incorporate different languages into how it works.
> Therefore, what may seem obvious to others is actually not so obvious
> to me.  I would also like to learn more of PHP, AJAX, and other
> languages when I have the time, but that time is not now--as I am
> skimming off the top to get my project presentable by the deadline.
>
> This is why I ask questions. I just want you all to know that the
> answers you all give me DO help me to learn. Maybe not as intensively
> as reading a book, but I definitely have learned a lot from posting
> here.
>
> Thank you for all of your patience and understanding.
>
>
> On Nov 8, 12:25 am, Gareth McCumskey  wrote:
> > This is not symfony. This is basic PHP you should know before even
> > considering using symfony. Seriously, go study some PHP mate. a foreach
> loop
> > is autoamtically loops through an array. If you have the following code:
> >
> > $array_var = array (1,2,3);
> > foreach ($array_var as $var)
> > {
> >   echo $var;
> >
> > }
> >
> > you will get "123" printed out.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Nov 6, 2010 at 1:53 AM, xpanshun  wrote:
> > > Okay this may be the dumbest inquiry ever but I can't find any
> > > references to help me.
> >
> > > In regards to the foreach statement ( > > $product): ?>) used in some of the default templates...
> >
> > > Clearly this is a loop, but the part reading $products as $product,
> > > what does that exactly mean? I am assuming that $product is an alias
> > > for $products, but where is $products defined in the first place?
> >
> > > Also, my most important question...
> >
> > > What is another way to define $products as $product without using a
> > > loop?
> >
> > > 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
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@g

Re: [symfony-users] Re: introspect a functional test uncaught exception

2010-11-07 Thread Alex Pilon
You said when manually entering a job it works.. does this mean when you
create a job through the website on a web server it works? Could it be you
are running the unit test as a different user? It seems like the problem you
are having is related to directory permissions. Check the permissions of the
directory in which the 'jobs' directory is attempted to be created in.

On Sun, Nov 7, 2010 at 05:56, Luis Cordova  wrote:

> with:
>
> with('response')->debug()->
>
> I am getting this:
>
>   Response debug
>
>
> # WARNING
> # An error occurred when processing this request.
> # The real response content has been replaced with the exception message to
> ease debugging.
> HTTP/1.X 500
> Content-Type: text/html; charset=utf-8
>
> exception 'Exception' with message 'Failed to create file upload directory
> "/jobs".' in
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/validator/sfValidatedFile.class.php:97
> Stack trace:
> #0
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(392):
> sfValidatedFile->save()
> #1
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(328):
> sfFormDoctrine->saveFile('logo', NULL, Object(sfValidatedFile))
> #2
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(189):
> sfFormDoctrine->processUploadedFile('logo', NULL, Array)
> #3
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(181):
> sfFormDoctrine->processValues(Array)
> #4
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(159):
> sfFormObject->updateObject()
> #5
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(130):
> sfFormObject->doSave(Object(Doctrine_Connection_Mysql))
> #6
> /home/cordoval/symfony-projects/jobeet/apps/frontend/modules/job/actions/actions.class.php(96):
> sfFormObject->save()
> #7
> /home/cordoval/symfony-projects/jobeet/apps/frontend/modules/job/actions/actions.class.php(41):
> jobActions->processForm(Object(sfWebRequest), Object(JobeetJobForm))
>
> and with
>
> with('form')->debug()->
>
> I get:
>
>
>   Form debug
>
>
> Submitted values: array (  'category_id' => '289',  'type' => 'full-time',
>  'company' => 'Sensio Labs',  'url' => 'http://www.sensio.com/',
>  'position' => 'Developer',  'location' => 'Atlanta, USA',  'description' =>
> 'You will work with symfony to develop websites for our customers.',
>  'how_to_apply' => 'Send me an email',  'is_public' => false,  'email' => '
> for.a@example.com',  'id' => '',  '_csrf_token' =>
> '6d5dfd7e1e52d6e8e320ba72eaab5721',  'logo' =>
> '/home/cordoval/symfony-projects/jobeet/web/uploads/jobs/sensio-labs.gif',)
> Errors:
> not ok 19 - last request threw an uncaught exception Exception: Failed to
> create file upload directory /jobs.
>
> But then it does not help too much
>
> what could be wrong?
>
> On Sun, Nov 7, 2010 at 5:39 AM, Luis Cordova  wrote:
>
>> On jobeet day 11 it says symfony simulates uploading a file on a form:
>>
>> after issuing:
>>
>> ./symfony test:functional frontend jobActions
>>
>> I get:
>>
>> >   3.1 - Submit a Job
>> # get /job/new
>> ok 16 - request parameter module is job
>> ok 17 - request parameter action is new
>> # post /job
>> ok 18 - request parameter module is job
>> ok 19 - request parameter action is create
>> not ok 20 - last request threw an uncaught exception Exception: Failed to
>> create file upload directory /jobs.
>> # Failed test
>> (/home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php
>> at line 425)
>>
>> Manually it works for entering a job.
>>
>> How can I introspect where the problem is?
>>
>> Thanks,
>>
>> Luis
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Password fields

2010-11-07 Thread Alex Pilon
Make sure to read documentation before posting here. This kind of
information you should be able to find on your own.

On Nov 7, 2010 5:47 PM, "xpanshun"  wrote:

I found the answer here:
http://oldforum.symfony-project.org/index.php/m/74135/
as well

Thanks for directing me to the API Michal, there is a lot of helpful
stuff there sometimes I forget it exists lol ;p

On Nov 7, 5:15 pm, Michał Piotrowski  wrote:
> 2010/11/7 xpanshun :

>
> > How can I make the input of a certain field in a generated form (on
> > the frontend) displaye...
> Third hint - you can find answer herehttp://
www.symfony-project.org/api/1_4/

>
>
>
>
>
>
>
>
>
> > Thanks.
>
> > --
> > If you want to report a vulnerability issue on symfony, p...

-- 
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: More DQL query help

2010-11-05 Thread Alex Pilon
Word, glad I could help.

On Nov 5, 2010 7:18 PM, "xpanshun"  wrote:

IT WORKED!!! You are so awesome! :) I was putting single quotes around
the searchterm part instead of double quotes...Thank you!! :D


On Nov 5, 7:00 pm, Alex Pilon  wrote:
> You still need the like..
> $q->andWh...

> On Nov 5, 2010 6:50 PM, "xpanshun"  wrote:
>
> I tried it like this,
>
> $q = ...

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

-- 
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: More DQL query help

2010-11-05 Thread Alex Pilon
You still need the like..
$q->andWhere("c.col like ?", "%$search%");

The percents are wildcards and will match other characters on either side of
the search term.

On Nov 5, 2010 6:50 PM, "xpanshun"  wrote:

I tried it like this,


$q = Doctrine_Query::create()
->from('Product p')
->where('p.product_id = ?', $search_term)
->orWhe...
But it still didn't work...is my syntax incorrect?



On Nov 5, 6:33 pm, Alex Pilon  wrote:
> I mean for the LIKE clause.. so what...

> On Fri, Nov 5, 2010 at 18:31, xpanshun  wrote:
> > Isn't that for when you wan...
--

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

-- 
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: More DQL query help

2010-11-05 Thread Alex Pilon
I mean for the LIKE clause.. so what happens is if you do t.column LIKE
'%$searchTerm%'; this will check for the search term within the content of
the column.

The dql rules are the same as the sql rules if you want to check that out on
mysql.com

On Fri, Nov 5, 2010 at 18:31, xpanshun  wrote:

> Isn't that for when you want to go through all of the columns in the
> database? I only wanted to look through the particular ones above...
>
> On Nov 5, 6:01 pm, Alex Pilon  wrote:
> > You need to use wildcards
> >
> > On Nov 5, 2010 5:55 PM, "xpanshun"  wrote:
> >
> > Hi everyone,
> >
> > I am trying to return any record from the database where a certain
> > word (stored in variable $searchterm) is used (within a few different
> > fields)...
> >
> > Here is what I have:
> >
> > $q = Doctrine_Query::create()
> > ->from('Product p')
> > ->where('p.product_id = ?', $search_term)
> > ->orWhere('p.product_full_desc LIKE ?', $search_term)
> > ->orWhere('p.product_partial_desc LIKE ?', $search_term)
> > ->orWhere('p.product_type = ?', $search_term);
> >
> > $result_array_searchresults = $q->fetchArray();
> >
> > However the only field that I can get a return from is a one-word
> > field like 'bracelet'. Fields like 'product_full_desc' or
> > 'product_partial_desc' that contain strings/sentences won't return
> > anything. I want the query to be able to read through these strings
> > and pick out the search term.
> >
> > What is wrong with my query? How can I achieve the result I want?
> >
> > Thanks!
> >
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
> >
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> 
> > For more options, visit this group 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] More DQL query help

2010-11-05 Thread Alex Pilon
You need to use wildcards

On Nov 5, 2010 5:55 PM, "xpanshun"  wrote:

Hi everyone,


I am trying to return any record from the database where a certain
word (stored in variable $searchterm) is used (within a few different
fields)...

Here is what I have:

$q = Doctrine_Query::create()
->from('Product p')
->where('p.product_id = ?', $search_term)
->orWhere('p.product_full_desc LIKE ?', $search_term)
->orWhere('p.product_partial_desc LIKE ?', $search_term)
->orWhere('p.product_type = ?', $search_term);

$result_array_searchresults = $q->fetchArray();


However the only field that I can get a return from is a one-word
field like 'bracelet'. Fields like 'product_full_desc' or
'product_partial_desc' that contain strings/sentences won't return
anything. I want the query to be able to read through these strings
and pick out the search term.

What is wrong with my query? How can I achieve the result I want?


Thanks!

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

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

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

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


Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Alex Pilon
Any particular reason you need to use Symfony2? Its still in beta and isnt
planned to be fully released until March...

On Fri, Nov 5, 2010 at 10:46, Gustavo Adrian wrote:

> Hi,
>
> I'll use Symfony 2 for my next project in my job. I was testing the sandbox
> at home and the latest version at git too. What I would like is, obviusly,
> use the latest version because it has a lot of changes, in comparison with
> PR3, in terms of syntax, etc. This is a project that will be product, not a
> project of one month only. So I think it's better to use the latest version
> of Symfony. I don't mind to keep updating my code with the latest changes.
> But I would like to know how much out dated are the docs in comparison with
> the latest version of Symfony at git
>
> Also, is there a plan to release a new sandbox updated soon? If that's the
> case maybe I can wait a little longer and use that version instead.
>
>
> In any case, thanks in advance for reading 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] sending email from task through CLI

2010-11-05 Thread Alex Pilon
What's your task code look like?

On Nov 5, 2010 8:24 AM, "hribo"  wrote:

i would like to ask you for the way to send email from the task. i
know there are plenty of discussions showing how to do it.
but i have actually problem when i am sending my emails, and this
error shows up:

Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465
(Unable to find the socket transport "ssl" - did you forget to enable
it when you configured PHP?) in C:\wamp\www\my_sites\_SYMFONY
\symfony-1.4.3\lib\vendor\swiftmailer\classes\Swift\Transport
\StreamBuffer.php on line 233


 Connection could not be established with host smtp.gmail.com [Unable
to find the socket transport "ssl" - did you forget to enable it when
you configured PHP? #274232]


my factories.yml is set correctly for sure, because when i am sending
emails not from tasks, IT WORKS. just not through task.
 transport:
   class: Swift_SmtpTransport
   param:
 host: smtp.gmail.com
 port: 465
 encryption: ssl
 username: x...@gmail.com
 password: 

i have also looked on my phpinfo() function and there i have already
allowed SSL:
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls

do you know where is the problem?
thank you

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

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

-- 
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] Admin Generator / Error

2010-11-03 Thread Alex Pilon
Check onDelete: cascade on your relations.

On Nov 3, 2010 6:03 PM, "xpanshun"  wrote:

Hi all,

I have my backend set up and was testing out the functions (i.e. edit,
delete, new, etc.). All was well until I tried to modify a table that
is connected to a couple other tables. I was not even attempting to
change the value of a fk field--I was editing a different field that
was rather frivolous. Nonetheless, I got this error:

   SQLSTATE[HY000]: General error: 1452 Cannot add or update a
child row: a foreign key constraint fails

So why won't the update go through, even though I am not changing any
fk field?

Would appreciate any guidance. Thanks a bunch...

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

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

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

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


Re: [symfony-users] 1 action , 2 templates

2010-11-03 Thread Alex Pilon
I think both ways are fine..

On Wed, Nov 3, 2010 at 16:33, Martin Ibarra Cervantes <
ibarra.cervan...@gmail.com> wrote:

> you can use partitials for the view
>
> and in the acction pass the myvar
>
>
> include_partitial('name', array('myvar'=>$myvar));
>
>
> On Wed, Nov 3, 2010 at 1:29 PM, Parijat Kalia 
> wrote:
> > Hey guys,
> > I have 2 very identical templates which have only a minor difference to
> > them. Their action is exactly the same. So instead of retyping code or
> > wasting precious space (LOL), here is what my genius conjours:
> > private function privateAction()
> > {
> >  // do some amazing coding
> > }
> > public function executeMyAction1()
> > {
> >$this->privateAction();
> > }
> >
> > public function executeMyAction2()
> > {
> >$this->privateAction();
> > }
> > So basically, I redefined the common action as a private action. Is this
> a
> > fine strategy? Or do we have a better recommended strategy!
> >
> >
> >
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
> >
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/symfony-users?hl=en
> >
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Alex Pilon
Well Gareth is right though, you can use symfony to generate your schema
based on the data model you have, and then configure the doctrine mapping
stuff to conform the schema to whatever standard or new schema you want.

I looked at cakePHP a while ago as well. Its lack of command line tools and
support for php 4 gave symfony the win. After getting into symfony and
finding things like Diem, Doctrine, Swift_Mailer, and such I had a feeling
of wow am I ever glad I chose to get into this!

On Wed, Nov 3, 2010 at 14:35, Enno Weichert wrote:

> Thanks guys,
>
> I certainly wasn't asking you to create my data model ;) my question
> was really a conceptual/strategical one.
>
> ATM I ran into pretty fundamental issues with CakePHP because it's a
> lot more strict/limited about field names (I mean you can use whatever
> names you want but you cannot easily configure them) and I can foresee
> these kinds of projects in the future. So I wanted to know if
> switching to Symfony would be for the better or not.
> I've read about Doctrine and some more about Symfony and am now more
> confident that I could make this choice.
>
> Thanks again,
> Enno
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
Good point regarding associations.

On Wed, Nov 3, 2010 at 13:37, Gareth McCumskey  wrote:

> From my experience it is always best to have the Primary Key field be an
> auto-incrementing field. If you have additional fiekds wich might be some
> kind of serial number or something thats fine, that can be a column with a
> unique index, but a lot of searches tend to happen on Primary Key's and
> integer searches on a sorted field tend to be far more efficient than a text
> search on an unsorted column.
>
> In addition, seperating into a auto-incrementing PK column means that you
> can alter the other columns ar a whim without worrying about breaking ID
> associations with other tables etc.
>
> On Wed, Nov 3, 2010 at 6:56 PM, xpanshun  wrote:
>
>> Also, is there a way to make it so that primary key fields are even
>> viewable? It seems they are hidden by default...
>>
>> On Nov 3, 12:31 pm, xpanshun  wrote:
>> > Hi all,
>> >
>> > I've seen this question asked before a lot but from years ago--so
>> > there wasn't any working response. I am hoping now that its 2010, that
>> > there is a solution...
>> >
>> > I am using Symfony 1.4. I am currently working with the admin
>> > generator and I have some primary key fields that are NOT numeric auto-
>> > increment. These fields are varchar that I need the admin to input
>> > manually.
>> >
>> > Is there a way to get such a primary key--or any primary key field to
>> > be editable or created new on the backend?
>> >
>> > 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
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
No problem.

On Wed, Nov 3, 2010 at 13:28, xpanshun  wrote:

> I'll probably go ahead and do that Alex, thanks for the response :)
>
> On Nov 3, 1:20 pm, Alex Pilon  wrote:
> > I'm not sure.. I don't have a lot of experience customizing generators..
> > however I would suggest that simply adding a column to hold the user
> entered
> > value would be easier than trying to manipulate symfony to use a
> different
> > kind of primary key. Primary keys are database constructs meant to
> uniquely
> > identify records. If the user is entering these they may not always be
> > unique, and I'm sure that the value you are entering is for another
> purpose
> > other than database integrity. I'm guessing adding a new field will work
> > seemlessly with the generators and not require you to change the default
> > behavior of things. Again however I don't work with generators much at
> this
> > point and I don't know if there is an easy way to do what you want to do
> > there. My perspective simply is that you would be misusing the primary
> key
> > by trying to make it a user entered value.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Nov 3, 2010 at 13:15, xpanshun  wrote:
> > > @ Alex,
> >
> > > I guess that is possible, but I was hoping for an easier way like
> > > making some type of change in the generator.yml or something of that
> > > nature...
> >
> > > On Nov 3, 1:04 pm, Alex Pilon  wrote:
> > > > I've only ever used the default.. but would it be a sufficient
> solution
> > > to
> > > > add an extra column to your model that holds this admin typed in key?
> You
> > > > can use indices to mark them as unique..
> >
> > > > On Wed, Nov 3, 2010 at 12:56, xpanshun  wrote:
> > > > > Also, is there a way to make it so that primary key fields are even
> > > > > viewable? It seems they are hidden by default...
> >
> > > > > On Nov 3, 12:31 pm, xpanshun  wrote:
> > > > > > Hi all,
> >
> > > > > > I've seen this question asked before a lot but from years ago--so
> > > > > > there wasn't any working response. I am hoping now that its 2010,
> > > that
> > > > > > there is a solution...
> >
> > > > > > I am using Symfony 1.4. I am currently working with the admin
> > > > > > generator and I have some primary key fields that are NOT numeric
> > > auto-
> > > > > > increment. These fields are varchar that I need the admin to
> input
> > > > > > manually.
> >
> > > > > > Is there a way to get such a primary key--or any primary key
> field to
> > > > > > be editable or created new on the backend?
> >
> > > > > > 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
> >
> > > > --
> > > > Alex Pilon
> > > > (613) 608-1480
> >
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it
> to
> > > security at symfony-project.com
> >
> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> 
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] How strict is your approach towards convention over configuration?

2010-11-03 Thread Alex Pilon
You can configure Doctrine models with a high degree of flexibility.. if you
check out the documentation for Doctrine (specifically
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#columns:column-aliases)
you can see that you can pretty well map columns to field names in whatever
way you want.

As for obstables, you are obviously going to run into mis matched column
names and trying to make sense of a confusing data model.. it's a bit
difficult to forecast everything (particularly because I haven't really run
into anything like this before).

I'm sure someone else will have more information.. if you have any other
more specific questions that would be nice.. the question you asked is a bit
hard to answer imo, but in general I would suggest coming up with a scheme
that reflects the intended relationships of the database schema you are
working with and use the doctrine aliasing and mapping to hide the obscure
database column names from the rest of the application by mapping them into
your model scheme. Abstraction will be a key part of how you get this to
integrate into symfony.

On Wed, Nov 3, 2010 at 04:24, brillenfux wrote:

> Hi,
>
> I have to integrate a very bad legacy database and I'd have to specify
> things in the model extensively. There are fields (like contact_id)
> that are named inconsistently all through the database for example
> (like contact, contactid, Contact, Kontakt, KontaktID etc.) also there
> are fields with random names (like "ext" which is in fact a group_id
> field).
> How many of the field references in the code etc are hard-coded? How
> extensively can I design the model. What obstacles will I see?
> Is there a something comprehensive to read about that topic?
>
> Thanks,
> Enno
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
I'm not sure.. I don't have a lot of experience customizing generators..
however I would suggest that simply adding a column to hold the user entered
value would be easier than trying to manipulate symfony to use a different
kind of primary key. Primary keys are database constructs meant to uniquely
identify records. If the user is entering these they may not always be
unique, and I'm sure that the value you are entering is for another purpose
other than database integrity. I'm guessing adding a new field will work
seemlessly with the generators and not require you to change the default
behavior of things. Again however I don't work with generators much at this
point and I don't know if there is an easy way to do what you want to do
there. My perspective simply is that you would be misusing the primary key
by trying to make it a user entered value.

On Wed, Nov 3, 2010 at 13:15, xpanshun  wrote:

> @ Alex,
>
> I guess that is possible, but I was hoping for an easier way like
> making some type of change in the generator.yml or something of that
> nature...
>
> On Nov 3, 1:04 pm, Alex Pilon  wrote:
> > I've only ever used the default.. but would it be a sufficient solution
> to
> > add an extra column to your model that holds this admin typed in key? You
> > can use indices to mark them as unique..
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Nov 3, 2010 at 12:56, xpanshun  wrote:
> > > Also, is there a way to make it so that primary key fields are even
> > > viewable? It seems they are hidden by default...
> >
> > > On Nov 3, 12:31 pm, xpanshun  wrote:
> > > > Hi all,
> >
> > > > I've seen this question asked before a lot but from years ago--so
> > > > there wasn't any working response. I am hoping now that its 2010,
> that
> > > > there is a solution...
> >
> > > > I am using Symfony 1.4. I am currently working with the admin
> > > > generator and I have some primary key fields that are NOT numeric
> auto-
> > > > increment. These fields are varchar that I need the admin to input
> > > > manually.
> >
> > > > Is there a way to get such a primary key--or any primary key field to
> > > > be editable or created new on the backend?
> >
> > > > 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
> >
> > --
> > Alex Pilon
> > (613) 608-1480
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Admin Generator / PKs

2010-11-03 Thread Alex Pilon
I've only ever used the default.. but would it be a sufficient solution to
add an extra column to your model that holds this admin typed in key? You
can use indices to mark them as unique..

On Wed, Nov 3, 2010 at 12:56, xpanshun  wrote:

> Also, is there a way to make it so that primary key fields are even
> viewable? It seems they are hidden by default...
>
> On Nov 3, 12:31 pm, xpanshun  wrote:
> > Hi all,
> >
> > I've seen this question asked before a lot but from years ago--so
> > there wasn't any working response. I am hoping now that its 2010, that
> > there is a solution...
> >
> > I am using Symfony 1.4. I am currently working with the admin
> > generator and I have some primary key fields that are NOT numeric auto-
> > increment. These fields are varchar that I need the admin to input
> > manually.
> >
> > Is there a way to get such a primary key--or any primary key field to
> > be editable or created new on the backend?
> >
> > 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
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] What exactly means MODELS

2010-11-03 Thread Alex Pilon
M. Pozzato, No worries, just wanted to give you a heads up and to help you
improve your English. Glad my explanation helped.

Cheers

On Wed, Nov 3, 2010 at 10:49, Marcio Pozzato  wrote:

> Alex,
> Thank you and I'm so sorry by using Gays instead of the appropriate Guys.
> About Models your concepts are quite for me.
> M. Pozzato
>
> 2010/11/3 Alex Pilon 
>
> Hey,
>>
>> First off, the appropriate spelling is "hi guys" not "hi gays". In some
>> circles you'll be sodomized for that sort of talk (anyone??).
>>
>> Secondly, the term models is used to refer to the code representation of
>> database tables. So it means that there is a php class that maps to a
>> database tables and includes all sorts of methods to interact with the data
>> represented by the model. In short it is data abstraction.
>>
>> If none of that makes sense to you then I would recommend doing some
>> research on the MVC software architecture pattern.
>>
>> Thanks!
>>
>> On Wed, Nov 3, 2010 at 10:17, Marcio Pozzato  wrote:
>>
>>> Hi gays,
>>>
>>> Please, in Day 3-Jobeet Tutorial, what exactly means Models?
>>> After creating the Jobeet Database, they said at the ORM Section "*create
>>> the database tables"*, but, next, they said "build your *models*":
>>>
>>> "The ORM
>>> Thanks to the database description from the schema.yml file, we can use
>>> some Doctrine built-in tasks to generate the SQL statements needed to 
>>> *create
>>> the database tables*:
>>> First in order to generate the SQL you must build your *models *from
>>> your schema files.
>>> $ php symfony doctrine:build --model
>>> Now that your *models *are present you can generate and insert the SQL.
>>> $ php symfony doctrine:build --sql"
>>>
>>> Thanks.
>>>
>>> Marcio Pozzato.
>>> Rio - Brazil.
>>>
>>> --
>>> If you want to report a vulnerability issue on symfony, please send it to
>>> security at symfony-project.com
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "symfony users" group.
>>> To post to this group, send email to symfony-users@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>>>
>>
>>
>>
>> --
>> Alex Pilon
>> (613) 608-1480
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Marcio Pozzato
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] What exactly means MODELS

2010-11-03 Thread Alex Pilon
Hey,

First off, the appropriate spelling is "hi guys" not "hi gays". In some
circles you'll be sodomized for that sort of talk (anyone??).

Secondly, the term models is used to refer to the code representation of
database tables. So it means that there is a php class that maps to a
database tables and includes all sorts of methods to interact with the data
represented by the model. In short it is data abstraction.

If none of that makes sense to you then I would recommend doing some
research on the MVC software architecture pattern.

Thanks!

On Wed, Nov 3, 2010 at 10:17, Marcio Pozzato  wrote:

> Hi gays,
>
> Please, in Day 3-Jobeet Tutorial, what exactly means Models?
> After creating the Jobeet Database, they said at the ORM Section "*create
> the database tables"*, but, next, they said "build your *models*":
>
> "The ORM
> Thanks to the database description from the schema.yml file, we can use
> some Doctrine built-in tasks to generate the SQL statements needed to *create
> the database tables*:
> First in order to generate the SQL you must build your *models *from your
> schema files.
> $ php symfony doctrine:build --model
> Now that your *models *are present you can generate and insert the SQL.
> $ php symfony doctrine:build --sql"
>
> Thanks.
>
> Marcio Pozzato.
> Rio - Brazil.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: Textarea onclick event?

2010-11-03 Thread Alex Pilon
Eno, I think you need to review the thread. The problem was that Parijat was
calling

textarea_tag('hint-box','','size=70x4',array('onclick'=>'javascript:alert("yo")'));

So as you can see there are four arguments here. Parijat stated that the
onclick attribute was not being rendered. Why not? Because the function only
accepts three parameters: $name, $content, $options. So what is the problem?
Is it javascript? No. The javascript is not being rendered yet.

So maybe *you* have ADD and cannot fully read questions.

You lack professionalism. The issue is over and you had to dish it out with
the classic "oh you couldve googled". Sure but the issue has been solved and
so you are not adding anything to the conversation or making any
constructive statement, just as you are continuing to bitch now.

I realize that I am adding little to this thread myself in posting this,
however I must defend the Parijat as he clearly (by my above recap of the
problem) was having a problem with symfony and NOT with javascript. The
onclick attribute was NOT even appearing on the textarea.

Anyways, have yourself a good day sir.

On Wed, Nov 3, 2010 at 08:42, Eno  wrote:

> On Tue, 2 Nov 2010, Parijat Kalia wrote:
>
> > Oh guys, please chill out, none of that was for either of you, it was for
> > Mr.Eno, because he typically comes up with "smart ass " sentences like
> those
> > way too often.
>
> I haven't posted here for months.
>
> I agree with the smart part - I had the correct answer when noone else did
> (not that you thanked me).
>
> >  And yes, the issue that I was dealing with is Javascript, but in a
> symfony
> > tags context
>
> The problem had nothing to do with symfony.
>
> > I did the 10 sec google search several
> > times, and read the API, before I decided to seek help here.
>
> 10 seconds is hardly thorough research... OK maybe you have ADD but
> still...
>
>
>
>
> --
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Alex Pilon
You could also put that js into external js files and use use_javascript to
have each partial include the related external js file when it loads into
the template.

On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey  wrote:

> Forgot the link:
> http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots
>
> On Wed, Nov 3, 2010 at 11:55 AM, JoJo  wrote:
>
>> Hello everyone,
>>
>> I have a question not very technical but quite structural.
>>
>> In my modules, I use some partials to complete the layout. And in these
>> partials, I use some javascript functions. So when page loaded, these
>> javascript functions are added in the middle of template.
>>
>> I think that it is not very clean do display js in that way, because
>> normally they should be added between , but these js functions
>> are spécificaly for its partials and in several js functions, i need the
>> objects passed from action or component.
>>
>> So can anyone suggest what is the best way to implement these javascript
>> functions please.
>>
>> Thanks in advance.
>>
>> Best Regards,
>>
>> JoJo
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Stylesheets issue

2010-11-02 Thread Alex Pilon
What does your view.yml file look like? Have you cleared the cache? (symfony
cc)

On Tue, Nov 2, 2010 at 18:18, xpanshun  wrote:

> Hi all,
>
> It seems that my pages only want to use the main.css stylesheet even
> though I have the  line in them. What
> could be wrong here?
>
> Thanks.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] sfDoctrinePollPlugin

2010-11-02 Thread Alex Pilon
Hello Altansuh,

Please be more specific about what problem you are encountering.

Thanks

On Mon, Nov 1, 2010 at 05:25, Altansuh A  wrote:

> sfDoctrinePollPlugin on symfony1.0.4 not running help me please? give
> me sfDoctrinePollPlugin use tutorials.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] HowTo use Template in lib?

2010-11-02 Thread Alex Pilon
Hi Bernhard,

Check out my blog post
http://codesauce.com/2010/10/07/symfony-cron-and-html-emails-getpartial-from-cron/about
using get_partial and the likes from other places in symfony
applications.

The parts you'll want to pay particular attention to are:

// this loads in the Partial helpers
sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');

and

 $emailBody = get_partial('module/notifications',array('user'=>$user));
// use get_partial as you normally would

You can do the same thing here. The first snippet makes sure that the
partials are loaded that allow you to use get_partial();

Thanks

On Tue, Nov 2, 2010 at 17:21, Bernhard Marx  wrote:

> Hello together,
>
> i new to symfony, but hopefully slowly I get the full knowledge ;-)
>
> I extend my Application with a Soap-Server (The Zend-Soap).
>
> I added a module an some routing which works fine
>
> I have in "apps/frontend/lib" a class for containing the soap-
> functions...
> ##
> class Service{
> /**
> * Retrieves the Page
> *
> * @param string $token The generated token of the page
> * @return string
> */
>public function getPage($value)
>{
>$this->events = Doctrine_Core::getTable('pages')
>->createQuery('l')
>->where('l.id = ?', 3)
>->execute();
>
>$this->page = 'This is a test:
> '.$this-
> >events->getFirst()->getTitle().'';
>return $this->page;
>}
> }
> 
>
> How can I use templates for the html-content which would have to
> loaded dynamically...
>
> Thanks in adavance
>
> Bernhard
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Alex Pilon
Also it seems to me that session_write_storage was removed from the
sfUser::shutdown method because the sfUser class has a storage object that
by the looks of the contents of /lib/vendor/symfony/lib/storage is not
always guarenteed to be using the session. This means that having that
function call directly in that method is somewhat of a bad design because it
is dealing with the session and not the storage object which may or may not
be the session.

On Tue, Nov 2, 2010 at 17:11, Alex Pilon  wrote:

> Could you subclass sfUser and add a call to the $this->storage->shutdown()
> as well as call the parent function? Or even just add the extra call there?
> That seems less intrusive and allow for upgrading than modify symfony core
> code. I do work in drupal as well as symfony and always shrivel up and die
> inside when I see people modifying core drupal code that couldve been
> modified and saved from being destroyed by upgrades.
>
> I looked at the factory documentation for user.. it is mentioned to be of
> class myUser, which inherits sfUser, so perhaps you could even just add this
> do this in myUser
>
> public function shutdown()
> {
> parent::shutdown();
> session_write_close();
> }
>
> What do you think?
>
> On Tue, Nov 2, 2010 at 16:56, Gareth McCumskey wrote:
>
>> I saw that myself as well. I just wonder why that was changed though?
>> Thats one of those things when we do eventually convince the sys admins to
>> upgrade PHP to 5.3 and upgrade our projects to symfony 1.4 we will need to
>> add the extra line of code.
>>
>>
>> On Tue, Nov 2, 2010 at 10:48 PM, Gábor Fási  wrote:
>>
>>> sfSessionStorage has a shutdown() function [1] that calls
>>> session_write_close(), but it does not get called in sfUser's
>>> shutdown(), so as far as I can see, in 1.4 you need to call
>>> session_write_close() manually.
>>>
>>> [1]
>>> http://trac.symfony-project.org/browser/branches/1.4/lib/storage/sfSessionStorage.class.php#L180
>>> On Mon, Nov 1, 2010 at 13:37, Gareth McCumskey 
>>> wrote:
>>> > If it IS called in sfSessionStorage then it is called after all as
>>> > sfSessionStorage manages the writes to session.
>>> >
>>> > On Mon, Nov 1, 2010 at 2:03 PM, axel at  wrote:
>>> >>
>>> >>
>>> >> On 1 Nov., 12:54, Gareth McCumskey  wrote:
>>> >> > $this->getUser()->shutdown() == session_write_close();
>>> >> >
>>> >> > No need for both :)
>>> >> >
>>> >>
>>> >> hm in symfony 1.4.6 session_write_close(); is only called within the
>>> >> shutdown function of sfSessionStorage class.
>>> >> but not called from sfBasicSecurityUser->shutdown() nor from
>>> >> sfUser.shutdown()
>>> >> so I had to call it after $this->getUser()->shutdown()...
>>> >>
>>> >> maybe a symfony change?
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> >
>>> >> >
>>> >> > On Mon, Nov 1, 2010 at 1:36 PM, axel at 
>>> wrote:
>>> >> > > thx for your help:
>>> >> >
>>> >> > > adding:
>>> >> >
>>> >> > > $this->getUser()->shutdown();
>>> >> > > session_write_close();
>>> >> >
>>> >> > > to the actions that usually take a long time (eg. pdf generation,
>>> xls
>>> >> > > exports,...)
>>> >> > > solved our problem
>>> >> >
>>> >> > > thx a lot!
>>> >> >
>>> >> > > On 1 Nov., 11:59, Gareth McCumskey  wrote:
>>> >> > > > I wrote a blog post about this ages back. Feel free to take a
>>> look:
>>> >> >
>>> >> > >
>>> >> > > > >
>>> http://garethmccumskey.blogspot.com/2009/10/php-session-write-locking...
>>> >> >
>>> >> > > > On Mon, Nov 1, 2010 at 12:26 PM, axel at 
>>> >> > > > wrote:
>>> >> > > > > hello,
>>> >> >
>>> >> > > > > when I start a symfony web request that needs several seconds
>>> to
>>> >> > > > > be
>>> >> > > > > finished, other requests to the same server/symfony
>>> application
>>> >> > >

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Alex Pilon
gt;> >
>> >> > > > > --
>> >> > > > > If you want to report a vulnerability issue on symfony, please
>> >> > > > > send it
>> >> > > to
>> >> > > > > security at symfony-project.com
>> >> >
>> >> > > > > You received this message because you are subscribed to the
>> Google
>> >> > > > > Groups "symfony users" group.
>> >> > > > > To post to this group, send email to
>> >> > > > > symfony-users@googlegroups.com
>> >> > > > > To unsubscribe from this group, send email to
>> >> > > > >
>> >> > > > > symfony-users+unsubscr...@googlegroups.com
>> 
>> >
>> >> > >
>> >> > > 
>> 
>> >
>> >> >
>> >> > > > > For more options, visit this group at
>> >> > > > >http://groups.google.com/group/symfony-users?hl=en
>> >> >
>> >> > > > --
>> >> > > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
>> >> > > > twitter: @garethmcc
>> >> >
>> >> > > --
>> >> > > If you want to report a vulnerability issue on symfony, please send
>> it
>> >> > > to
>> >> > > security at symfony-project.com
>> >> >
>> >> > > You received this message because you are subscribed to the Google
>> >> > > Groups "symfony users" group.
>> >> > > To post to this group, send email to
>> symfony-users@googlegroups.com
>> >> > > To unsubscribe from this group, send email to
>> >> > >
>> >> > > symfony-users+unsubscr...@googlegroups.com
>> 
>> >
>> >> > > For more options, visit this group at
>> >> > >http://groups.google.com/group/symfony-users?hl=en
>> >> >
>> >> > --
>> >> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
>> >> > twitter: @garethmcc
>> >>
>> >> --
>> >> If you want to report a vulnerability issue on symfony, please send it
>> to
>> >> security at symfony-project.com
>> >>
>> >> You received this message because you are subscribed to the Google
>> >> Groups "symfony users" group.
>> >> To post to this group, send email to symfony-users@googlegroups.com
>> >> To unsubscribe from this group, send email to
>> >> symfony-users+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/symfony-users?hl=en
>> >
>> >
>> >
>> > --
>> > Gareth McCumskey
>> > http://garethmccumskey.blogspot.com
>> > twitter: @garethmcc
>> >
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it
>> to
>> > security at symfony-project.com
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" group.
>> > To post to this group, send email to symfony-users@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/symfony-users?hl=en
>> >
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> You received this message because you are subscribed to the Google
>> Groups "symfony users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

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

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


Re: [symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Alex Pilon
Great!

On Tue, Nov 2, 2010 at 13:25, Stan McFarland  wrote:

>
> It was $request->getUri() that did the trick.  Thanks again!
>
>
> On Nov 2, 11:42 am, Alex Pilon  wrote:
> > How about redirecting them to the referrer? $request->getReferer(); That
> > will reference where the user came from to get to the Login method that
> you
> > are using.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Nov 2, 2010 at 11:38, Stan McFarland  wrote:
> > > It makes sense, but I don't know what to redirect _to_.The user
> > > could potentially request any URL  (say, url/mymodule/new or url/
> > > mymodule/edit/id/5)  as their first session request.  If the
> > > authentication is successful I want to send them to whatever they
> > > originally requested.But once I'm in the executeLogin method I'm
> > > not sure I have access to the original request.Does that make
> > > sense?
> >
> > > I can't post my code - behind a firewall - sorry.  :)   Thanks for all
> > > the help.
> >
> > > -stan
> >
> > > On Nov 2, 11:28 am, Alex Pilon  wrote:
> > > > Hey Stan,
> >
> > > > If you have an executeLogin method defined in
> > > > sfGuardAuth/actions/actions.class.php at the end of the executeLogin
> or
> > > > whenever you have decided the user is authenticated you should be
> able to
> > > do
> > > > $this->redirect or forward as you normally would. If this doesn't
> make
> > > sense
> > > > can you post the contents of the executeLogin and where you have this
> > > method
> > > > in code (i.e. what file is it in?).
> >
> > > > Thanks
> >
> > > > On Tue, Nov 2, 2010 at 11:23, Stan McFarland 
> wrote:
> > > > > Alex, one more question, if you don't mind.  I have the validation
> > > > > working, but I'm stuck on something.My executeLogin() method
> > > > > successfully does the login, but the machinery obviously wants to
> > > > > render the loginSuccess.php template.  Is there a variable that
> > > > > contains the original request so I can just do a forward or a
> redirect
> > > > > if the user's certificate matches successfully?
> >
> > > > > Thanks very much,
> >
> > > > > On Nov 2, 10:51 am, Alex Pilon  wrote:
> > > > > > Yeah, no problem.. read up on the cascading file system that
> symfony
> > > has.
> > > > > It
> > > > > > is very useful and makes it possible to very specifically
> override
> > > any
> > > > > > aspect of the framework and of plugins.
> >
> > > > > > On Tue, Nov 2, 2010 at 10:49, Stan McFarland 
> > > wrote:
> > > > > > > Thanks, Alex - will give it a try.  It was the adding of the
> > > > > > > sfGuardAuth folder that had me stumped.
> >
> > > > > > > On Nov 2, 10:29 am, Alex Pilon  wrote:
> > > > > > > > Hi Stan,
> >
> > > > > > > > You can override the default behavior by making a sfGuardAuth
> > > folder
> > > > > in
> > > > > > > your
> > > > > > > > modules folder and overriding how authentication takes place.
> >
> > > > > > > > On Tue, Nov 2, 2010 at 10:15, Stan McFarland <
> sfmc...@gmail.com>
> > > > > wrote:
> > > > > > > > > Hi,
> >
> > > > > > > > > I'm trying to secure an application where all users have
> client
> > > > > > > > > certificates. I want to compare the client certificate
> name
> > > > > > > > > (available in an environmental variable) to the list of
> valid
> > > users
> > > > > > > > > kept in a database table.   If the user exists in the
> database,
> > > I
> > > > > want
> > > > > > > > > to grant the user access - otherwise, they just get a
> > > permission
> > > > > > > > > denied error.  The problem I'm having is that the
> various
> > > guard
> > > > > > > > > modules (sfGuard, sfDoctrineGuard) seem to assume I want to
> > > > > redirect
> > > > > > > > > the user to a form prompting for a password

  1   2   >