[symfony-users] what kind of errors should I expect upgrading from Symfony 1.1 to 1.2?

2009-04-21 Thread Lawrence Krubner


So, I had a working site on an old server, running Symfony 1.1. I've
moved the site to a new server, running Symfony 1.2. Now I get errors
like this:

Fatal error: Call to undefined method BasePeer::getmapbuilder() in /
home/lawrence/public_html/esociety/lib/model/om/BaseCommentPeer.php on
line 69

http://lawrence.sds5.com/esociety/web/test_dev.php/comment/index


Is that a problem because of the upgrade? What sort of problems should
I expect?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Something I don't understand with form default values

2009-04-21 Thread Lawrence Krubner

Which version of Symfony?

You should always be able to force a default value from the action.
Always. I've done this many times.



On Apr 20, 5:42 pm, Adrien Mogenet adrien.moge...@gmail.com wrote:
 As I tought it changed nothing...  :-/

 --
 Adrien

 On 20 avr, 23:28, FlyLM [ML] flylm...@gmail.com wrote:

  2009/4/20 Adrien Mogenet adrien.moge...@gmail.com

   Hi all,

   there is something - strange ? - that I don't understand.
   Let say I have a field updated_by within the class user.

   In the class form :

   public function configure()
   {
     ..
     $this-setDefault('updated_by', '42');
     ...
   }

  Try this :

  $this-widgetSchema-setDefault('updated_by', '42');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Something I don't understand with form default values

2009-04-21 Thread Adrien Mogenet

I don't know if I was clear or not... but I DON'T want force values in
the CLASS but in the FORM :-)

Thx anyway lol

--
Adrien

On 21 avr, 09:02, Lawrence Krubner lkrub...@geocities.com wrote:
 On Apr 21, 2:45 am, Adrien Mogenet adrien.moge...@gmail.com wrote:

  Symfony 1.2

  As I said in my first message, YES, it works when I put `setDefault`
  in the action. But when you call this method from the form class, it
  seems to not FORCE the value but just set it as a default value (ie:
  if no other value has been set)

  In my case, it would be very convenient to force this value in the
  action instead of setting it in the form class, that's why I'm looking
  for a tip to do that directly from the form class :-)

 So you want to force a value from the action? That seems easy enough.
 Below I set a default value for the date, but if you took away the if
 () statement, instead of a default it would be a forced value.

   public function executeUpdate($request)
   {
     $this-forward404Unless($request-isMethod('post'));

     $this-form = new NewNewsForm(NewNewsPeer::retrieveByPk($request-

 getParameter('id')));

     $submittedValuesArray = $request-getParameter('new_news');

     // 03-12-09 - I'm introducing two categories for now, front_page
     // and general. The first is for the weblog, the other is for
 any
     // other page that might be added to the site.
     $category = $request-getParameter('category');
     if ($category != ) $submittedValuesArray[category] =
 $category;

     /*
     * 03-09-09 - if I do this:
         *     print_r($submittedValuesArray);
         *     die( stopped execution );
         *
         * I get an array like this:
         *
         *     Array ( [title] = Sagisaws beat the Apaches [description] =
         *        A hard fought game, yesterday, down in Del Ray.
         *      [active] = 1 [id] = )
         *
         * This is not the correct way to do this, but I'm going to add the
 date here.
         * If id is not set, in other words, if we are just creating the entry
 for the
         * first time, then we add a date.
     */
         // 03-10-09 - we set the date 24 hours in the future
         //
         if ($submittedValuesArray[id] == ) $submittedValuesArray[date]
 = time() + 86400;

     $this-form-bind($submittedValuesArray);
     if ($this-form-isValid())
     {
       $new_news = $this-form-save();

       $this-redirect('newnews/edit?id='.$new_news-getId());
     }

     $this-setTemplate('edit');
   }

  On 21 avr, 08:11, Lawrence Krubner lkrub...@geocities.com wrote:

   Which version of Symfony?

   You should always be able to force a default value from the action.
   Always. I've done this many times.

   On Apr 20, 5:42 pm, Adrien Mogenet adrien.moge...@gmail.com wrote:

