[symfony-users] Re: Pre-execute under SF2

2011-04-19 Thread Dmitry Bykadorov
wow ) Thanks for quick response!

I'll try your solution

On Apr 20, 10:37 am, Szymek  wrote:
> OK. So,
>
> 1. Add service
>
> eg.
> 
>             
> 
>
> 2. Create listener class
>
> eg.
>
> namespace Namespace\To\Your\Listener\Class;
>
> use Symfony\Component\EventDispatcher\Event;
> use Symfony\Component\HttpKernel\HttpKernelInterface;
> use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
>
> class YourListener {
>
>     /**
>      *
>      * pre execute emulation
>      *
>      * @param $event FilterControllerEvent
>      * @return void
>      */
>     public function onCoreController(FilterControllerEvent $event) {
>         if (HttpKernelInterface::MASTER_REQUEST === $event->getRequestType()) 
> {
>
>             $aController = $event->getController();
>             if (isset($aController[0])) {
>                 $Controller = $aController[0];
>                     $Controller->preExecute(); // also you should
> check if method_exsist
>             }
>         }
>     }
>
> }
>
> On 20 Kwi, 07:42, Dmitry Bykadorov  wrote:
>
>
>
>
>
>
>
> > Can you provide any simple example? I have the same question )
>
> > On Apr 19, 10:47 pm, Szymek  wrote:
>
> > > You should 
> > > usehttp://symfony.com/doc/2.0/book/internals/kernel.html#oncorecontrolle...
>
> > > On 17 Kwi, 21:04, kassel  wrote:
>
> > > > Hi All,
> > > > At last i need not to repeat some methods in some diferents actions,
> > > > and at las inyect data under the wiew?, like in SF 1.4 exists
> > > > preExecute there is Something under SF2
>
> > > > 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


Re: [symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread Haris Fauzi
Oh dear,
Well of course! If you want to show that image then you must enclose it in
 tag. Why would you print the filename instead? Go on
to day 4, you will see the code to access the image file in the HTML way.
:-)

It will be printed like:


Regards,
Haris

On 20 April 2011 16:30, voidpointer  wrote:

>
>
> On Apr 20, 8:48 am, Haris Fauzi  wrote:
> > So what's the problem now? You said your web page looks like rubbish,
> that
> > was because you didn't have the images & stylesheets. Now you have them
> in
> > place, you should be able to have a better view of the display. Just
> > continue the tutorial and see what you get next. When you finish day 4
> then
> > you should see better presentation of the Jobeet.
> > FYI, the browser used in that tutorial is Safari, so don't expect to have
> > the same display of widgets (checkbox, combo box, etc) if you're using
> other
> > browser.
> >
> > Regards,
> > Haris
> >
> > On 20 April 2011 15:37, voidpointer  wrote:
> >
> >
> >
> > > On Apr 19, 3:39 pm, Haris Fauzi  wrote:
> > > > Well, you're getting close. At least now the CSS has been recognised,
> I
> > > > suppose.
> > > > Look at the HTML source and see what you're missing, e.g. if there's
> any
> > > IMG
> > > > SRC tag then try to locate the image directly from the browser (
> > >http://localhost:8080/images/logo.jpg,http://localhost:8080/images/lo..
> .,
> > > etc). See if the browser can
> > > > retrieve those files and make it can.
> >
> > > > Regards,
> > > > Haris
> >
> > > > On 19 April 2011 22:29, voidpointer 
> wrote:
> >
> > > > > Hmmm
> >
> > > > > Haris, did that but no significant change. There is a blue/grey
> > > > > background colour but that is the only change.
> >
> > > > > On Apr 19, 3:12 pm, voidpointer 
> wrote:
> > > > > > OK. Haris, will try that out. Thanks.
> >
> > > > > > Cheers - VP
> >
> > > > > > On Apr 19, 9:13 am, Haris Fauzi  wrote:
> >
> > > > > > > In day 4 there's a link to download the stylesheets and images
> used
> > > for
> > > > > > > Jobeet tutorial. Download and put them in the suggested
> > > directories.
> >
> > > > > > > Regards,
> > > > > > > Haris
> >
> > > > > > > On 18 April 2011 22:19, voidpointer <
> voidpoin...@rocketmail.com>
> > > > > wrote:
> >
> > > > > > > > Moi,
> >
> > > > > > > > I am trying to work through the jobeet tutorial. I have got
> to
> > > day 3
> > > > > > > > and try to use the url posted in the title.
> >
> > > > > > > > The layout is rubbish, there are no images etc. Here is a
> snippet
> > > > > from
> > > > > > > > the top of that page:
> >
> > > > > > > >  Transitional//EN"
> > > > > "http://
> > > > > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > > > > > http://www.w3.org/1999/xhtml"; xml:lang="en"
> > > lang="en">
> > > > > > > >  
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > > > href="/css/
> > > > > > > > main.css" />
> > > > > > > >  

Re: [symfony-users] Bundle does not contain any mapped entities.

2011-04-19 Thread seven seven
Hi,

You should use php app/console doctrine:schema:create assuming that you have
already created your database ( you can do this with
doctrine:database:create ). generate:entities is used when you have defined
your entity in .yml or .xml file(s).

I am new to symfony , so someone please correct me if I am wrong !

On Tue, Apr 19, 2011 at 4:07 PM, absdv  wrote:

> Hi,
>
> I want to run this command in PR11 :
> $ php app/console doctrine:generate:entities SdvSuiviBundle
> And I get : Bundle SdvSuiviBundle does not contain any mapped
> entities.
>
> In config.yml, I have :
> # Doctrine Configuration
> doctrine:
>dbal:
>default_connection: default
>connections:
>default:
>driver:   %database_driver%
>host: %database_host%
>dbname:   %database_name%
>user: %database_user%
>password: %database_password%
>
>orm:
>auto_generate_proxy_classes: %kernel.debug%
>default_entity_manager: default
>entity_managers:
>default:
>mappings:
>SdvSuiviBundle: ~
>
>
>
>
>
>
> In src/Sdv/SuiviBundle/Entity/Mail.php, I have this :
>
> 
> namespace Sdv\SdvSuiviBundle\Entity;
>
> /**
>  * @orm:Entity
>  */
> class Mail
> {
>/**
> * @orm:Id
> * @orm:Column(type="integer")
> * @orm:GeneratedValue(strategy="AUTO")
> */
>protected $id;
>
>/**
> * @orm:Column(type="string", length="255")
> */
>protected $key;
>
>/**
> * @orm:Column(type="text")
> */
>protected $object;
>
>/**
> * @orm:Column(type="text")
> */
>protected $from;
>
>/**
> * @orm:Column(type="text")
> */
>protected $header;
>
>/**
> * @orm:Column(type="text")
> */
>protected $body;
>
>/**
> * @orm:Column(type="text")
> */
>protected $raw;
>
>/**
> * @orm:Column(type="datetime", name="created_at")
> */
>protected $createdAt;
>
>/**
> * @orm:Column(type="datetime", name="updated_at")
> */
>protected $updatedAt;
>
>
>
>public function __construct()
>{
>$this->createdAt = new \DateTime();
>$this->updatedAt = new \DateTime();
>}
>
> }
>
>
>
> Please, help me. I'm begenning with Symfony 2. It's a huge step for me
> coming from Symfony 1.0.x
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 

Cezar

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

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


