[symfony-users] HTTPS/SSL standard in 1.4

2010-10-15 Thread JamesD
Hello,

First off I'd like to commend everyone who has contributed to Symfony.
Amazing stuff. There seems to be one thing lacking in the
documentation for 1.4 though, and I haven't had too much success
figuring out what the standard is in Symfony for managing HTTPS. Is
the Symfony plugin the standard for working with secure pages? It's
odd that it isn't tagged with 1.4 nor mentioned in the docs if that's
the case.

http://www.symfony-project.org/plugins/sfSslRequirementPlugin

Anyways, I've found a few blog posts on the internet that attempt to
also address the issue, but I just find it surprising that the Symfony
documentation doesn't even talk about HTTPS. Here are a couple of
options I discovered:

http://www.saynotoflash.com/archives/symfony-1-2-redirect-specific-modules-and-actions-to-https-ssl/
http://usefulthink.com/2010-04/using-ssl-for-some-routes-in-symfony-1-3/

If someone could point me in the correct direction for the best
practice for HTTPS in symfony, that would be greatly 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


[symfony-users] Re: Symfony2 UnitTest error in Sandbox app

2010-10-15 Thread iMatt
Thanks for your help. Well your tip did make a difference - now I get
a different error :)

/home/www/sandbox# phpunit -c app/phpunit.xml
PHPUnit 3.5.0 by Sebastian Bergmann.

E

Time: 0 seconds, Memory: 5.75Mb

There was 1 error:

1) Application\HelloBundle\Tests\Controller
\HelloControllerTest::testIndex
InvalidArgumentException: The service test.client does not exist.

/mnt/hgfs/Apache/symfony-sandbox/src/vendor/symfony/src/Symfony/
Component/DependencyInjection/Container.php:197
/mnt/hgfs/Apache/symfony-sandbox/src/vendor/symfony/src/Symfony/
Component/DependencyInjection/Container.php:282
/mnt/hgfs/Apache/symfony-sandbox/src/vendor/symfony/src/Symfony/Bundle/
FrameworkBundle/Test/WebTestCase.php:42
/mnt/hgfs/Apache/symfony-sandbox/src/Application/HelloBundle/Tests/
Controller/HelloControllerTest.php:11

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.



The service test.client does not exist?

Any help appreciated.


On Oct 15, 1:02 am, gordonslondon jules.boussek...@gmail.com wrote:
 Hi,

 for this error you have to specify the configuration file.

 Normally you have a phpunit.xml or phpunit.xml.dist or something like
 this.
 Do this: phpunit --configuration=phpunit.xml.

 For me it's work, hope for you.

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

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


[symfony-users] Symfony2: doctrine:schema:create write No Metadata Classes to process. for annotations

2010-10-15 Thread VolCh
Hello

I try to create very simple entity and schema in sandbox, but can't do
it:

$ app/console init:bundle Application\SomeBundle
Initializing bundle SomeBundle in /home/volch/projects/sym2/src/
Application
$ app/console doctrine:generate:entity Application\SomeBundle User
--mapping-type=annotation --fields=name:string(255)
Generating entity for SomeBundle
   generating Application\Some\Entity\User
$ app/console doctrine:schema:create
No Metadata Classes to process.


Where is a mistake?

Generated Application\Some\Entity\User.php:
?php

namespace Application\SomeBundle\Entity;

/**
 * Application\SomeBundle\Entity\User
 *
 * @Table()
 * @Entity
 */
class User
{
/**
 * @var integer $id
 *
 * @Column(name=id, type=integer)
 * @Id
 * @GeneratedValue(strategy=AUTO)
 */
private $id;

/**
 * @var string $name
 *
 * @Column(name=name, type=string, length=255)
 */
private $name;

}

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 or Symfony 2?

2010-10-15 Thread Haulyn R. Jason
Hi,

I am new to Symfony, I compare the two version symfony1.4 and symfony2.0
prefiew, I didn't find a way to upgrade symfony1.4 project to 2.0. But the
official site says: 2.0 is not ready for production enviroment.

At the moment, our project is on the way. We want to use 2.0, but I think I
need some suggestion from symfony community.  Any suggestions are welcome,
Thanks.


-- 
Thanks!

http://www.haulynjason.net


Haulyn Jason

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Have as use a tooltip in the checkbox?

2010-10-15 Thread Gerda Graciela Rodrigues
Hi, good morning!

Have as use a tooltip in the checkbox?

to the fields type or sfWidgetFormInput or sfWidgetFormTextarea the tooltip
appears using this resource- widgetSchema- setHelp but to a checkbox does
not work.. Can anyone help me?

Tks!

Gerda Graciela