As I tought it changed nothing...  :-/

--
Adrien

On 20 avr, 23:28, FlyLM [ML] flylm...@gmail.com wrote:

 2009/4/20 Adrien Mogenet adrien.moge...@gmail.com

  Hi all,

  there is something - strange ? - that I don't understand.
  Let say I have a field updated_by within the class user.

  In the class form :

  public function configure()
  {
    ..
    $this-setDefault('updated_by', '42');
    ...
  }

 Try this :

 $this-widgetSchema-setDefault('updated_by', '42');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: myUser initialize, Doctrine strange issue.

2009-04-21 Thread FlyLM [ML]
I really not found any solution to do Doctrine requests after the
parent::initialize of my myUser.class.php. I don't understand what's
happening with the user setCulture method.

I bypassed the problem, but I would like to understand if I do something bad
or if it's a bug ?

Sincerely,
Fabien

2009/4/20 FlyLM [ML] flylm...@gmail.com

 Hi,

 I want to set the real culture of my user at initialization. I've a very
 strange issue with Doctrine and culture.

 The application have the default culture set to en.

 For the example, I put this in an action method :

 [...]
 $this-getUser-setCulture('fr');
 $this-test =  Doctrine::getTable('ProductType')
   -findAll();

 If I initialize my user class with the code below :

 [...]
 public function initialize()
 {
 parent::initialize();
 }

 The result for $test is ok, all localized columns are in 'french'


 If I do Doctrine requests after the initialization like this :

 public function initialize()
 {
 parent::initialize();

Doctrine::getTable(...)
-...;
 }

 The culture seems to be good, getUser-getCulture() prints 'fr' but all
 Doctrine requests use the defaut culture 'en' and all request result are
 badly localized.

 I don't understant what's wrong.

 Thank you for help.
 Fabien





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

2009-04-21 Thread Jonathan Wage
Hmm not any longer. I will try and put one back up soon.

Until then you can see screenshots/screencasts
http://www.sympalphp.org/preview/en

- Jon

On Tue, Apr 21, 2009 at 4:11 AM, cleve cleve...@gmail.com wrote:


 Hey Jonathan,

 Is there still a working demo for this some where?

 John

 On Apr 20, 7:52 pm, Pablo Godel pgo...@gmail.com wrote:
  I've been following the progress of this project, it looks really
  nice. I hope to try it out pretty soon with one of my projects.
 
  Thanks for sharing.
 
  Pablo
 
  On Mon, Apr 20, 2009 at 2:14 PM, Jonathan Wage jonw...@gmail.com
 wrote:
   Hi,
 
   Some of you have probably already heard a little bit about Sympal, but
 I'd
   like to formally introduce you to it now.
 
   Sympal is the product of dozens upon dozens of CMS type
   websites/applications built on top of symfony. As I built each new
 project
   with the same ideas, the implementation and structure of the system
 grew
   strong. So, I decided to take those same ideas I had built over and
 over and
   re-build it all again from scratch. The name Sympal was born through
 the
   idea of having a Drupal-like interface built on top of Symfony. This
 idea
   started as a small sfSympalPlugin and has grown to be a collection of
 Sympal
   plugins that extend the entire Symfony platform to give you dozens of
 tools
   at your finger tips to assist with rapidly building content based web
   applications.
 
   The development is still in the beta stages but the feature list for
 1.0 has
   pretty much been frozen. I am not in stability/bug fix mode and am beta
   testing by building sites and having people/companies try it on
 projects as
   well. You can help by doing the same :) and reporting any bugs you
   encounter, as well as features you'd like to see in the next version.
 Below
   are some links to get started with Sympal.
 
- Website -http://www.sympalphp.org/
- Trac -http://trac.jwage.com/sympal/
- Documentation -http://www.sympalphp.org/documentation/en/
- The Book -http://www.sympalphp.org/documentation/book/en
- Sympal Plugins -http://www.sympalphp.org/plugins
- Preview(screenshots and screencasts) -
  http://www.sympalphp.org/preview/en