[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer


On Apr 20, 9:30 am, voidpointer  wrote:
> On Apr 20, 8:48 am, Haris Fauzi  wrote:
>
>
>
> > So what's the problem now? You said your web page looks like rubbish, that
> > was because you didn't have the images & stylesheets. Now you have them in
> > place, you should be able to have a better view of the display. Just
> > continue the tutorial and see what you get next. When you finish day 4 then
> > you should see better presentation of the Jobeet.
> > FYI, the browser used in that tutorial is Safari, so don't expect to have
> > the same display of widgets (checkbox, combo box, etc) if you're using other
> > browser.
>
> > Regards,
> > Haris
>
> > On 20 April 2011 15:37, voidpointer  wrote:
>
> > > On Apr 19, 3:39 pm, Haris Fauzi  wrote:
> > > > Well, you're getting close. At least now the CSS has been recognised, I
> > > > suppose.
> > > > Look at the HTML source and see what you're missing, e.g. if there's any
> > > IMG
> > > > SRC tag then try to locate the image directly from the browser (
> > >http://localhost:8080/images/logo.jpg,http://localhost:8080/images/lo...,
> > > etc). See if the browser can
> > > > retrieve those files and make it can.
>
> > > > Regards,
> > > > Haris
>
> > > > On 19 April 2011 22:29, voidpointer  wrote:
>
> > > > > Hmmm
>
> > > > > Haris, did that but no significant change. There is a blue/grey
> > > > > background colour but that is the only change.
>
> > > > > On Apr 19, 3:12 pm, voidpointer  wrote:
> > > > > > OK. Haris, will try that out. Thanks.
>
> > > > > > Cheers - VP
>
> > > > > > On Apr 19, 9:13 am, Haris Fauzi  wrote:
>
> > > > > > > In day 4 there's a link to download the stylesheets and images 
> > > > > > > used
> > > for
> > > > > > > Jobeet tutorial. Download and put them in the suggested
> > > directories.
>
> > > > > > > Regards,
> > > > > > > Haris
>
> > > > > > > On 18 April 2011 22:19, voidpointer 
> > > > > wrote:
>
> > > > > > > > Moi,
>
> > > > > > > > I am trying to work through the jobeet tutorial. I have got to
> > > day 3
> > > > > > > > and try to use the url posted in the title.
>
> > > > > > > > The layout is rubbish, there are no images etc. Here is a 
> > > > > > > > snippet
> > > > > from
> > > > > > > > the top of that page:
>
> > > > > > > >  > > > > "http://
> > > > > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > > > > > http://www.w3.org/1999/xhtml"; xml:lang="en"
> > > lang="en">
> > > > > > > >  
> > > > > > > >    
> > > > > > > >        
> > > > > > > >    
> > > > > > > >     > > href="/css/
> > > > > > > > main.css" />
> > > > > > > >      

[symfony-users] Re: Pre-execute under SF2

2011-04-19 Thread Szymek
OK. So,

1. Add service

eg.




2. Create listener class

eg.

namespace Namespace\To\Your\Listener\Class;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;

class YourListener {

/**
 *
 * pre execute emulation
 *
 * @param $event FilterControllerEvent
 * @return void
 */
public function onCoreController(FilterControllerEvent $event) {
if (HttpKernelInterface::MASTER_REQUEST === $event-
>getRequestType()) {
$aController = $event->getController();
if (isset($aController[0])) {
$Controller = $aController[0];
$Controller->preExecute(); // also you should
check if method_exsist
}
}
}

}


On 20 Kwi, 07:42, Dmitry Bykadorov  wrote:
> Can you provide any simple example? I have the same question )
>
> On Apr 19, 10:47 pm, Szymek  wrote:
>
>
>
>
>
>
>
> > You should 
> > usehttp://symfony.com/doc/2.0/book/internals/kernel.html#oncorecontrolle...
>
> > On 17 Kwi, 21:04, kassel  wrote:
>
> > > Hi All,
> > > At last i need not to repeat some methods in some diferents actions,
> > > and at las inyect data under the wiew?, like in SF 1.4 exists
> > > preExecute there is Something under SF2
>
> > > 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