--Code
$this-widgetSchema-setHelp('resource','Enter here if course was made with
the resource itself ');
as appears by opening the source code of the page div class=form-linha
div class=form-rotulolabel for=resourceResource?/label/div
div class=form-campos select name=curso[recurso] id=course
_resource
option value=0Não/option option value=1Sim/option /select
span class=hintspan class=hint-pointer'Enter here if course was made
with the resource itself'./span/span
/div /div /div

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 or Symfony 2?

2010-10-15 Thread Gareth McCumskey
I guess the only way to answer this is .. depends. If you expect your
project to be ready to go live for production use within the next couple of
months, then you should use 1.4. Otherwise, if you expect the development
time to be longer, say into next year, and you don't mind fixing things that
may break as Symfony 2 matures closer to release, then go for Symfony 2.

On Thu, Oct 14, 2010 at 4:21 PM, Haulyn R. Jason saharab...@gmail.comwrote:

 Hi,

 I am new to Symfony, I compare the two version symfony1.4 and symfony2.0
 prefiew, I didn't find a way to upgrade symfony1.4 project to 2.0. But the
 official site says: 2.0 is not ready for production enviroment.

 At the moment, our project is on the way. We want to use 2.0, but I think I
 need some suggestion from symfony community.  Any suggestions are welcome,
 Thanks.


 --
 Thanks!

 http://www.haulynjason.net


 Haulyn Jason


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

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@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


[symfony-users] Re: Symfony2 UnitTest error in Sandbox app

2010-10-15 Thread gordonslondon
Your test client isn't loaded. You have to manually configure it.
you have to add this to your config-test file :

app.config:
test: true

for this i suppose you use the latest version.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 - You cannot serialize or unserialize PDO instance, when flushing an entity

2010-10-15 Thread gordonslondon
Hi,

I'm trying to do this in a test:

public function testEntity($em)
{
$entity = new Entity();
$em-persist($entity);
$em-flush();
}

The Entity has nothing special, i also use an activeEntity pattern,
with an EntityManager in a static property, but i think that static
properties aren't serialized, so all might be good.

I also use the run_isolated_test mode.

I have an error like this :

RuntimeException: PHP Fatal error:  Uncaught exception 'PDOException'
with message 'You cannot serialize or unserialize PDO instances' in -:
31
Stack trace:
#0 [internal function]: PDO-__sleep()
#1 -(31): serialize(Array)
#2 -(133): __phpunit_run_isolated_test()
#3 {main}

Next exception 'Exception' with message 'AppKernel::serialize() must
return a string or NULL' in -:31
Stack trace:
#0 -(0): serialize()
#1 -(133): __phpunit_run_isolated_test()
#2 {main}

Next exception 'Exception' with message 'Serialization of 'Closure' is
not allowed' in -:31
Stack trace:
#0 -(0): serialize()
#1 -(133): __phpunit_run_isolated_test()
#2 {main}

Next exception 'Exception' with message 'Serialization of 'Closure' is
not allowed' in -:31
Stack trace:
#0 -(0): serialize()
#1 -(133): __phpunit_run_isolated_test()
#2 {main}

Next exception 'Exception' with message 'Serialization of 'Closure' is
not allowed' in -:31
Stack trace:
#0 -(0): serialize()
#1 -(133): __phpunit_run_isolated_test()
#2 {main}

Next exception 'Exception' with message 'Symfony\Component\HttpF in -
on line 31


I don't understand at all what happened !
It's seems that the class: Symfony\Bundle\FrameworkBundle\Tests
\Command is responsible of this.
See line 31, there's a serialize function.


Maybe someone can help me ?

many 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


Re: [symfony-users] Looking for free hosting with ssh access for symfony project

2010-10-15 Thread JoJo
Thanks for your reply.

I will try these hosting this weekend.



2010/10/14 Macvek mac...@gmail.com

 You should look for university projects where they give free accounts
 for testing.

 But I've never heard of the professional hosting company with free ssh
 access. There are many security issues with shell access and
 administrators don't give such a service for free.

 AFTER GOOGLE SEARCH:

 I've found a few sites which offer ssh access, but never tested.
 http://shells.red-pill.eu/
 http://www.elitter.net/ - it look serious, Your account is enabled
 after administrator approveal.

 Regards,
 Maciej Aleksandrowicz

 2010/10/14 JoJo jojoyangd...@gmail.com:
  Hello guys,
 
 
  I developed a site web by symfony and I want to deploy it to a production
  environment (not for commercial purpose).
 
  As it is a simple site web, I look for a free hosting with ssh access but
 I
  found nothing (Although they said free but in fact always should be
 paying
  ).
 
  I would like to know if someone knows any free host:
 
  Espace about 100 Mo
  MySQL
  PHP
  SSH
 
  Many Many thanks.
 
  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.comsymfony-users%2bunsubscr...@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.comsymfony-users%2bunsubscr...@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: HTTPS/SSL standard in 1.4

2010-10-15 Thread webdev_aw_ucsb
Well I wouldn't say there's a standard regarding how to do SSL in
Symfony -- just as you have choices in ORM usage. In general there are
various plugins 1 could use.

I am using this plugin in Symfony 1.4 (the author said he'd bundle it
as an official plugin -- but I dont think he got around to it):

http://blog.tigregroup.com/programming/creating-an-ssl-redirect-filter-in-symfony/

cheers,
David

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: SF2 - You cannot serialize or unserialize PDO instance, when flushing an entity

2010-10-15 Thread gordonslondon
my fault, the error is:
- cascade persist can't be on the inversed site of a relation.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Countries and their Continents?

2010-10-15 Thread Felix E. Klee
In a Symfony 1.1 app [1], I need to check what continent a country
belongs to. Unfortunately, sfCultureInfo doesn't contain that
information.

What may be the simplest solution?

My idea, so far, is to feed the first two columns of the following list
in the MySQL database associated with the app:

  url:http://en.wikipedia.org/wiki/List_of_soveriegn_states_and_depende
  nt_territories_by_continent_(data_file)

- Felix

[1] Hopefull to be updated some time.

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] sfAdminDashPlugin is not showed properly