- Features -http://www.sympalphp.org/features
 
   Thanks, Jon
 
   --
   Jonathan H. Wage
   Open Source Software Developer  Evangelist
  http://www.jwage.com
  http://www.doctrine-project.org
  http://www.symfony-project.org
 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

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

2009-04-21 Thread Eno

On Tue, 21 Apr 2009, Alexandru-Emil Lupu wrote:

 on linux OS, you have to check permissions of sf directory in
 /usr/share/php/data/

Or copy those files into web/js.



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: what kind of errors should I expect upgrading from Symfony 1.1 to 1.2?

2009-04-21 Thread Eno

On Mon, 20 Apr 2009, Lawrence Krubner wrote:

 Is that a problem because of the upgrade? What sort of problems should
 I expect?

Did you read through the upgrade guide?

http://www.symfony-project.org/installation/1_2/upgrade



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: user-getFlash() when the flash contain html tag

2009-04-21 Thread Dheeraj Kumar Aggarwal
Hi Ahmed,

At my side this is working

i have used in actions class
$msg = a href=\some-url\display msg/a;
and then set the flash message by
$this-getUser()-setFlash('msg', $msg);

then i am retrieving it in templates as
$sf_user-getFlash('msg');

and it is working fine.

On Tue, Apr 21, 2009 at 9:31 PM, Ahmed ghaliano2...@gmail.com wrote:


 Hi all ;
 i have a simple message Where i store a html message with br and a
 tag .
 When i try to display it (in the layout ) with echo $sf_user-getFlash
 ('msg') ,she not recognize any html tag an display them as a string .
 How can i correct this ? .
 Cordialy Ahmed .
 



-- 
Regards,
Dheeraj

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

2009-04-21 Thread Lawrence Krubner



On Apr 21, 4:57 am, Lee Bolding l...@leesbian.net wrote:
 On 21 Apr 2009, at 07:41, Lawrence Krubner wrote:



  500 | Internal Server Error | PropelException
  Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access
  denied for user 'lawrence'@'localhost' (using password: NO)]
  stack trace

 snip

  If I ssh to the server, I can use the current username and password to
  log into MySql from the command line, so I know that I've got the
  correct username and password for this database. And I've got the
  right database name.

 Is there a password? the error message states that you're trying to  
 connect without a password.

 I think that's your problem.

 FWIW, in future, I'd attempt one massive set of changes at a time -  
 seems you've changed your server architecture AND upgraded to a  
 different version of Symfony both at the same time. That's gonna make  
 your troubleshooting a world more painful - how do you know which of  
 those changes is causing specific errors?

Well, for many weeks I asked Can we please upgrade to Symfony 1.2?
and I was told There is no point upgrading now, since we are moving
to a new server very soon. We will install 1.2 on the new server.

So, I agree, not ideal, though I suppose an economist might argue that
this was optimal in terms of allocating scarce resources.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Why would I get a Template not set error message?

2009-04-21 Thread Lawrence Krubner

So, I've been having some troubles. We just moved a new site (we'd
barely started work on it, really) from a server that had been running
Symfony 1.1 to a new server running 1.2. As Lee Bolding said, moving
and upgrading at the same time guarantees some pain. But I've been
reading tutorials and forum posts and now it seems we've most of the
issues worked out.

But here is one that still puzzles me. The front page gives a
Template not set error:

http://lawrence.sds5.com/esociety/web/test_dev.php/

Other pages render:

http://lawrence.sds5.com/esociety/web/test_dev.php/comment/index

So this problem is just with the front page. Perhaps basic routing
stuff changed between version 1.1 and 1.2? This is the whole of my
routing.yml file:

# default rules
homepage:
  url:   /
  param: { module: dashboard, action: index }