[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer


On Apr 20, 8:48 am, Haris Fauzi  wrote:
> So what's the problem now? You said your web page looks like rubbish, that
> was because you didn't have the images & stylesheets. Now you have them in
> place, you should be able to have a better view of the display. Just
> continue the tutorial and see what you get next. When you finish day 4 then
> you should see better presentation of the Jobeet.
> FYI, the browser used in that tutorial is Safari, so don't expect to have
> the same display of widgets (checkbox, combo box, etc) if you're using other
> browser.
>
> Regards,
> Haris
>
> On 20 April 2011 15:37, voidpointer  wrote:
>
>
>
> > On Apr 19, 3:39 pm, Haris Fauzi  wrote:
> > > Well, you're getting close. At least now the CSS has been recognised, I
> > > suppose.
> > > Look at the HTML source and see what you're missing, e.g. if there's any
> > IMG
> > > SRC tag then try to locate the image directly from the browser (
> >http://localhost:8080/images/logo.jpg,http://localhost:8080/images/lo...,
> > etc). See if the browser can
> > > retrieve those files and make it can.
>
> > > Regards,
> > > Haris
>
> > > On 19 April 2011 22:29, voidpointer  wrote:
>
> > > > Hmmm
>
> > > > Haris, did that but no significant change. There is a blue/grey
> > > > background colour but that is the only change.
>
> > > > On Apr 19, 3:12 pm, voidpointer  wrote:
> > > > > OK. Haris, will try that out. Thanks.
>
> > > > > Cheers - VP
>
> > > > > On Apr 19, 9:13 am, Haris Fauzi  wrote:
>
> > > > > > In day 4 there's a link to download the stylesheets and images used
> > for
> > > > > > Jobeet tutorial. Download and put them in the suggested
> > directories.
>
> > > > > > Regards,
> > > > > > Haris
>
> > > > > > On 18 April 2011 22:19, voidpointer 
> > > > wrote:
>
> > > > > > > Moi,
>
> > > > > > > I am trying to work through the jobeet tutorial. I have got to
> > day 3
> > > > > > > and try to use the url posted in the title.
>
> > > > > > > The layout is rubbish, there are no images etc. Here is a snippet
> > > > from
> > > > > > > the top of that page:
>
> > > > > > >  > > > "http://
> > > > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > > > > http://www.w3.org/1999/xhtml"; xml:lang="en"
> > lang="en">
> > > > > > >  
> > > > > > >    
> > > > > > >        
> > > > > > >    
> > > > > > >     > href="/css/
> > > > > > > main.css" />
> > > > > > >      

Re: [symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread Haris Fauzi
So what's the problem now? You said your web page looks like rubbish, that
was because you didn't have the images & stylesheets. Now you have them in
place, you should be able to have a better view of the display. Just
continue the tutorial and see what you get next. When you finish day 4 then
you should see better presentation of the Jobeet.
FYI, the browser used in that tutorial is Safari, so don't expect to have
the same display of widgets (checkbox, combo box, etc) if you're using other
browser.

Regards,
Haris

On 20 April 2011 15:37, voidpointer  wrote:

>
>
> On Apr 19, 3:39 pm, Haris Fauzi  wrote:
> > Well, you're getting close. At least now the CSS has been recognised, I
> > suppose.
> > Look at the HTML source and see what you're missing, e.g. if there's any
> IMG
> > SRC tag then try to locate the image directly from the browser (
> http://localhost:8080/images/logo.jpg,http://localhost:8080/images/loader.gif,http://localhost:8080/images/bg-header.jpg,
> etc). See if the browser can
> > retrieve those files and make it can.
> >
> > Regards,
> > Haris
> >
> > On 19 April 2011 22:29, voidpointer  wrote:
> >
> > > Hmmm
> >
> > > Haris, did that but no significant change. There is a blue/grey
> > > background colour but that is the only change.
> >
> > > On Apr 19, 3:12 pm, voidpointer  wrote:
> > > > OK. Haris, will try that out. Thanks.
> >
> > > > Cheers - VP
> >
> > > > On Apr 19, 9:13 am, Haris Fauzi  wrote:
> >
> > > > > In day 4 there's a link to download the stylesheets and images used
> for
> > > > > Jobeet tutorial. Download and put them in the suggested
> directories.
> >
> > > > > Regards,
> > > > > Haris
> >
> > > > > On 18 April 2011 22:19, voidpointer 
> > > wrote:
> >
> > > > > > Moi,
> >
> > > > > > I am trying to work through the jobeet tutorial. I have got to
> day 3
> > > > > > and try to use the url posted in the title.
> >
> > > > > > The layout is rubbish, there are no images etc. Here is a snippet
> > > from
> > > > > > the top of that page:
> >
> > > > > >  > > "http://
> > > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > > > http://www.w3.org/1999/xhtml"; xml:lang="en"
> lang="en">
> > > > > >  
> > > > > >
> > > > > >
> > > > > >
> > > > > > href="/css/
> > > > > > main.css" />
> > > > > >  

[symfony-users] Re: Symfony2 validation: file constraint and mime type

2011-04-19 Thread Dmitry Bykadorov
I'm on windows7 x64 - development machine. On LAMP env i have not
tested because this feature not works on win

On Apr 1, 3:19 pm, Bernhard Schussek  wrote:
> Hi Dmitry,
>
> What operating system do you use?
>
> 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


[symfony-users] Re: Pre-execute under SF2

2011-04-19 Thread Dmitry Bykadorov
Can you provide any simple example? I have the same question )

On Apr 19, 10:47 pm, Szymek  wrote:
> You should 
> usehttp://symfony.com/doc/2.0/book/internals/kernel.html#oncorecontrolle...
>
> On 17 Kwi, 21:04, kassel  wrote:
>
>
>
>
>
>
>
> > Hi All,
> > At last i need not to repeat some methods in some diferents actions,
> > and at las inyect data under the wiew?, like in SF 1.4 exists
> > preExecute there is Something under SF2
>
> > 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


[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer


On Apr 19, 3:39 pm, Haris Fauzi  wrote:
> Well, you're getting close. At least now the CSS has been recognised, I
> suppose.
> Look at the HTML source and see what you're missing, e.g. if there's any IMG
> SRC tag then try to locate the image directly from the browser 
> (http://localhost:8080/images/logo.jpg,http://localhost:8080/images/loader.gif,http://localhost:8080/images/bg-header.jpg,
>  etc). See if the browser can
> retrieve those files and make it can.
>
> Regards,
> Haris
>
> On 19 April 2011 22:29, voidpointer  wrote:
>
> > Hmmm
>
> > Haris, did that but no significant change. There is a blue/grey
> > background colour but that is the only change.
>
> > On Apr 19, 3:12 pm, voidpointer  wrote:
> > > OK. Haris, will try that out. Thanks.
>
> > > Cheers - VP
>
> > > On Apr 19, 9:13 am, Haris Fauzi  wrote:
>
> > > > In day 4 there's a link to download the stylesheets and images used for
> > > > Jobeet tutorial. Download and put them in the suggested directories.
>
> > > > Regards,
> > > > Haris
>
> > > > On 18 April 2011 22:19, voidpointer 
> > wrote:
>
> > > > > Moi,
>
> > > > > I am trying to work through the jobeet tutorial. I have got to day 3
> > > > > and try to use the url posted in the title.
>
> > > > > The layout is rubbish, there are no images etc. Here is a snippet
> > from
> > > > > the top of that page:
>
> > > > >  > "http://
> > > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > > http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> > > > >  
> > > > >    
> > > > >        
> > > > >    
> > > > >    
> > > > >      

Re: [symfony-users] Re: ajax in symfony 2

2011-04-19 Thread oscar balladares
Oh, for sure.

If you want just to validate a field with ajax and a controller you probably
need to grep
the EmailField value and attach it to a variable.

If you instead want to submit the whole form with JQuery and Ajax you should
want to use the .serialize() function (of JQuery + Ajax)



So the controller must looks like:

public function validateEmailAction(){

# Is the request an ajax one?
if ($this->get('request')->isXmlHttpRequest())
{
# Lets get the email parameter's value
$email = $this->get('request')->request->get('email');
   #if the email is correct
   if(){
   return new Response("The email is valid");
}#endif
#else if the email is incorrect
else
{
return new Response("We are sorry, the email is already
taken");
}#endelse

}# endif this is an ajax request

} #end of the controller.



The controllers route could be something like

email_validation:
pattern:  /emailcheck
defaults: { _controller: YourBundle:SomeController:validateEmail }

.
and in the main template (the one that displays the email field and the
whole form) you should have something like:



This one is meant to avoid hardcoding the controller's route in the
Javascript File, (there are 2 routes, the one for prod and the one for dev,
so this
aproach will prevent you from guessing what route is the correct one
depending on the enviroment) you will only
have to read  the route for the ajax request from this field. In other
cases, you may want to read the action route of the form (  )
or maybe the route of a link ( ) This
can be done with JQuery.

...

the script.js should read something like:


$(document).ready(function() {

$('input#idOfTheEmailField').blur(function(e){

   var $email = $(this).val(); //this is the same that saying
$('input#idOfTheEmailField').val()
   var $url = $('input#emailCheckRoute').val(); //we are getting the
email_validation route.

   $.post($url, { email: $email },
 function(data) {
   alert("The app says: " + data);
});

});

});


Remember to know which is the ID property of the emailField (you must change
mine "#idOfTheEmailField" with yours).

If you are new to JQuery, you must know that "$(document).ready(function() {
. } );" is mandatory
and every function must go inside this main function.

Also, the include of the JQuery script must go first, and your custom script
goes after :




And of course, anything can goes wrong with a js file, so if you don't have
a debugger like bugzilla,
the easiest way to get going is printing a simple alert, just to see if
JQuery main function is working:

$(document).ready(function() {
  alert('this is working, lest add more code, and try little by little");
});

Hope this get you rolling [?]


2011/4/18 symfonyMan 

> Hello Oscar,
>
> thanks you for the replays..
>
> can you show me an exemple of sending an ajax request with jquery ??
>
> i tried a lot of things (.ajax(), .get()...) but il my ajaxAction,
> this test is skipped : (not an XMLHttpRequest())
> if ($this->container->get('request')->isXmlHttpRequest())
>{
> //some code here
>}
>
> i want to validate the email input (onblur)
>
> thanks ;)
>
>
> On 16 avr, 19:20, oscar balladares  wrote:
> > If you just want to return a simple string you probably want to:
> >
> > # Controllers definition {
> > #some logic here
> >
> > return new Response("There are some errors on this field");
> >
> > ...
> >
> > You must import the namespace for Response :
> >
> > use Symfony\Component\HttpFoundation\Response;
> >
> > 2011/4/15 symfonyMan 
> >
> > > Hello,
> >
> > > thanks for all this responses.
> >
> > > the controller must return a template ?
> >
> > > Me, I need ajax just for validate email, and print "ok" next to the
> > > email field...
> >
> > > sorry i have a bad english :)
> >
> > > thnaks
> >
> > > On 15 avr, 00:12, oscar balladares  wrote:
> > > > The controller should return a template response, a common template
> > > (without
> > > > inheritance of course)
> >
> > > > 2011/4/14 oscar balladares 
> >
> > > > > With JQuery you can request Marc's controller's route. That should
> do
> > > the
> > > > > trick.
> >
> > > > > 2011/4/14 Marc MacLeod 
> >
> > > > >> In your controller:
> >
> > > > >>public function fooAction()
> > > > >>{
> > > > >>// Is this an ajax request?
> > > > >>if ($this->container->get('request')->isXmlHttpRequest())
> > > > >>{
> > > > >>// do stuff and return ajax content
> > > > >>}
> >
> > > > >>// return normal response
> > > > >> }
> >
> > > > >> On Apr 13, 5:16 am, symfonyMan  wrote:
> > > > >> > hello,
> >
> > > > >> > could somebody show me an example using ajax in symfony 2 ??
> >
> > > > >> > thanks
> >
> > > > >> --
> > > > >> If you want to report a vulnerability issue on symfony, please
> send it
> > > to
> > > > >> security at symfony-project.com
> >
> > > > >> You

