Re: [symfony-users] [Symfony2] .htaccess for SEO (force non www, remove index.php from url)

2010-12-23 Thread gordonslondon
thanks for your response,

all works perfectly with:

IfModule mod_rewrite.c
RewriteEngine On
RewriteBase / 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

# force url with no www
RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301]

# force url with no index.php
RewriteCond %{THE_REQUEST} index.php
RewriteRule ^index.php/(.*)$ http://%{HTTP_HOST}/$1 [R=301,NS]
/IfModule


BUT if i make a request to *www.example.com/mypage* i'm redirected to *
example.com/* (instead of example.com/mypage), so the problem is here:
# force url with no www
RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301]

many thaks

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] .htaccess for SEO (force non www, remove index.php from url)

2010-12-21 Thread gordonslondon
hi,
the default symfony2 .htaccess is:

IfModule mod_rewrite.c
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [QSA,L]
/IfModule

know i want two things:

   1. redirect *www.example.com* to *example.com* (force non-www or 
   vice-versa)
   2. redirect *example.com/index.php/mypage.html *to *
   example.com/mypage.html* (no duplicate content)

For the first one i have (it's work great but when i go to *
www.example.com/mypage* it redirects to* example.com/)*:

  RewriteCond %{HTTP_HOST} ^www\.[a-z-]+\.[a-z]{2,6} [NC]
  RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC]
  RewriteRule ^(.*)$ http://%1/$1 [R=301]

For the second one i have (it work only with *example.com/index.php *not *
example.com/index.php/mypage*) :

 RewriteCond %{THE_REQUEST} index.php
 RewriteRule ^(.*)index.php$ http://%{HTTP_HOST}/ [R=301,NS,L] 


Is anybody has any tips ? Something i might have forgotten ?
thanks in advance

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

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


[symfony-users] Re: How to use Doctrine Entity Provider for Symfony2 Security

2010-12-19 Thread gordonslondon
No idea for your error, but
acutally with the latest version (since yesterday) the security component 
doesn't seems to work correctly.

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

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

2010-12-19 Thread gordonslondon
Hi,

For the security component we have an alias like this to define the entity 
manager used to find the account:

service id=security.user.entity_manager alias=*
doctrine.orm.entity_manager* /

I know my question is easy (but i haven't found any solution yet), i would 
like to modify the entity manager to be another, so i tried:

service id=security.user.entity_manager alias=*
doctrine.orm.another_entity_manager* /

nothing work, so my question is:

*How can i change the entity manager used for this service ?*

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

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

2010-12-19 Thread gordonslondon
for the container here: 
http://components.symfony-project.org/dependency-injection/trunk/book/B-XML-Format
for symfony2 here: http://docs.symfony-reloaded.org/master/ 
http://docs.symfony-reloaded.org/master/%20

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Security Component: how to authenticate a user manually?

2010-11-22 Thread gordonslondon
Make a request to the login page (with credientials in POST
parameters) works for me. I didn't find any other way.

I'm also searching a good way to authenticate a user without any
request just a method ( -authenticate() );

Other things where there's a problem is to authenticate when unit-
testing:
http://groups.google.com/group/symfony-users/browse_frm/thread/b156be9eba9c53ae#

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Security Component: when unit-testing how to authenticate a client ?

2010-11-20 Thread gordonslondon
Hi,

- I have a client in a webTestCase:

$client = $this-createClient();

- And a firewall:

firewalls:
backend:
pattern:/admin/.*
security: true

- Now i want to unit test a controller in the backend:
$client-request('GET', '/admin/');

- Of course the page is redirect to the login one.

- I've tried to create a in-memory user but i can't authenticate it:
providers:
main:
password_encoder: sha1
entity: { class: Bundle:Account, property: email }
test:
users:
user: { password: test, roles: ROLE_ADMIN }


- I've also tried to make a request to the login page with the
client:
$client-request('POST', 'http://example.com/login', array(
'username' = 'user',
'password' = 'test'
));



= Question: What is the best way to authenticate a client ?

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Security Component : absolute path of redirections

2010-11-13 Thread gordonslondon
Hi,

My login page is on: http://www.example.com/login
My Account page is on: http://secure.example.com/admin/

The firewall rule is: /admin/*

When i'm not logged in and go to: http://secure.example.com/admin/
this redirects me to http://secure.example.com/login

QUESTION: how to redirect to http://www.example.com/login and not
http://secure.example.com/login.

I haven't found any options to redirect in these case, is there a
solution ?

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 2] Security: after login still not logged

2010-11-09 Thread gordonslondon
Hi,

After successfully login with the security component, i dump
$container-get('security.context')-getUser(); wich return null, in
the debug toolbar the user is still anon..

What i've checked:
 - Nothing interesting in logs.
 - There's no error message, all went fine.
 - The user is found and his password is encoded like described in the
documentation.
 - After login, i'm redirected to /index.php/ like a successful login
(but still non logged).

security.config:
providers:
main:
password_encoder: sha1
entity: { class: GordBundle:Account, property: email }
firewalls:
login_check: { pattern: /login_check, security: true,
anonymous: true, form-login: true }
backend:
pattern:/admin/.*
form_login: true
logout:  true
public:
pattern:/.*
security: false
form_login: true

Normally the user should be logged in, but not.
Is someone has any idea on why i can't login ?

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 - Cached service with variable parameter

2010-10-30 Thread gordonslondon
Hi,

I have a service which use $_SERVER['HTTP_HOST'], this service is
stored in the cached container. But when the host change the service
is still in the cache with the wrong $_SERVER['HTTP_HOST'].

Who can i do to tell to Symfony2 that i don't want this service in the
cache ?
Is it a known problem ?

ps: The simple fix i found for this is to disable cache, no really a
good idea.. i hope there's some solutions.

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

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


[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] Re: Symfony2 UnitTest error in Sandbox app

2010-10-14 Thread gordonslondon
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] SF2 : How to not store a service in the cache

2010-10-13 Thread gordonslondon
Hi, i work with Symfony 2.

I have a service which use the current subdomain as a constructor
parameter, this parameter is variable, so if we go to a subdomain and
after on another subdomain, the parameter is still on the first
subdomain.

I would like to now if there's a way to disable cache storage for a
specific service ?

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 : Add a property constraint to an object, who depends of another property of this object

2010-09-25 Thread gordonslondon
Hi, i work with Symfony2 PR3.

class MyObject {

protected $maxLimit = 200;
protected $value;

public static function loadValidatorMetadata(ClassMetadata
$metadata)
{
$maxLimit = '??'; // as the function is static we cannot do
$this-maxLimit

$metadata-addPropertyConstraint('value', new Constraints
\Max(array(
'limit' = $maxLimit
)));
}
}

How to create a property constraint depending of another property on
the same object ?
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] Symfony2 : Template FrameworkBundle:Exception:exception doesn't exists

2010-09-22 Thread gordonslondon
Hi,

I have the following error:

Fatal error: Uncaught exception 'InvalidArgumentException' with
message 'The template FrameworkBundle:Exception:exception does not
exist (renderer: php).' in src/Symfony/Component/HttpKernel/Debug/
ExceptionListener.php on line 84

I use the latest snapshot of PR3. I use the yml config of the branch
PR3 of the sandbox.
I don't know how to fix this. Maybe i have forgotten a parameter ?

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


[symfony-users] symfony2 - optional route parameter

2010-08-09 Thread gordonslondon
Hi,
I have a route define like this:

edit:
  pattern: /edit/:name
  defaults: { _controller: MyBundle:Product:edit }

and in the controller :

public function editAction($name)
{  }

know if we go to '/edit/', no route found.

i would like to be able to do this :
public function editAction($name = 'default') {}

so my question is : how 'name' parameter can be optional ?
many 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 - routing with subdomains

2010-07-23 Thread gordonslondon
ok thanks,

it works good for me,
just replace 'REMOTE_HOST' by 'HTTP_HOST' instead

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

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

2010-07-22 Thread gordonslondon
Hi,

I just see that symfony2 router doesn't use the host part of the uri.
exemple, both will be routed the same :

www.mysite.com/myaction
blog.mysite.com/myaction

is this possible actually to route subdomains in Sf2 ?
if no is there a solution now ?

many 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: Cannot create a schema with Doctrine: No Metadata Classes to process.

2010-07-20 Thread gordonslondon
ok,
to update all vendors easily, there is the following script (locate
your project folder and paste it in the terminal)
http://github.com/gordonslondon/symfony-sandbox/blob/master/update_vendor.sh

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Cannot create a schema with Doctrine: No Metadata Classes to process.

2010-07-19 Thread gordonslondon
2 weeks ago i had the same problem.

i solve this by updated the sandbox to PR3 (actually PR2), PR2
bundles's paths are not the same.
i don't know if it is the solution for you but try to rename all class
that have changed in the kernel.
(help to see changes: http://github.com/gordonslondon/symfony/commits/master)

or take a look at this file: Symfony\Bundle\DoctrineBundle
\DoctrineBundle
and try var_dump($this-container-
getParameter('doctrine.orm.entity_dirs')) in a controller to see wich
files are known by doctrine
maybe your bundles are not well registered in the Kernel and doctrine
can't find them

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

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


[symfony-users] Re: [symfony 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-16 Thread gordonslondon
thanks, the patch works great

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

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


[symfony-users] Re: Doctrine Commands not loaded

2010-07-15 Thread gordonslondon
problem found, have to update some files path after some namespace
changes in PR3

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 2] conflict: annotation validation on a Doctrine Entity using annotation mapping

2010-07-15 Thread gordonslondon
Hi,

has someone tried to set on a Doctrine Entity class both:
- annotation validation
- annotation to map fields

exemple:
/**
 * @Entity(repositoryClass=Application\MyBundle\Entities
\UserRepository)
 */