2010-10-15 Thread Arnold Ispan
Hello,

In your app/app_name/templates/layout.php you have to include:

?php include_component('sfAdminDash','header'); ?
?php echo $sf_content ?
?php include_partial('sfAdminDash/footer'); ?


On Fri, Oct 15, 2010 at 7:45 PM, Javier Garci tirengar...@gmail.com wrote:

  Hi,

 i have installed sfAdminDashPlugin but the interface is not like the Jobeet
 one (see pic). I just follow the steps:

 - Install sfAdminDashPlugin
 - plugin:publish-assets and cc.

 in the generator.yml i have added css: nothing so it is:

 generator:
  class: sfDoctrineGenerator
  param:
model_class:   sfGuardUser
theme: admin
non_verbose_templates: true
with_show: false
singular:  ~
plural:~
route_prefix:  sf_guard_user
with_doctrine_route:   true
actions_base_class:sfActions
css:   nothing

 Any idea?

 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.comsymfony-users%2bunsubscr...@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] HTTPS/SSL standard in 1.4

2010-10-15 Thread Georg
Actually it is in the 1.4 docs, see
http://www.symfony-project.org/gentle-introduction/1_4/en/06-Inside-the-Controller-Layer
Listing 6-33

I admit it's hard to find, it seems google does not index 1.4 docs :-(

Am 15.10.2010 02:07, schrieb JamesD:
 Hello,
 
 First off I'd like to commend everyone who has contributed to Symfony.
 Amazing stuff. There seems to be one thing lacking in the
 documentation for 1.4 though, and I haven't had too much success
 figuring out what the standard is in Symfony for managing HTTPS. Is
 the Symfony plugin the standard for working with secure pages? It's
 odd that it isn't tagged with 1.4 nor mentioned in the docs if that's
 the case.
 
 http://www.symfony-project.org/plugins/sfSslRequirementPlugin
 
 Anyways, I've found a few blog posts on the internet that attempt to
 also address the issue, but I just find it surprising that the Symfony
 documentation doesn't even talk about HTTPS. Here are a couple of
 options I discovered:
 
 http://www.saynotoflash.com/archives/symfony-1-2-redirect-specific-modules-and-actions-to-https-ssl/
 http://usefulthink.com/2010-04/using-ssl-for-some-routes-in-symfony-1-3/
 
 If someone could point me in the correct direction for the best
 practice for HTTPS in symfony, that would be greatly 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


[symfony-users] Re: sfAdminDashPlugin is not showed properly

2010-10-15 Thread Kevin
Also make sure the user is authenticated.

On Oct 15, 1:20 pm, Arnold Ispan ispanarn...@gmail.com wrote:
 Hello,

 In your app/app_name/templates/layout.php you have to include:

     ?php include_component('sfAdminDash','header'); ?
     ?php echo $sf_content ?
     ?php include_partial('sfAdminDash/footer'); ?

 On Fri, Oct 15, 2010 at 7:45 PM, Javier Garci tirengar...@gmail.com wrote:
   Hi,

  i have installed sfAdminDashPlugin but the interface is not like the Jobeet
  one (see pic). I just follow the steps:

  - Install sfAdminDashPlugin
  - plugin:publish-assets and cc.

  in the generator.yml i have added css: nothing so it is:

  generator:
   class: sfDoctrineGenerator
   param:
     model_class:           sfGuardUser
     theme:                 admin
     non_verbose_templates: true
     with_show:             false
     singular:              ~
     plural:                ~
     route_prefix:          sf_guard_user
     with_doctrine_route:   true
     actions_base_class:    sfActions
     css:                   nothing

  Any idea?

  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.comsymfony-users%2bunsubscr...@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