Re: [symfony-users] Aw: Re: basic form validation

2011-04-19 Thread oscar balladares
I've have that same issues with yml validation configuration (with dataClass
set correctly).

It seems to be a cache problem, sometimes it is, but with PR10 I was unable
to use yml validations,
only annotations were working.

Now that I upgrade to PR11, yml are working again. The two versions of
config.yml (validation; true, annotations: true) were
identically.

Seems strange.

2011/4/19 Conrad 

> i have a similar problem using annotations. I also setDataClass() to point
> to the model file, but the annotations are ignored completely in the FOS new
> user form... (although annotions:true is set in the configs)...
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

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

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


[symfony-users] Re: Symfony2 MongoDB UserBundle - no extension able to load the configuration

2011-04-19 Thread JC
I believe I went past the problem listed below.
I just realized that Doctrine for MongoDB is not included in the PR12
distribution.

So, I made the following changes:
- updated AppKernel.php as follows:
  addednew Symfony\Bundle\DoctrineMongoDBBundle
\DoctrineMongoDBBundle(),
- updated autoload.php as follows:
  added   'Doctrine\\ODM\\MongoDB' => __DIR__.'/../vendor/doctrine-odm/
lib',

Added the missing files under vendor/doctrine-odm/lib/Doctrine/ODM/
MongoDB
(this last I was just guessing as I haven't seen references on the
correct path).

I reran and it but found an undefined method, missing some injection
setting:
Fatal error: Call to undefined method Symfony\Component\Config
\Definition\Builder\ArrayNodeDefinition::scalarNode() in C:\bin\Symfony
\vendor\bundles\FOS\UserBundle\DependencyInjection\Configuration.php
on line 29

Any ideas?



On Apr 19, 1:56 pm, JC  wrote:
> I am running the latest version of Symfony2 (PR12) and tried to use
> the UserBundle but it is complaining about the setting on the
> config.yml file that relates to MongoDB with the following exception:
>
> Fatal error: Uncaught exception 'InvalidArgumentException' with
> message 'There is no extension able to load the configuration for
> "doctrine_mongo_db" (in C:\bin\Symfony\app/config\config.yml).' in C:
> \bin\Symfony\vendor\symfony\src\Symfony\Component\Config\Loader
> \FileLoader.php on line 72
>
> I just followed the instructions in the documentation and added the
> following entry to the config.yml file:
>
> doctrine_mongo_db:
>     document_managers:
>         default:
>             mappings:
>                 FOSUserBundle: ~
>
> Am I missing something here. I did see a previous posting last year
> around the same topic with an earlier version of Symfony2 but no
> resolution.

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 MongoDB UserBundle - no extension able to load the configuration

2011-04-19 Thread JC
I am running the latest version of Symfony2 (PR12) and tried to use
the UserBundle but it is complaining about the setting on the
config.yml file that relates to MongoDB with the following exception:

Fatal error: Uncaught exception 'InvalidArgumentException' with
message 'There is no extension able to load the configuration for
"doctrine_mongo_db" (in C:\bin\Symfony\app/config\config.yml).' in C:
\bin\Symfony\vendor\symfony\src\Symfony\Component\Config\Loader
\FileLoader.php on line 72

I just followed the instructions in the documentation and added the
following entry to the config.yml file:

doctrine_mongo_db:
document_managers:
default:
mappings:
FOSUserBundle: ~

Am I missing something here. I did see a previous posting last year
around the same topic with an earlier version of Symfony2 but no
resolution.

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] R: Symfony Simplepie Plugin

2011-04-19 Thread ftassi
Same error for me on 1.4.8, maybe some errors with the package.xml file.
Try with manual installation. 
Download the package, unzip it and copy source dir into plugin directory.

Francesco

-- 
Francesco Tassi
http://about.me/ftassi

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Seems to be some problem with swiftmailer?

2011-04-19 Thread hollo
Hi,

I have found a weird problem, i dont really think it about
swiftmailer, but with swiftmailer i can reproduce the error:

When i initialize the swiftmailer class, i get an error.. i dont know
if anyone can see if i does something wrong? As far as i can see it
just as the manual says:

http://symfony.com/doc/2.0/cookbook/email.html

The "funny thing" is that i DONT see the error in my dev env, the
class will be initialized just fine.. But when i initialize the class
in prod env, i get an error saying:


[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP
Catchable fatal error:  Argument 1 passed to
Swift_Mime_SimpleMessage::__construct() must be an instance of
Swift_Mime_HeaderSet, none given in /var/www/atk_reg/vendor/
swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php on line 30
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP Stack
trace:
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   1.
{main}() /var/www/atk_reg/web/app.php:0
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   2.
Symfony\\Component\\HttpKernel\\Kernel->handle() /var/www/atk_reg/web/
app.php:12
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   3.
Symfony\\Bundle\\FrameworkBundle\\HttpKernel->handle() /var/www/
atk_reg/app/bootstrap.php.cache:587
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   4.
Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/atk_reg/
vendor/symfony/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php:35
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   5.
Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/
atk_reg/app/bootstrap.php.cache:400
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   6.
call_user_func_array() /var/www/atk_reg/app/bootstrap.php.cache:422
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   7. ATK
\\QuickpayBundle\\Controller\\DefaultController->checkoutAction() /var/
www/atk_reg/app/bootstrap.php.cache:422
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   8. ATK
\\QuickpayBundle\\Controller\\DefaultController->sendMail() /var/www/
atk_reg/src/ATK/QuickpayBundle/Controller/DefaultController.php:22
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP   9.
Swift_Message::newInstance() /var/www/atk_reg/src/ATK/QuickpayBundle/
Controller/DefaultController.php:260
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP  10.
Swift_Message->__construct() /var/www/atk_reg/vendor/swiftmailer/lib/
classes/Swift/Message.php:64
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP  11.
call_user_func_array() /var/www/atk_reg/vendor/swiftmailer/lib/classes/
Swift/Message.php:36
[Tue Apr 19 22:16:31 2011] [error] [client 188.176.90.210] PHP  12.
Swift_Mime_SimpleMessage->__construct() /var/www/atk_reg/vendor/
swiftmailer/lib/classes/Swift/Message.php:36


I can paste the code here, just for good practice:
  public function sendMail($user)
  {
$message = \Swift_Message::newInstance();
die('funny man');
  }


I have tried to find out what courses the problem, but i dont know.. i
have tried on 2 different servers, running symfony PR11.. PHP 5.3,
hope someone can help..

Best regards,
Michael Holm

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

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


[symfony-users] Symfony Simplepie Plugin

2011-04-19 Thread corneliusparkin
Hi

I hope someone can help me with this. I tried to install the Simplepie
1.2.1 plugin on Symfony 1.4.9, but when I try to install it as
specified on the URL below, I received the errors "below":

URL: http://www.symfony-project.org/plugins/amSimplePiePlugin

Install Trace:
c:\wamp\www\crothon>symfony plugin:install amSimplePiePlugin --force-
license
>> plugininstalling plugin "amSimplePiePlugin"
>> sfPearFrontendPlugin Attempting to discover channel 
>> "pear.symfony-project.com"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (803 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 803 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", 
>> alias
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel
>> sfPearFrontendPlugin "plugins.symfony-project.org"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
>> sfPearFrontendPlugin ...done: 639 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.symfony-project.org", 
>> alias
>> sfPearFrontendPlugin "symfony-plugins", adding to registry


  No release available for plugin "amSimplePiePlugin"

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

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


[symfony-users] Re: The test "false" does not exist => 500 Internal Server Error - Twig_Error_Syntax

2011-04-19 Thread Ahmed Fawzy
How can i check this

On Apr 19, 3:21 pm, Luis Cordova  wrote:
> was getting similar problem
>
> make sure on test mode that you generate proxies on the /test folder too
>
> just a hint it could as well not be it
>
> On Tue, Apr 19, 2011 at 8:18 AM, Toni Van de Voorde  
> wrote:
>
>
>
>
>
>
>
> > Same problem when upgrading to PR12.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

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

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


[symfony-users] [Symfony2] Customize field in AdminBundle list view

2011-04-19 Thread Manne
Hi,

I'm trying to get the AdminBundle running with some custom templates
for the fields in a list of entities. In the documentation I've found
that I could override "configureListFields(ListMapper $list)" and use
something like:

$list->get('status')-
>setTemplate('MyBundle:Admin:mytemplate.html.twig');

to set the template for the field named "status".
But when I try this i get "Element 'status' does not exist".

Anyone with experience of doing this?


Regards,
Manne

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Using jroller admin interface..

2011-04-19 Thread philip obrien
I want to create a form that records events on equipment such as
failures, releases, loss of redundancy and downgraded performance for
a monitoring and control desk. Equipment belongs to systems and is
located at a site.. I want the form to filter equipment by site or
system, or both in order to cut down the list of equipment for users
(there are hundreds of pieces of equipment) and then allow users to
enter the details of the event...

Is there any plugin/function for this or will I need to roll my own ?
I'm only new to symfony and I can roll my own but I would prefer to be
able to modify the jroller setup to allow filtering on related
tables ..

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: The test "false" does not exist => 500 Internal Server Error - Twig_Error_Syntax

2011-04-19 Thread Ahmed Fawzy
How can I do that

On Apr 19, 2011 3:21 PM, "Luis Cordova"  wrote:

was getting similar problem

make sure on test mode that you generate proxies on the /test folder too

just a hint it could as well not be it


On Tue, Apr 19, 2011 at 8:18 AM, Toni Van de Voorde 
wrote:
> Same problem when...

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

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


[symfony-users] Re: Pre-execute under SF2

2011-04-19 Thread Szymek
You should use 
http://symfony.com/doc/2.0/book/internals/kernel.html#oncorecontroller-event

On 17 Kwi, 21:04, kassel  wrote:
> Hi All,
> At last i need not to repeat some methods in some diferents actions,
> and at las inyect data under the wiew?, like in SF 1.4 exists
> preExecute there is Something under SF2
>
> 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


[symfony-users] Bundle does not contain any mapped entities.

2011-04-19 Thread absdv
Hi,

I want to run this command in PR11 :
$ php app/console doctrine:generate:entities SdvSuiviBundle
And I get : Bundle SdvSuiviBundle does not contain any mapped
entities.

In config.yml, I have :
# Doctrine Configuration
doctrine:
dbal:
default_connection: default
connections:
default:
driver:   %database_driver%
host: %database_host%
dbname:   %database_name%
user: %database_user%
password: %database_password%

orm:
auto_generate_proxy_classes: %kernel.debug%
default_entity_manager: default
entity_managers:
default:
mappings:
SdvSuiviBundle: ~






In src/Sdv/SuiviBundle/Entity/Mail.php, I have this :

createdAt = new \DateTime();
$this->updatedAt = new \DateTime();
}

}