default_symfony:
  url:   /symfony/:action/*
  param: { module: default }

default_index:
  url:   /:module
  param: { action: index }

default:
  url:   /:module/:action/*


This page was working on the old server, but now it is not.


In the actions.class.php of the dashboard module, I attempted to make
the template explicit:


  public function executeIndex($request)
  {
 $this-setTemplate('index');
  }

This has no effect.

Any ideas what I should look to fix?


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



[symfony-users] Output Escaping, how the hack can I get RAW Config data?

2009-04-21 Thread Sam

Fine $sf_data is my friend when it comes to raw data, but how can I
retrieve config values unescaped?

I have a call to sfConfig::get('sth') in a template since I need some
config value there, but i get it escaped!
So what can I do to get this value unescaped?
The call occurs in a partial

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Output Escaping, how the hack can I get RAW Config data?

2009-04-21 Thread Alistair Stead
I would suggest you assign the value returned by sfConfig to a
php variable as part of the action. If the value is a string you should then
be able to access it directly. If it is a complex data type you will need to
use ESC_RAW.
Regards

Alistair

2009/4/21 Sam endstad...@googlemail.com


 Fine $sf_data is my friend when it comes to raw data, but how can I
 retrieve config values unescaped?

 I have a call to sfConfig::get('sth') in a template since I need some
 config value there, but i get it escaped!
 So what can I do to get this value unescaped?
 The call occurs in a partial

 



-- 
Alistair Stead
Senior Interactive Developer

Mobile: +44 (0) 7788 107 333
Email: alistair.st...@designdisclosure.com
WWW: designdisclosure.com


The information contained in this email is confidential and may contain
proprietary information. It is meant solely for the intended
recipient/recipients. Access to this email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted in reliance on this, is prohibited and may be
unlawful. Please consider the environment before printing this e-mail.

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

2009-04-21 Thread JPhilip

I was wondering if anyone else can reproduce this error:
When I enter in a form the datetime 2004-04-04 2:00, sfValidatorDate
cleans it into 2004-04-04 3:00 so that the datetime saved is
incorrect.

I traced it back to sfValidatorDate using mktime or strtotime to
change the date to timestamp and date to change the timestamp back to
datetime.

If I run the PHP this code on the CLI:

?php
$ts = mktime(2, 0, 0, 4, 4, 2004);
echo timestamp for '2004-04-04 2:00:00' is $ts\n;


$dt = date('Y-m-d h:i:s', $ts);
echo Date for timestamp $ts is $dt;

I get the output:

timestamp for '2004-04-04 2:00:00' is 1081076400
Date for timestamp 1081076400 is 2004-04-04 03:00:00

I use PHP 5.2.5 on Windows XP or server 2003

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Why would I get a Template not set error message?

2009-04-21 Thread Lawrence Krubner



On Apr 21, 1:36 pm, Lawrence Krubner lkrub...@geocities.com wrote:
 So, I've been having some troubles. We just moved a new site (we'd
 barely started work on it, really) from a server that had been running
 Symfony 1.1 to a new server running 1.2. As Lee Bolding said, moving
 and upgrading at the same time guarantees some pain. But I've been
 reading tutorials and forum posts and now it seems we've most of the
 issues worked out.

 But here is one that still puzzles me. The front page gives a
 Template not set error:

 http://lawrence.sds5.com/esociety/web/test_dev.php/

 Other pages render:

 http://lawrence.sds5.com/esociety/web/test_dev.php/comment/index

 So this problem is just with the front page. Perhaps basic routing
 stuff changed between version 1.1 and 1.2? This is the whole of my
 routing.yml file:

 # default rules
 homepage:
   url:   /
   param: { module: dashboard, action: index }

 default_symfony:
   url:   /symfony/:action/*
   param: { module: default }

 default_index:
   url:   /:module
   param: { action: index }

 default:
   url:   /:module/:action/*

 This page was working on the old server, but now it is not.

 In the actions.class.php of the dashboard module, I attempted to make
 the template explicit:

   public function executeIndex($request)
   {
          $this-setTemplate('index');
   }

 This has no effect.

 Any ideas what I should look to fix?


Okay, I got this working now.

In fact, the whole site is working. We've successfully upgraded from
Symfony 1.1 to 1.2.

I'll say again, the upgrade is much harder than what I'd expect from a
small increment number upgrade.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner

When I go here:

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

I get this error:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression.

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression.

* Please contact the website owners to inform them of this
problem.


This started about 5 minutes ago. I've been on the plugins page all
day, not having any trouble.

Is anyone else having this problem?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] what is the best wiki plugin for Symfony 1.2?

2009-04-21 Thread Lawrence Krubner



I'm building a site using Symfony 1.2. The client has asked for a
simple wiki where staff can collect business information. Does anyone
recommend any of the wiki plugins?

I just looked over the plugin page. Seems like there are few wiki
plugins for 1.2.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner


Odd. I got that error as soon as I tried to log in.

I finally fixed it by deleting all cookies from the symfony-
project.org site.



On Apr 21, 5:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
 I can view the page fine

 On Wed, Apr 22, 2009 at 9:00 AM, Lawrence Krubner



 lkrub...@geocities.com wrote:

  When I go here:

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

  I get this error:

  Content Encoding Error

  The page you are trying to view cannot be shown because it uses an
  invalid or unsupported form of compression.

  The page you are trying to view cannot be shown because it uses an
  invalid or unsupported form of compression.

     * Please contact the website owners to inform them of this
  problem.

  This started about 5 minutes ago. I've been on the plugins page all
  day, not having any trouble.

  Is anyone else having this problem?

 --
 Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 universal is sfGuardPlugin really?

2009-04-21 Thread Jonathan Wage
You should make it so you're always working from a User object, and a User
will have a type, that can imply a certain group in the security system,
and it can also imply a relationship between User and that Type class. You
could also then setup some magic between the User and the type model to
share properties so that if the Admin user type model has a property named
some_column, then you could access it via $user-some_column, or
$user-getTypeRecord()-some_column.

http://www.doctrine-project.org/blog/using-behaviors-to-share-relationship-properties

User hasOne Type
UserType hasMany User as Users

based on the User-Type then User would then have relationships setup to the
type classes.

User hasOne AdminUser
AdminUser hasOne User

AdminUser contains the foreign key back to User.

The getTypeRecord() method would return the proper user type record based on
the type of the user.

- Jon

On Tue, Apr 21, 2009 at 7:41 PM, Richtermeister nex...@gmail.com wrote:


 Hey Jon,

 thanks for your reply.
 yeah, that sounds right as far as permissions are concerned. I'm
 pretty sure those are flexible enough to acomodate my needs.

 What I am more concerned with is where I would store the extra fields
 for each usertype..
 a customer would have different fields than say, and admin, or
 whatever other usertype I might think up later on..

 I'm thinking I could store those in separate models and access them
 via $user - getProfile() which would return the appropriate model,
 based on what usertype is currently logged in.. I'm just concerned
 that by doing that I would confine the areas each usertype would be
 able to move in, since some parts of the app would be expecting a
 customer object, and others an admin profile..
 Any thoughts on that?

 Thanks,
 Daniel



 On Apr 21, 3:35 pm, Jonathan Wage jonw...@gmail.com wrote:
  The user type you speak of is a group, and each group has a set of
  permissions. These permissions get turned in to credentials for the user.
  So, you create a list of permissions, locking down each individual piece
 of
  your functionality. Then you can create groups that give user access to
 some
  permissions. Granting them access to the functionality the permission is
  wrapped around.
 
  - Jon
 
 
 
  On Tue, Apr 21, 2009 at 5:16 PM, Richtermeister nex...@gmail.com
 wrote:
 
   Hi all,
 
   I am working on a somewhat large multi-site cms setup (which is a
   breeze with symfony's configurability), and I am wondering how much I
   should tie my user-administration around the sfGuardPlugin. I have had
   great experience with it when it comes to single usertypes (admins for
   example), but in my current project, I will have admins and clients
   (at least, possibly others).
   So, one way I consider is to use the plugin to just manage general
   userinfo (username  password) and access control (credentials), and
   depending on the usertype, link either a customer model or an admin
   model to the general userobject, via a getProfile() method or
   something..
 
   One caveat might be that ideally I'd like the administrators to be
   able to assume client roles, so they can look at things from the
   client perspective.. but it's probably enough to just auto-login as a
   client and keep the session namespaces different between the
   applications..
 
   Either way, that's where' I'm at. Any experience with multi-users
   sfGuardPlugin out there?
 
   Thanks for your time,
   and have a great day.
 
   Daniel
 
  --
  Jonathan H. Wage
  Open Source Software Developer 
 Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://
 www.symfony-project.org
 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Guidance on embedding AJAX-enabled DIV across multiple actions

2009-04-21 Thread iamde...@gmail.com


On 21 Apr 2009, at 23:40, blake blakebis...@gmail.com wrote:


 All,

 I am trying to create a FAQ browser that is embedded at the bottom of
 multiple pages of my site.  The browser has a next FAQ and previous
 FAQ that needs to refresh the FAQ content without refreshing the page
 - in other words, an AJAX refresh.

 How do I go about doing this in symfony?  I tried creating a component
 and placing it in the layout but when the user clicks the Next FAQ
 link, it of course wants to execute an action, not a component.  Can I
 embed two actions on one page?


Hi Blake, see
My other email off list for more details, but the function you need to  
google for is link_to_remote.

It does exactly what you need.

Hth

Derek.


 Much appreciated,
 blake

 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Eno

On Tue, 21 Apr 2009, Lawrence Krubner wrote:

 I finally fixed it by deleting all cookies from the symfony-
 project.org site.

I tried that. I still get the error upon login.



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: is anyone currently able to reach the Plugins page on Symfony-Project.org?

2009-04-21 Thread Lawrence Krubner



On Apr 21, 10:18 pm, Eno symb...@gmail.com wrote:
 On Tue, 21 Apr 2009, Lawrence Krubner wrote:
  I finally fixed it by deleting all cookies from the symfony-
  project.org site.

 I tried that. I still get the error upon login.


Yes, I'm unable to login. But at least, when I deleted all the
cookies, I was able to see the pages. Not login, but see the pages.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] i seem unable to get the settings right for security.yml

2009-04-21 Thread Lawrence Krubner


I've a website with 1 app and inside of that are 8 modules. One module
is open to the public, and the others are to be behind a password. I
seem unable to figure out how to say this in security.yml.

I realize I can set these things by creating a file inside of a config
of each module, but I thought there was a way to set these things from
the apps security.yml file?

For instance, if I want to lock down the whole module called weblog,
I tried this:

weblog:
  all:
is_secure: on


and this:

weblog:
is_secure: on



but neither worked.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: i seem unable to get the settings right for security.yml

2009-04-21 Thread Sid Bachtiar

In your app's security.yml:

default:
  is_secure: on

In your weblog module's security.yml:

default:
  is_secure: off

On Wed, Apr 22, 2009 at 2:23 PM, Lawrence Krubner
lkrub...@geocities.com wrote:


 I've a website with 1 app and inside of that are 8 modules. One module
 is open to the public, and the others are to be behind a password. I
 seem unable to figure out how to say this in security.yml.

 I realize I can set these things by creating a file inside of a config
 of each module, but I thought there was a way to set these things from
 the apps security.yml file?

 For instance, if I want to lock down the whole module called weblog,
 I tried this:

 weblog:
  all:
    is_secure: on


 and this:

 weblog:
    is_secure: on



 but neither worked.
 




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: i seem unable to get the settings right for security.yml

2009-04-21 Thread Sid Bachtiar

That would lock all modules in your app but weblog module

On Wed, Apr 22, 2009 at 2:37 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
 In your app's security.yml:

 default:
  is_secure: on

 In your weblog module's security.yml:

 default:
  is_secure: off

 On Wed, Apr 22, 2009 at 2:23 PM, Lawrence Krubner
 lkrub...@geocities.com wrote:


 I've a website with 1 app and inside of that are 8 modules. One module
 is open to the public, and the others are to be behind a password. I
 seem unable to figure out how to say this in security.yml.

 I realize I can set these things by creating a file inside of a config
 of each module, but I thought there was a way to set these things from
 the apps security.yml file?

 For instance, if I want to lock down the whole module called weblog,
 I tried this:

 weblog:
  all:
    is_secure: on


 and this:

 weblog:
    is_secure: on



 but neither worked.
 




 --
 Blue Horn Ltd - System Development
 http://bluehorn.co.nz




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Why would I get a Template not set error message?

2009-04-21 Thread Eno

On Tue, 21 Apr 2009, Lawrence Krubner wrote:

 Well, thanks, but followed the history is a lot to ask. There is
 already so much to learn, without going back a few years to get the
 full historical perspective.

Well, both 1.1 and 1.2 are less than a year old. A lot of the changes were 
blogged about on the symfony site before the actual releases...

I just feel if you're heavily invested in a particular technology, its up 
to you to follow it closely. Just my opinion.

 And after all, what is the point of using a framework? Clients, and
 web design firms, prefer frameworks for their long term stability.
 Otherwise we'd all simply be writing our own ad-hoc code.

Which is why a lot of people are still using 1.0 especially if they have 
stuff in production.

Ive been working on symfony sites for almost 3 years and we're still using 
1.0. But support for 1.0 officially ends later this year so Ive been 
working through the 1.0-1.1-1.2 documentation and testing our code. We 
have a redesign of a major site going live in the summer and it looks like 
it will be based on 1.2. So I see it as part of my job to be aware of what 
the changes are and what's possibly coming down the pipe.



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] what are the best tutorials on how to build a full public profile system for users, based off of sfGuard?

2009-04-21 Thread Lawrence Krubner


I've been asked to build, not quite an online social network, more
like a system where users can sign up and create public profile pages.
I'm starting with sfGuard as my base. Can anyone point me to some of
the better tutorials and blog posts on this subject?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] http://www.symfony-project.org/plugins/ Unavailable

2009-04-21 Thread Sherif

I'm unable to login to http://www.symfony-project.org/plugins/ (its
been like that for a few hours now). When you try to login, you get a
500 Server error. Just posting it here if anyone knows someone who
can fix this, that would be great
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 can i use a symfony helper in a js file

2009-04-21 Thread Ido

Could you elaborate ?
what helper ? where are you calling it from ?

10x

On Apr 17, 9:13 pm, Ahmed ghaliano2...@gmail.com wrote:
 Thanks for all;
 After many search i found that the best way is doing this with
 helper .
 @Alexandru-Emil Lupu : Why it's not recomended ?

 On 17 avr, 08:50, Alexandru-Emil Lupu gang.al...@gmail.com wrote:

  A thing that you might do is to have a Javascript module in wich you could
  render the needed Js functions. Ofcourse, this is not recomended...

  On Thu, Apr 16, 2009 at 7:45 PM, Richtermeister nex...@gmail.com wrote:

   Hey Ahmed,

   look into sfContext::getInstance()-getController()-genUrl
   ($internal_uri, $absolute); to generate the url. That's what's being
   called from within the url_for function, and it's perfectly fine to
   use that within your app code.

   Hope this helps,
   Daniel

   On Apr 16, 4:26 am, Ahmed ghaliano2...@gmail.com wrote:
Hi paolo ;
I have already done this before but my goal is to separate the all my
Javascript from templates
and use helper in this file .
Best regards Ahmed

 permuter

On 16 avr, 13:09, Paolo Mainardi paolomaina...@gmail.com wrote:

 Embed this code in a file template and will work :)

 On Thu, Apr 16, 2009 at 1:08 PM, Ahmed ghaliano2...@gmail.com wrote:

  Hi all :) ,
  I want to use a php function to generate url ( for ajax call) in a 
  js
  file like this :

  ?php Header(content-type: application/x-javascript); ?
  $(document).ready(function(){
         $.ajax({
           url: ?php echo url_for('company/step1')?,
           success: function(html){
             $(#step1_container).append(html);
           }
         });
  }) ;

  But in the generated code i have a logic error
  $(document).ready(function(){
  2 $.ajax({
  3 url: br /
  4bFatal error/b: Call to undefined function url_for() in b
  \www\web\js\company\home.js.php/b on line b4/bbr /

  How can i resolve this please ?

  [Updated on: Thu, 16 April 2009 12:39]

 --
 Paolo Mainardi

 CTO Twinbit
 Blog:http://www.paolomainardi.com


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