class User
{
  /**
   * @Column(type=integer)
   * @Validation({ @NotBlank, @MinLength(2) })
   */
   protected $age;
}

then error:
Class 'Symfony\Components\Validator\Constraints\Entity' not found
in 'src/vendor/doctrine/lib/vendor/doctrine-common/lib/Doctrine/Common/
Annotations/Parser.php' on line 299

is there a solution to use both ?

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] [Symfony 2] Doctrine Commands not loaded

2010-07-14 Thread gordonslondon
I use the latest versions of Symfony 2 (PR3).

I have all Doctrine's services loaded in the container
but there's no commands in the application console.

Any suggestion on how to show them ?

many 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 : Load files under Ressources/config to the DI container

2010-07-12 Thread gordonslondon
Thanks for your response Berbhard,


The solution who works for me is
web.config:
  validation: enabled
(see this post :
http://groups.google.com/group/symfony-devs/browse_thread/thread/8d9950044759d1a/f0012d4deb3044a2#f0012d4deb3044a2)

If you want to check what services could be enabled, have a look at:
Symfony/Bundle/FrameworkBundle/DependencyInjection/WebExtension.php



I have also another question:

I tried to run the HelloControllerTest, there's a function
createClient() who needs the service test.client,
the file of this service is under Symfony\Framework\Ressources\config
\test.xml

How can i load the test.client service to run my phpunit tests ?
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


[symfony-users] Re: Frameworks CSS

2010-07-12 Thread gordonslondon
Hi,

i have used 2 css frameworks:

GRID 960
benefits:
- very simple, for small projects
disadvantages:
- you only havee one template (960 px large)
- there is NO fluid template (no percentage only px), so if you want
to have a backend template completely fluid, you will have to hack the
css


YUI GRID CSS
benefits:
- build for big projects (like Yahoo Health), fully customizable
- zoom is availlable for all browsers
- no pixel for grids only em and percentage
disadvantages:
- you cannot grab only the CSS components, you have to take it in the
YUI library


Jquery UI isn't really a full css framework,
with full cms framework i talk about grids,
grids are very usefull for many reasons:
- improve productivity (less work)
- work one most browsers (save you a headache)
- is good for SEO (less HTML = more interesting content)
- can improve javascripts performence when finding the DOM (ex: $
('div') selector);


i just discovered Yui grid css so i might have forgotten some great
features,
i think the best choice between both is YUI GRID CSS framework for his
complementarity

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

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

2010-07-12 Thread gordonslondon
YAML framework is really great !
the documentation is awesome

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

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 : Load files under Ressources/config to the DI container

2010-07-11 Thread gordonslondon
Hi everybody,

There's a Ressources directory: Symfony/Bundle/FrameworkBundle/
Ressources/Config
who contains many files (debug, templating, validator, etc ..)

I would like to know what is the easiest way, to load a service to the
Container ?

i tried to load the ValidatorService,
add this to my config file, but it doesn't work,
web.config:
   validator: true


Please can someone help me to load a service to the DI container
many 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