Please, help me. I'm begenning with Symfony 2. It's a huge step for me
coming from Symfony 1.0.x

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] R: Symfony 1.4 cache.yml

2011-04-19 Thread ftassi
To enable caching you have to set 

  .settings:
cache: true

in settings.yml

and 

default:
  enabled: false

in cache.yml (in yout application or module config dir)

What's in your settings.yml ? and in cache.yml  ?
try posting your configuration files (use pastbin or gist.github.com)

-- 
Francesco Tassi
http://about.me/ftassi


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

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


[symfony-users] Symfony 1.4 cache.yml

2011-04-19 Thread codecowboy
If I have cache set to true in settings.yml (global level, production
environmentl), should I expect my cache/prod/templates to fill up? It
is empty after browsing a few pages (obviously via index.php - using
the production urls). Symfony version 1.4.

I have tried setting with_layout to true

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


[symfony-users] Aw: Re: basic form validation

2011-04-19 Thread Conrad
i have a similar problem using annotations. I also setDataClass() to point 
to the model file, but the annotations are ignored completely in the FOS new 
user form... (although annotions:true is set in the configs)...

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: [Symfony2] PR11 Problem loading app_dev.php

2011-04-19 Thread Jordi Boggiano
On 19.04.2011 15:49, iturri.cf wrote:
> Thanks! I changed the dev.log permissions and it worked!
> 
> Anyway I'm still wondering, how the *. log files were created  without
> write permission?
> If the files dev.log prod.log and had the same permissions, why did it
> work in production environment?

The problem, I suspect, is that you used the app/console stuff and it
created the log file in dev mode with your user, and then apache
couldn't write in it.

Someone still needs to do a good writeup on how to get that working well
reliably on all systems.

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Validation propagating to related entities in Symfony2

2011-04-19 Thread JF Simon
Hi guys,

Totaly agree with Dennis ... this "over-validation" appeared to me like an 
error at the first time (that's why I'm here).
In my case, the "over-validated" object has a "@assert:Validate" on a 
foreign key ... as my foreign key is not automatuically hydrated, I get a 
systematic error!!!
I don't think there is any argument in favor of this validation.

Thanks for reading.
++

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] The test "false" does not exist => 500 Internal Server Error - Twig_Error_Syntax

2011-04-19 Thread Jordi Boggiano
On 19.04.2011 15:10, Toni Van de Voorde wrote:
> Hello All,
> 
> I upgraded my symfony2 application from PR5 to PR11. Everything went
> smoothly, because my web app works fine when launching through
> production environment.
> 
> But when I launch my app through dev environment (calling app_dev.php)
> my page renders but it adds an exception below it.

It's been fixed in
https://github.com/symfony/symfony/commit/06c331d04916bdf37edcbfdab2ef8cb05742a010

Not sure if Fabien plans a new PR to fix this or if you'll have to wait
for next week (or update your vendors by hand)

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

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

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


[symfony-users] Re: [Symfony2] PR11 Problem loading app_dev.php

2011-04-19 Thread iturri.cf
Thanks! I changed the dev.log permissions and it worked!

Anyway I'm still wondering, how the *. log files were created  without
write permission?
If the files dev.log prod.log and had the same permissions, why did it
work in production environment?

On 19 abr, 06:35, Jordi Boggiano  wrote:
> On 19.04.2011 03:39, iturri.cf wrote:
>
>
>
> > Hi, I installed Symfony 2 and when I try to 
> > accesshttp://localhost/sf2/web/app_dev.php
> > get the following error:
>
> > Fatal error: Uncaught exception 'UnexpectedValueException' with
> > message 'The stream could not be opened, "/var/www/sf2/app/logs/
> > dev.log" may be an invalid url.' in /var/www/sf2/app/cache/dev/
> > classes-36836.php on line 3535 UnexpectedValueException: The stream
> > could not be opened, "/var/www/sf2/app/logs/dev.log" may be an invalid
> > url. in /var/www/sf2/app/cache/dev/classes-36836.php on line 3535 Call
> > Stack: 0.0313 643160 1. {main}() /var/www/sf2/web/app_dev.php:0 0.1259
> > 2269312 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/sf2/
> > web/app_dev.php:19 1.2572 6654344 3. Symfony\Bundle\FrameworkBundle
> > \HttpKernel->handle() /var/www/sf2/app/bootstrap.php.cache:587
>
> > I'm using Ubuntu 4.10 with PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch,
> > Apache/2.2.14, APC 3.1.3p1, Intl 1.0.3, ICU version 4.2.1 and Xdebug
> > 2.1.0 .
>
> > I think it's a problem with the assetic bundle, I checked the code
> > from github (config.yml, config_dev.yml, routing.yml and
> > routing_dev.yml) and everything is fine. Someone could help me with
> > this?
> > If I try to access fromhttp://localhost/sf2/web/app.phpit works fine.
>
> Is your /var/www/sf2/app/logs/ directory writable? If so, do you have a
> file called dev.log in it that would not be writable?
>
> And when I say writable I mean writable by the apache process.
>
> Cheers
>
> --
> Jordi Boggiano
> @seldaek ::http://seld.be/

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

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


[symfony-users] Re: Case problem with doctrine2, symfony2 and postgresql entities

2011-04-19 Thread umpirsky
Solved 
http://dev.umpirsky.com/soap-server-and-test-client-with-zend_soap-symfony2-doctrine2-and-postgresql/

On 7 апр, 15:06, cgb  wrote:
> replace "main" to "public"
>
> On 6 abr, 19:44, umpirsky  wrote:
>
>
>
>
>
>
>
> > Hi.
>
> > I have a problem with doctrine2 in symfony2 app with postgres
> > database.
>
> > I get error:
>
> >     SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "main" does
> > not exist
>
> > Problem is that my schema is Main not main. When I rename it, similar
> > thing happends for table relation:
>
> >     SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
> > "main.brand_brandid_seq" does not exist
>
> > Problem is case sensitivity and I guess maybe it have something to do
> > with quoting or some doctrine configuration.
>
> > Entity:
>
> >     namespace GateSecure\ResellerApiBundle\Entity;
>
> >     /**
> >      * GateSecure\ResellerApiBundle\Entity\Brand
> >      *
> >      * @orm:Table(name="Main.Brand")
> >      * @orm:Entity
> >      */
> >     class Brand
> >     {
> >         /**
> >          * @var integer $brandid
> >          *
> >          * @orm:Column(name="BrandId", type="integer", nullable=false)
> >          * @orm:Id
> >          * @orm:GeneratedValue(strategy="SEQUENCE")
> >          *
> > @orm:SequenceGenerator(sequenceName="Main.Brand_BrandId_seq",
> > allocationSize="1", initialValue="1")
> >          */
> >         private $brandid;
>
> >         /**
> >          * @var string $brandname
> >          *
> >          * @orm:Column(name="BrandName", type="string", length=32,
> > nullable=false)
> >          */
> >         private $brandname;
>
> >         /**
> >          * Set name.
> >          *
> >          * @param string $name
> >          */
> >         public function setName($name) {
> >             $this->brandname = $name;
> >         }
> >     }
>
> > Schema:
>
> >     SET search_path = "Main", pg_catalog;
>
> >     CREATE SEQUENCE "Brand_BrandId_seq"
> >         START WITH 2
> >         INCREMENT BY 1
> >         NO MAXVALUE
> >         NO MINVALUE
> >         CACHE 1;
>
> >     SET default_tablespace = '';
>
> >     SET default_with_oids = false;
>
> >     CREATE TABLE "Brand" (
> >         "BrandId" integer DEFAULT
> > nextval('"Brand_BrandId_seq"'::regclass) NOT NULL,
> >         "BrandName" character varying(32) NOT NULL
> >     );
>
> > Controller:
>
> >             $reseller = new \GateSecure\ResellerApiBundle\Entity
> > \Brand();
> >             $reseller->setName('Sasa');
>
> >             $em = $this->get('doctrine.orm.entity_manager');
> >             $em->persist($reseller);
> >             $em->flush();
>
> > Any idea?

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

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


Re: [symfony-users] Re: The test "false" does not exist => 500 Internal Server Error - Twig_Error_Syntax

2011-04-19 Thread Luis Cordova
was getting similar problem

make sure on test mode that you generate proxies on the /test folder too

just a hint it could as well not be it

On Tue, Apr 19, 2011 at 8:18 AM, Toni Van de Voorde  wrote:
> Same problem when upgrading to PR12.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

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

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


[symfony-users] Re: The test "false" does not exist => 500 Internal Server Error - Twig_Error_Syntax

2011-04-19 Thread Toni Van de Voorde
Same problem when upgrading to PR12.

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 propel:build-model - Giving Error

2011-04-19 Thread Gábor Fási
Make sure you have enabled the xslt php module and restarted apache.
On Apr 19, 2011 11:27 AM, "Kush"  wrote:
> Hi,
>
> We have installed apache friends xampp - 1.7.4 but we are getting the
> below error in build-model command
>
> C:\xampp\htdocs\workspace\sms>symfony propel:build-model
>>> propel Running "om" phing task
> [propel-om] Could not perform XLST transformation. Make sure PHP has
> been compiled/configured to support XSLT.
>>> autoload Resetting application autoloaders
>>> autoload Resetting CLI autoloader
>
> Thanks
>
> Kushagra
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, 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] Add additional column to many-to-many join table in Doctrine 2

2011-04-19 Thread Tim Nagel
To achieve this create a joining entity (UserGroup) and link it
between the User and Group entities with One to Many and Many to One.
It is no longer 'considered' a many to many according to doctrine, but
a 1:m:1.

User has many UserGroups
Group has many UserGroups

Then you can define what fields you want to use on the UserGroups
table. It complicates the way you need to access methods through the
relationship but will work if you plan it properly.


t

On Tue, Apr 19, 2011 at 21:53, symfonyMan  wrote:
> Hello,
>
> I think that the question is in the object :)
>
> i explain : a have 2 entities : user and groups that are associated
> with ManyToMany.
> It generate 3 tables in database : user, groups and
> user_groups(user_id, groups_id).
>
> my probleme is, I want to add a column in "user_groups" (type), I
> don't know how to do that with doctrine !!
>
> any ideas ??
>
> 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] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread Haris Fauzi
Well, you're getting close. At least now the CSS has been recognised, I
suppose.
Look at the HTML source and see what you're missing, e.g. if there's any IMG
SRC tag then try to locate the image directly from the browser (
http://localhost:8080/images/logo.jpg,
http://localhost:8080/images/loader.gif,
http://localhost:8080/images/bg-header.jpg, etc). See if the browser can
retrieve those files and make it can.

Regards,
Haris

On 19 April 2011 22:29, voidpointer  wrote:

> Hmmm
>
> Haris, did that but no significant change. There is a blue/grey
> background colour but that is the only change.
>
> On Apr 19, 3:12 pm, voidpointer  wrote:
> > OK. Haris, will try that out. Thanks.
> >
> > Cheers - VP
> >
> > On Apr 19, 9:13 am, Haris Fauzi  wrote:
> >
> > > In day 4 there's a link to download the stylesheets and images used for
> > > Jobeet tutorial. Download and put them in the suggested directories.
> >
> > > Regards,
> > > Haris
> >
> > > On 18 April 2011 22:19, voidpointer 
> wrote:
> >
> > > > Moi,
> >
> > > > I am trying to work through the jobeet tutorial. I have got to day 3
> > > > and try to use the url posted in the title.
> >
> > > > The layout is rubbish, there are no images etc. Here is a snippet
> from
> > > > the top of that page:
> >
> > > >  "http://
> > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > > http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> > > >  
> > > >
> > > >
> > > >
> > > >
> > > >  

[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer
Hmmm

Haris, did that but no significant change. There is a blue/grey
background colour but that is the only change.

On Apr 19, 3:12 pm, voidpointer  wrote:
> OK. Haris, will try that out. Thanks.
>
> Cheers - VP
>
> On Apr 19, 9:13 am, Haris Fauzi  wrote:
>
> > In day 4 there's a link to download the stylesheets and images used for
> > Jobeet tutorial. Download and put them in the suggested directories.
>
> > Regards,
> > Haris
>
> > On 18 April 2011 22:19, voidpointer  wrote:
>
> > > Moi,
>
> > > I am trying to work through the jobeet tutorial. I have got to day 3
> > > and try to use the url posted in the title.
>
> > > The layout is rubbish, there are no images etc. Here is a snippet from
> > > the top of that page:
>
> > >  > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > > http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> > >  
> > >    
> > >        
> > >    
> > >    
> > >      

[symfony-users] [sf2] [FOS] Authenticate with email or username

2011-04-19 Thread Conrad
Hi all,
how can I modify the login process to allow the user to authenticate both 
with email address or username for the FOS UserBundle?
I already looked through the default configuration but didnt find it.. 

Cheers, Conrad

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

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


[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer
OK. Haris, will try that out. Thanks.

Cheers - VP

On Apr 19, 9:13 am, Haris Fauzi  wrote:
> In day 4 there's a link to download the stylesheets and images used for
> Jobeet tutorial. Download and put them in the suggested directories.
>
> Regards,
> Haris
>
> On 18 April 2011 22:19, voidpointer  wrote:
>
> > Moi,
>
> > I am trying to work through the jobeet tutorial. I have got to day 3
> > and try to use the url posted in the title.
>
> > The layout is rubbish, there are no images etc. Here is a snippet from
> > the top of that page:
>
> >  >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> >  
> >    
> >        
> >    
> >    
> >      

[symfony-users] Add additional column to many-to-many join table in Doctrine 2

2011-04-19 Thread symfonyMan
Hello,

I think that the question is in the object :)

i explain : a have 2 entities : user and groups that are associated
with ManyToMany.
It generate 3 tables in database : user, groups and
user_groups(user_id, groups_id).

my probleme is, I want to add a column in "user_groups" (type), I
don't know how to do that with doctrine !!

any ideas ??

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


[symfony-users] Insert date into the database

2011-04-19 Thread Sergio Perez
Hello,

 

Is there someone who tell me how can I insert new data in the DB.

 

For retrieving, I do:

 

$em = $this->get('doctrine.orm.entity_manager');

$data = $em->find('MyBackBundle:', $id);

if (!$data) {

throw new NotFoundHttpException("… not found.");

}

 

 

Other question:

 

After retrieving, the information is in $data. How can I bin
it to the form?

 

Thanks

 

 

Un saludo

 

Sergio Pérez

Informática ALBATRONIC, SL

Av. Blas Otero, 10 Local 1

18200 Maracena - Granada

Tlf: +34 958410343

Fax: +34 958421504

www.albatronic.com

 

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

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


[symfony-users] [Symfony2] Using the new FormFactory with the Dependency Injection Container

2011-04-19 Thread Don Pinkster
Hello,

To use my Controller as a Service I want to inject a form created by
the FormBuilder into my Controller.
I have it working, but I feel there must be a better way for achieving
this. Can someone point me in the right direction?

https://gist.github.com/7af01262e36c8931c2ef

Thanks in advance!

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

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


[symfony-users] Help needed for forms

2011-04-19 Thread Sergio Perez
Hello,

 

I’ve spent a lot of time trying with forms in Symfony2, but I don´t got
results.

 

I want to have the typical system which let me Edit, Create and Delete a
record from a database.

 

I’ve defined:

 

1)  MyBundle/Entity/articles.php:

 

namespace My\BackBundle\Entity;

 

/**

 * @orm:Entity

 */

class Articles

{

/**

 * @orm:GeneratedValue

 * @orm:Id

 * @orm:Column(type="integer")

 */

private $id;

 

/**

 * @orm:Column(type="integer")

 */

private $name;

 

….. getters and setters

 

2)  MyBundle/Resources/views/Articles/edit.html.twig

 

getData()}) }}">

{{ form_field(form) }}





 

3)  MyBundle/Controller/ArticlesController.php

 

public function editAction($id)

{

 

$form = ArticlesForm::create($this->get('form.context'),
'articles');

 

$request = $this->get('request');

$metodo=$request->getMethod();

 

switch ($metodo)

{

case 'GET':

$em = $this->get('doctrine.orm.entity_manager');

$article = $em->find('MyBackBundle:Articles, $id);

if (!$article) {

throw new NotFoundHttpException("Article not found.");

}

// I think, here I should bind the data retrieved to the
form. But How

return array('form'=>$form);

break;

 

case 'POST':

   // Here, I should get the submitted data, validate and save
to the database. How

break;

}

}

 

I’ve made a lot of change and I’m so tired.

 

Any answer will be welcome. Thanks

 

Un saludo

 

Sergio Pérez

Informática ALBATRONIC, SL

Av. Blas Otero, 10 Local 1

18200 Maracena - Granada

Tlf: +34 958410343

Fax: +34 958421504

www.albatronic.com

 

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

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


[symfony-users] SF2 Advanced routing

2011-04-19 Thread symfonyMan
Hello,

In my symfony2 project i will have many routing ( /login, /account, /
group, /group/create, /user/edit ..)

how to secure all routes in my project execpt 2 or 3 route Like ( /
welcome ...)

i can do that just with the firewalls ??

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


Re: [symfony-users] propel:build-model fail

2011-04-19 Thread Gabriel Filipiak
Probably your PHP hasn`t got XLST module or it`s not enabled.

2011/4/19 Kush 

> Hi Friends,
> I am using XAMPP and i have all the environmental variables defined
> accurately.
> I am getting this error on executing propel:build-model command.
>
> C:\xampp\htdocs\workspace\sms>symfony propel:build-model
> >> propelRunning "om" phing task
> [propel-om] Could not perform XLST transformation.  Make sure PHP has
> been compiled/configured to support XSLT.
> >> autoload  Resetting application autoloaders
> >> autoload  Resetting CLI autoloader
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, 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] [Symfony2] PR11 Problem loading app_dev.php

2011-04-19 Thread Jordi Boggiano
On 19.04.2011 03:39, iturri.cf wrote:
> Hi, I installed Symfony 2 and when I try to access 
> http://localhost/sf2/web/app_dev.php
> get the following error:
> 
> Fatal error: Uncaught exception 'UnexpectedValueException' with
> message 'The stream could not be opened, "/var/www/sf2/app/logs/
> dev.log" may be an invalid url.' in /var/www/sf2/app/cache/dev/
> classes-36836.php on line 3535 UnexpectedValueException: The stream
> could not be opened, "/var/www/sf2/app/logs/dev.log" may be an invalid
> url. in /var/www/sf2/app/cache/dev/classes-36836.php on line 3535 Call
> Stack: 0.0313 643160 1. {main}() /var/www/sf2/web/app_dev.php:0 0.1259
> 2269312 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/sf2/
> web/app_dev.php:19 1.2572 6654344 3. Symfony\Bundle\FrameworkBundle
> \HttpKernel->handle() /var/www/sf2/app/bootstrap.php.cache:587
> 
> I'm using Ubuntu 4.10 with PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch,
> Apache/2.2.14, APC 3.1.3p1, Intl 1.0.3, ICU version 4.2.1 and Xdebug
> 2.1.0 .
> 
> I think it's a problem with the assetic bundle, I checked the code
> from github (config.yml, config_dev.yml, routing.yml and
> routing_dev.yml) and everything is fine. Someone could help me with
> this?
> If I try to access from http://localhost/sf2/web/app.php it works fine.

Is your /var/www/sf2/app/logs/ directory writable? If so, do you have a
file called dev.log in it that would not be writable?

And when I say writable I mean writable by the apache process.

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread Haris Fauzi
In day 4 there's a link to download the stylesheets and images used for
Jobeet tutorial. Download and put them in the suggested directories.

Regards,
Haris

On 18 April 2011 22:19, voidpointer  wrote:

> Moi,
>
> I am trying to work through the jobeet tutorial. I have got to day 3
> and try to use the url posted in the title.
>
> The layout is rubbish, there are no images etc. Here is a snippet from
> the top of that page:
>
>  www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>  
>
>
>
>
>  

[symfony-users] PDF File of API

2011-04-19 Thread Kut
Hi!

Any know of where i can download pdf version of next links?

http://www.symfony-project.org/api/1_4/#
http://www.symfony-project.org/more-with-symfony/1_4/es/

Thanks for all!

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

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


[symfony-users] propel:build-model fail

2011-04-19 Thread Kush
Hi Friends,
I am using XAMPP and i have all the environmental variables defined
accurately.
I am getting this error on executing propel:build-model command.

C:\xampp\htdocs\workspace\sms>symfony propel:build-model
>> propelRunning "om" phing task
[propel-om] Could not perform XLST transformation.  Make sure PHP has
been compiled/configured to support XSLT.
>> autoload  Resetting application autoloaders
>> autoload  Resetting CLI autoloader

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

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


[symfony-users] symfony propel:build-model - Giving Error

2011-04-19 Thread Kush
Hi,

We have installed apache friends xampp - 1.7.4 but we are getting the
below error in build-model command

C:\xampp\htdocs\workspace\sms>symfony propel:build-model
>> propelRunning "om" phing task
[propel-om] Could not perform XLST transformation.  Make sure PHP has
been compiled/configured to support XSLT.
>> autoload  Resetting application autoloaders
>> autoload  Resetting CLI autoloader

Thanks

Kushagra

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

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] PR11 Problem loading app_dev.php

2011-04-19 Thread iturri.cf
Hi, I installed Symfony 2 and when I try to access 
http://localhost/sf2/web/app_dev.php
get the following error:

Fatal error: Uncaught exception 'UnexpectedValueException' with
message 'The stream could not be opened, "/var/www/sf2/app/logs/
dev.log" may be an invalid url.' in /var/www/sf2/app/cache/dev/
classes-36836.php on line 3535 UnexpectedValueException: The stream
could not be opened, "/var/www/sf2/app/logs/dev.log" may be an invalid
url. in /var/www/sf2/app/cache/dev/classes-36836.php on line 3535 Call
Stack: 0.0313 643160 1. {main}() /var/www/sf2/web/app_dev.php:0 0.1259
2269312 2. Symfony\Component\HttpKernel\Kernel->handle() /var/www/sf2/
web/app_dev.php:19 1.2572 6654344 3. Symfony\Bundle\FrameworkBundle
\HttpKernel->handle() /var/www/sf2/app/bootstrap.php.cache:587

I'm using Ubuntu 4.10 with PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch,
Apache/2.2.14, APC 3.1.3p1, Intl 1.0.3, ICU version 4.2.1 and Xdebug
2.1.0 .

I think it's a problem with the assetic bundle, I checked the code
from github (config.yml, config_dev.yml, routing.yml and
routing_dev.yml) and everything is fine. Someone could help me with
this?
If I try to access from http://localhost/sf2/web/app.php it works fine.

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

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


[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-19 Thread voidpointer


On Apr 19, 8:19 am, Sebastian Göttschkes
 wrote:
> Hi there,
>
> would you mind showing the apache vhost you added (I asume you're using
> apache)? I would guess the default directory isn't set correctly but the sf
> shortcut is.
>
> Regards,
> Sebastian

Moi Sebastian,

Sure, here it is and thanks for the reply.

# symfonyhost.conf
#
# Virtual host configuration for use in testing out apps developed
# using the symfony framework.
#
#
# # # Virtual host for symfony...
#

Listen localhost:8080
NameVirtualHost localhost:8080



ServerAdmin antikut...@yahoo.co.uk
ServerName sympfonyhost

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this
directory, but
# symbolic links and aliases may be used to point to other
locations.

DocumentRoot /home/aweaver/sfprojects/jobeet/web
DirectoryIndex index.php

# if not specified, the global error log is used

ErrorLog /home/aweaver/sfprojects/jobeet/log/jobeet.error_log
CustomLog /home/aweaver/sfprojects/jobeet/log/jobeet.access_log
combined

# don't loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts

UseCanonicalName Off

# configures the footer on server-generated documents

ServerSignature On


# Optionally, include *.conf files from /etc/apache2/conf.d/
#
# For example, to allow execution of PHP scripts:
#
#
# # # AWE - We want to avoid using the "auto prepend" php config so
#   let's override it here.
#
php_value auto_prepend_file none
#
# or, to include all configuration snippets added by packages:
#Include /etc/apache2/conf.d/*.conf


# ScriptAlias: This controls which directories contain server
scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications
and
# run by the server when requested rather than as documents sent
to the client.
# The same rules about trailing "/" apply to ScriptAlias
directives as to
# Alias.
#
#ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-
bin/"

# "/srv/www/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have one, and where ScriptAlias
points to.
#
#
#AllowOverride None
#Options +ExecCGI -Includes
#Order allow,deny
#Allow from all
#

#
# # # AWE - For symfony...
#
#
# This should be changed to whatever you set DocumentRoot to.
#

Options +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from All


#
# The /sf alias gives you access to images and javascript files
# needed to properly display default symfony pages and the web
# debug toolbar|Web Debug Toolbar.
#

Alias /sf /home/aweaver/sfprojects/jobeet/lib/SYMFONY/symfony/data/
web/sf

Options +FollowSymLinks +ExecCGI
AllowOverride All
Allow from All


# UserDir: The name of the directory that is appended onto a
user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in
APACHE_MODULES
# in /etc/sysconfig/apache2.
#

# Note that the name of the user directory ("public_html")
cannot simply be
# changed here, since it is a compile time setting. The apache
package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories
would be
# executed with the UID of the webserver.
UserDir public_html
# The actual configuration of the directory is in
# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
# You can, however, change the ~ if you find it awkward, by
mapping e.g.
# http://www.example.com/users/karl-heinz/ --> /home/karl-
heinz/public_html/
#AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/
public_html/$2



#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch
ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* ---
"Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.
Please see
# http://httpd.apache.org/docs-2.2/mod/core.html#options
# for more information.
##   Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed
in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
#   AllowOverride None

#
# Controls who can get stuff from this ser

[symfony-users] Re: validation of runtime generated object properties / dynamic forms

2011-04-19 Thread Holger
Hi Berhard,

I've managed to implement the callback. On validation the callback of
the domain object gets called which is fine. What is a bit unclear to
me is the following: Where do i put the validation constraints for
each field I want to validate? If I set them in the section
'properties' in the validation.yml I run into the same problem as
before as the validator complains, that the property doesn't exist in
my domainobject.

Having a look at the code (http://www.google.com/url?sa=D&q=https://
github.com/symfony/symfony/blob/form/src/Symfony/Component/Form/
Validator/DelegatingValidator.php) in the method validateForm I
recognize: $context->setCurrentProperty()

Do I have to do something like

$context->setCurrentProperty('');

where  is the name of the property as defined in the
validation.yml?

Any help would appreciated,
regards,
Holger

On 17 Apr., 20:53, Holger  wrote:
> Hi Bernhard,
>
> thanks for the quick reply! I'll have a look into it.
> Regards,
> Holger
>
> On 17 Apr., 18:09, Bernhard Schussek  wrote:
>
> > Hi Holger,
>
> > You can use the Callback constraint for this purpose. You can see an
> > example of its usage in 
> > DelegatingValidator::validateFormData():https://github.com/symfony/symfony/blob/form/src/Symfony/Component/Fo...
>
> > What is necessary for this approach:
> > - a common base class for your domain objects
> > - a callback method either in that base class or a static callback
> > method somewhere else
> > - a Callback constraint for this base class 
> > (seehttps://github.com/symfony/symfony/blob/form/src/Symfony/Component/Fo...
> > for an example - if you use a method in your base class, you can
> > simply provide the name of that method instead of the {Class, Method}
> > array)
>
> > 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