[symfony-users] Functionality wanted in the URL helper or routing system.

2010-03-03 Thread a...@speedypin.com
Hi, I don't know about 1.4 or 2.0 but in 1.2 Symfony I could not
specify to print my URL over https easily as one of the URL helpr
options or to say in the routing yaml that 'this URL needs to be
rendered as https" when I am on a http page.

For example when rendering a login credentials form on the home page
that is requested over http. As credentials can't go over http, its
better the form's URL goes to https directly.

It is no good to do it as a filter or how some ssl plugins work using
security.yml as the request is submitted to a http URL and then
redirected to https due to the restrictions placed, this is not going
to satisfy the above example securely.

In the mean time, or due to my lack of awareness on how to do this in
the framework, I went with this code:


but it seems like this could easily be handled by routing or URL
helpers.


With Best Regards,
Alex Stoneham

P.s. Thanks for the recent advent calander, very nice, thanks for
keeping us posted of the release schedules, and thanks for all those
who covered Symfony Live 2010 for those who couldn’t attend.

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

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

2010-02-19 Thread a...@speedypin.com
Perhaps have a doctrine entity of 'userDedicatedDatabase'

with enough credentials and crap declared in the entity that you can
create/instanciate a database handle (like the ones in databases.yml)
from the values of entity.


the entity can also have business model methods to create the users
database if it doesn’t exist. (like when the user registered you can
create his db using APIs you implement on the userDedicatedDatabase or
whatever you choose to call it)


Could that work. So a table of database references, with the user id
as a foregn key in the table so you know which user the
userDedicatedDatabase is for.


On Feb 17, 11:41 am, Timo  wrote:
> Hello,
>
> i work at a software developement office in germany.
> i developed a software named "responsemanager" for our customers.
> it's got an online archive, data-export, statistics and so on (for our
> customers only, so no demo).
>
> For the new version of this software we want to use symfony as
> framework.
>
> Getting the authorization for the users done, wasn't that difficult.
> But now i'm standing in front of a whole new problem.
>
> Situation:
>     Every Customer has his own datatable in a  database (e.g called
> "dat_1", "dat_2" ) (different names!)
>     Every Table has some fields for our internal processes ( e.g
> export_date, export_user.. flag_value ).
>     Every Customer has also, Modules (Archiv, Export, Statistics, and
> so on).
>
> Example:
> Customer Timo:   -  has   - Modules: Archiv,Export -- Table:
> dat_10044.
> Customer Somebody -- has -- Modules: Statistics, Overview -- Tables:
> dat_xxx AND dat_22
>
> i realised this with  3 Tables,
>
> Users(username,pw ... so on), Tables (real_name_in_database, id, other
> fields ) and a join table called TableAccess ( user_id , table_id ).
>
> Getting the Relations for different users is no problem.
>
> But querying the REAL databases is.. because there is no generic
> "Model" for these Tables, and i do _not_ want to create a whole new
> model definition for each table that will be generated in the future.
>
> Is there a way to achieve my needs using doctrine or do i'll have to
> fallback to raw sql queries ( e.g SELECT * FROM dat_1 WHERE flag
> <> 999 )

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



[symfony-users] Re: sflive2010 Symfony Core Dev Q&A session

2010-02-18 Thread a...@speedypin.com
Thanks dude, your efforts are appreciated. Great vids.

On Feb 17, 5:50 am, Ben Haines  wrote:
> After Stefan Koopmanschap's talk about community on Saturday at
> sflive2010 I feel compelled to give something back ;)
>
> So here is the Symfony Core Dev Team in HD ;) Enjoy!
>
> http://www.vimeo.com/user1491208/videos
>
> Ben

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



[symfony-users] Re: FREE ticket to sflive2010

2010-02-12 Thread a...@speedypin.com
This would be sweet if I could muster up $1500 for the airfair and
another $500 for expenses...

On Feb 12, 2:46 am, Lee Bolding  wrote:
> Yes, that's right.
>
> Unfortunately, I'm snowed under at work, so can't go.
>
> If anybody would like my ticket instead give me a shout and you can have mine

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



[symfony-users] Re: Apostrophe 1.0 Stable Release: a mature CMS for Symfony!

2010-02-12 Thread a...@speedypin.com
2nds on the congrats...


Is this a CMS that can be intergrated into an existing symfony
project?

sfSympalPlugin and diemPlugin need to be selected at the beginning
point of starting a projectSucks for those (like me) who have been
developing for more than 1+ years on a current project an need a CMS.

Also would this work with ysfDimensions?

I don't expect these questions to be answered on the fact that you
give the world something great and they ask for more.  I really think
you should be congradulated with What you have done with
apostrophePlugin,... I will read the readme and so on to see if I can
answer these questions myself.


With Best Regards,
Alex Stoneham
(Speedypin LLC)


On Feb 12, 10:20 am, Nicolas Ippolito 
wrote:
> Hi,
>
> Congratulations!
>
> It's a wonderful project!
>
> Nico
>
> 2010/2/12 Tom Boutell 
>
> > We have labored long and hard to prepare for the 1.0 release of
> > Apostrophe. As we said before, it has been stable and in use for a
> > long time now, but we wanted to mark a moment in time with an official
> > release.
>
> > Probably the easiest way to get a feel for Apostrophe is to go to our
> > demo site and log in:
>
> >http://demo.apostrophenow.com/
>
> > The user name is “admin” and the password is “demo”. The site's
> > content resets at the top of the hour.
>
> > If you want to get your bearings before you you do that, head over to
> > the newly revamped Apostrophe site:
>
> >http://www.apostrophenow.com/
>
> > For the very interested, you should consider checking out our
> > extensive README which includes an Installation section, an Editor’s
> > guide, a Designer’s guide and a Developer’s guide. You can read the
> > current README conveniently here:
>
> >http://www.apostrophenow.com/home/readme
>
> > This is the symfony-users list so I'll stick to the highlights from a
> > developer's perspective:
>
> > * Robust content slots, ready-built for you. There are rich text,
> > image, slideshow, video, button, RSS/Atom feed, PDF and raw HTML slots
> > built in.  If you have used Apostrophe before, you know that you can
> > add a slot on a page, choose what you want to place and then reorder
> > it. New custom slots can also be made for any project.
>
> > * Areas. Areas allow vertical columns of slots to be added in any
> > order by any editor of the site. This allows users to compose good-
> > looking content without resorting to layout-busting HTML pasting.
>
> > * Slot variants. Sometimes you want to let users pick between
> > variations on a common slot without using raw HTML or PHP. For
> > instance, what if you wanted to make the background color of a some
> > text slots yellow, and some white? In the past that would have
> > required two slots. Now, it can just be a selectable variantof the
> > same text slot. We really sweated the details on making sure the
> > option control was contextual. We hope you appreciate the effort.
>
> > * Engines. Sometimes you want to add content that spans more than one
> > page. In Apostrophe you can graft an entire Symfony module into the
> > CMS page tree at any point. And you can graft the same module at
> > multiple locations, distinguishing between them and providing
> > customized behavior if you wish. We already do this for our media
> > browser right out of the box so you can see how it works.
>
> > * A task to help you generate new custom slots:
>
> > ./symfony apostrophe:generate-slot-type
>
> > This task will add a new slot type to your site, scaffolding the
> > module, the form and the model class.
>
> > * Extensive documentation, including a detailed and up-to-date
> > developer's guide as well as documentation for installers, editors and
> > front end designers.
>
> > Apostrophe 1.0 is a big achievement and we're excited about it. But it
> > is also just the beginning. We hope you have an opportunity to check
> > out Apostrophe. We would love to hear from you if you do.
>
> > A note to developers: stable branches of the apostrophePlugin and the
> > asandbox project are now available in svn. We are using a 1.3 branch
> > for these following the tradition of naming branches after the
> > earliest Symfony version with which they are still compatible.
>
> > 1.3 stable branch of the plugin:
>
> >http://svn.apostrophenow.org/plugins/apostrophePlugin/branches/1.3
>
> > 1.3 stable branch of the sandbox project:
>
> >http://svn.apostrophenow.org/sandboxes/asandbox/branches/1.3
>
> > In addition, we have of course released the new apostrophePlugin on
> > the Symfony site:
>
> >http://www.symfony-project.org/plugins/apostrophePlugin
>
> > So you can install apostrophePlugin with "plugin:install" (be sure to
> > read the README, though; it's often easier to start by copying the
> > sandbox to your own svn repository with our handy svnforeigncopy tool,
> > or just download a tarball of our sandbox).
>
> > Note to veteran pk plugin fans: we have deprecated the old pk plugins,
> > all of which were merged into apostrophePlugin. We rem

[symfony-users] Is there Symfony's Coding Standards available as templates in Netbeans 6.8

2010-02-11 Thread a...@speedypin.com
I have been seeing a lot of support for Symfony in Netbeans 6.8  (Two
things I am very happy with, together ahhh)

One thing that would be nice though is if I could get Netbeans to use
Symfony's coding standards.  (its pretty close, just a tweek here, and
a tweek there)  does anyone know how I could go about configuring
Netbeans to do so?

Also this is not a question, (the above text was) but some thought
sharing that I really want to be levereging Less and Zen-coding with
my Symfony projects in 2010. These are very relevant technologies my
role (I understand their value goes down relative to other peoples
roles)  but they should help optimize my application development.

http://www.symfony-project.org/plugins/sfLessPhpPlugin
http://lesscss.org/
http://code.google.com/p/zen-coding/
I encorage Netbeans Symfony developers to  get
http://zen-coding.googlecode.com/files/NetBeans.Zen.HTML.1.2.zip
there was a screencast online that went about installing and demoing
it. Its still not the full zen-coding feature set yet, but I am sure
it will get updates.



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



[symfony-users] Does the Doctrine package concept work?

2010-02-04 Thread a...@speedypin.com
http://www.doctrine-project.org/documentation/manual/1_0/hu/yaml-schema-files#features-examples:packages

Does this work? I tried about a year ago and couldnt get it to work,
but now I see it again and could really use this feature.

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



[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread a...@speedypin.com
I think he means not making a template but messing around with the
generator yaml.

On Feb 1, 10:50 am, Richtermeister  wrote:
> Hey there,
>
> I know that sounds like a good idea, but it really isn't.
> The right place to control access to form fields is in the form class
> itself, because think about it, the same form that your admin
> generator uses can be used / embedded elsewhere too, so your
> credentials restriction wouldn't apply there and you'd have a
> potential security risk. So, the way to do this is to inject the
> current user into the form. The generator gives your an easy way to do
> so in the GeneratorConfiguration class. Just override the
> getFormOptions() method and add the current user to the options.
>
> Inside the form you can then configure accordingly:
>
> if(($user = $this -> getOption("user")) && $user instanceof sfUser)
> {
>   if($user -> hasCredentials("xyz")
>   {
>     //add credential fields & validators here
>   }
>
> }
>
> Makes sense?
> Daniel
>
> On Feb 1, 9:00 am, l3ia-etu  wrote:
>
> > hi everyone,
>
> > i would like to customize an edit action: i would like to disallow the
> > modification of a field from user that has not a credential:
>
> > i can disallow the edition of a field for all users:
> > config:
> >   form:
> >     display:
> >       NONE:     [article_id]
> >       Editable: [author, content, created_at]
>
> > or disallow an action if the user doesn't have a credential:
> >     config:
> >       actions:
> >         edit:   { credentials: [arti] }
> >         delete: { credentials: [arti] }
>
> > but how to mix these 2 constraints ? (disallow a field modification
> > for a user that doesn't have a credential)
>
> > thanks.

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



[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread a...@speedypin.com
Is there a way to do this in the generator instead of the template?

I think the generator needs a good chapter on it. Does anyone know
where such documentation on the generator exists. this specific
question, plus others like how to embed nested/a set of doctrine
elements in the same tool while only showing the important fields
tghat are a part of the UI/UX of each entity instead of all the
status's and model managed fields of the entity.

On Feb 3, 3:34 am, l3ia-etu  wrote:
> that doesn't works:
>
> Fatal error: Can't use method return value in write context
>
> On 2 fév, 17:33, Tom Ptacnik  wrote:
>
> > Try
> > unset($this->validatorSchema['yourfild']);
>
> > On 2 ún, 10:52, l3ia-etu  wrote:
>
> > > yes, that's good !
>
> > > so, i will set the widget readonly:
>
> > >                         
> > > $this->widgetSchema['somme']->setAttribute('readonly','readonly');
>
> > > and just another question, how to remove the validator ?
> > > (to protect against hackers)
>
> > > (cfhttp://forum.symfony-project.org/index.php/m/85114/)
>
> > > On 1 fév, 19:50, Richtermeister  wrote:
>
> > > > Hey there,
>
> > > > I know that sounds like a good idea, but it really isn't.
> > > > The right place to control access to form fields is in the form class
> > > > itself, because think about it, the same form that your admin
> > > > generator uses can be used / embedded elsewhere too, so your
> > > > credentials restriction wouldn't apply there and you'd have a
> > > > potential security risk. So, the way to do this is to inject the
> > > > current user into the form. The generator gives your an easy way to do
> > > > so in the GeneratorConfiguration class. Just override the
> > > > getFormOptions() method and add the current user to the options.
>
> > > > Inside the form you can then configure accordingly:
>
> > > > if(($user = $this -> getOption("user")) && $user instanceof sfUser)
> > > > {
> > > >   if($user -> hasCredentials("xyz")
> > > >   {
> > > >     //add credential fields & validators here
> > > >   }
>
> > > > }
>
> > > > Makes sense?
> > > > Daniel
>
> > > > On Feb 1, 9:00 am, l3ia-etu  wrote:
>
> > > > > hi everyone,
>
> > > > > i would like to customize an edit action: i would like to disallow the
> > > > > modification of a field from user that has not a credential:
>
> > > > > i can disallow the edition of a field for all users:
> > > > > config:
> > > > >   form:
> > > > >     display:
> > > > >       NONE:     [article_id]
> > > > >       Editable: [author, content, created_at]
>
> > > > > or disallow an action if the user doesn't have a credential:
> > > > >     config:
> > > > >       actions:
> > > > >         edit:   { credentials: [arti] }
> > > > >         delete: { credentials: [arti] }
>
> > > > > but how to mix these 2 constraints ? (disallow a field modification
> > > > > for a user that doesn't have a credential)
>
> > > > > thanks.

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



[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-21 Thread a...@speedypin.com
I guess not enough where you reference Eno, because it’s a bit brief
there, and I went through that documentation before posting. Looking
at the documentation in hindsight, I still didn’t see the complete
answer to my question.


Anyway I gave 2 more follow up responses stating some other snippets
and so on.

Dont mean to sound rude in this reply, and I appreciate your response,
just wanted to let you know that I looked there before attempting to
use PDO based sessions.



With Best Regards,
Alex Stoneham


On Jan 20, 5:58 am, Eno  wrote:
> On Tue, 19 Jan 2010, a...@speedypin.com wrote:
> > I want to use a database managed session system as opposed to
> > filesystem based.
>
> > My question is :
> > What would symfony expect for the table structure of sessions table to
> > be, both columns and data types?
>
> As usual, this is documented:
>
> http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye...
>
> --

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



[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-19 Thread a...@speedypin.com
there is also this snippet
http://snippets.symfony-project.org/snippet/26

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




[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-19 Thread a...@speedypin.com
I started looking at the sql query logs from mysql, it looks like
sess_time is a Unix time stamp.




On Jan 19, 1:45 pm, "a...@speedypin.com"  wrote:
> I want to use a database managed session system as opposed to
> filesystem based.
>
> My question is :
> What would symfony expect for the table structure of sessions table to
> be, both columns and data types?
>
> So far I have found and done:
> a) add a factory.yml entry for each app for the storage configuration
> like so:
>  all:
>   storage:
>     class: sfPDOSessionStorage
>     param:
>       database: session
>       db_table: sessions      # Name of the table storing the sessions
>
> b) add an entry to database.yml for the session database handle
> all:
>   session:
>     class: sfPDODatabase
>     param:
>       dsn:      mysql:host=localhost;dbname=mydb
>       username: rick
>       password: rolled
>
> I created CREATE TABLE `sessions` (
>   `id` bigint(20) NOT NULL auto_increment,
>   `sess_id` varchar(64) NOT NULL,
>   `sess_data` longblob,
>   `sess_time` datetime default '-00-00 00:00:00',
>   PRIMARY KEY  (`id`)
> ) ENGINE=InnoDB DEFAULT CHARSET=latin1
>
> however the datetime is not being set, (the other fields are), its
> always defaulted.  Perhaps I should just drop that column, but i don't
> know if it is needed or not.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Symfony's Database Session's table structure.

2010-01-19 Thread a...@speedypin.com
I want to use a database managed session system as opposed to
filesystem based.

My question is :
What would symfony expect for the table structure of sessions table to
be, both columns and data types?



So far I have found and done:
a) add a factory.yml entry for each app for the storage configuration
like so:
 all:
  storage:
class: sfPDOSessionStorage
param:
  database: session
  db_table: sessions  # Name of the table storing the sessions

b) add an entry to database.yml for the session database handle
all:
  session:
class: sfPDODatabase
param:
  dsn:  mysql:host=localhost;dbname=mydb
  username: rick
  password: rolled

I created CREATE TABLE `sessions` (
  `id` bigint(20) NOT NULL auto_increment,
  `sess_id` varchar(64) NOT NULL,
  `sess_data` longblob,
  `sess_time` datetime default '-00-00 00:00:00',
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1

however the datetime is not being set, (the other fields are), its
always defaulted.  Perhaps I should just drop that column, but i don't
know if it is needed or not.
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread a...@speedypin.com
http://www.youtube.com/watch?v=a0qMe7Z3EYg&feature=player_embedded&aia=true

Dudes pretty cool, very funny, good info presented well/authentic.

I just wanted to share, hopefully all Symfony developers are upper
crust developers of the industry so may find this worth a view. (I
certainly like it and I am a Symfony developer)

This is a troll disclamer!: "Trolls don't tell me this isn't the right
google group to post this, as I already acknowledged that in my
subject, (give me a little freedom, )"

Sombody should pay this guy (just like somebody should be paying
Sensio Labs for $ymfony).

--

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




[symfony-users] Re: got strange issue in symfony sessions (urgent)

2009-11-17 Thread a...@speedypin.com

Look at the implementation of executeSignin  in your sfGuardAuth
Module and consider extending the single action or
sfGuardAuthActions

with your own implementation.

ensure that your destination after login is set the way you want it,
i.e. return the right views route from the action. (actions always
choose the view)

I believe you can put safe gaurds in on the action to not even see the
log in page if your logged in i.e. bump you to some other appropriate
destination:

if ($user->isAuthenticated()) {
return $this->redirect($this->logged_in_route);
}



On Nov 16, 8:27 pm, Dheeraj Kumar Aggarwal 
wrote:
> i have got a strange issue in my symfony project
>
> when the user navigate through the site, sometimes symfony forwards the user
> to login page.
> although the user is already logged in.
> and when user refreshes the screen after reaching on login screen
> it automatically goes into the site.
>
> the occurrence of the bug is also not predictable.
>
> we have to deploy this application on production server in 3-4 days.
>
> Any help ...
>
> thanks in advance
>
> --
> 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] How to host a Symfony project's web assets(images/uploads) on the s3

2009-11-08 Thread a...@speedypin.com

I heard in a recent Usergroup meeting that the S3 is good for keeping
web accessible assets that don't require the appserver (i.e. symfomy)
to serve, as a high load/traffic optimization technique. Do you think
the benefit is there? (Probably), and  has anyone successfully
partitioned the web/images to be on the S3? shall I just do this with
some directive in the httpd.conf in the appropriate server conf/
virtual server declaration?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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 - Database migration version

2009-10-27 Thread a...@speedypin.com

I made a task in the doctrine namespae called   :get-current-migration-
version
so i can do it from the command line:

lib/task/getCurrentMigrationVersionTask.class.php
addOptions(array(
  new sfCommandOption('application', null,
sfCommandOption::PARAMETER_REQUIRED, 'The application name'),
  new sfCommandOption('env', null,
sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),
  new sfCommandOption('connection', null,
sfCommandOption::PARAMETER_REQUIRED, 'The connection name',
'doctrine'),
));

$this->namespace= 'doctrine';
$this->name = 'get-current-migration-version';
$this->briefDescription = '';
$this->detailedDescription = <getDatabase($options
['connection'] ? $options['connection'] : null)->getConnection();

//Todo make the path  bassed on an argument passed in
$migration = new Doctrine_Migration('/Users/astoneham/dev/
sfprojects/voxcall/lib/migration');

echo "Your current migration version is: ".$migration-
>getCurrentVersion();
echo "\n";

  }
}

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

2009-09-18 Thread a...@speedypin.com

It may be the case that Jobeet is trying to help you learn Symfony, so
it is designed to touch on all the configurations, intentionally, so
one becomes aware of them.

On Sep 18, 7:45 am, bghost  wrote:
> I thought on all parameters: in the command line, and various
> configuration parameters in various configuration files.
>
> On Sep 18, 4:38 pm, Sid Ferreira  wrote:
>
> > You mean parameters to the command line?
>
> > On Fri, Sep 18, 2009 at 11:29, bghost  wrote:
>
> > > First, I would like to say that Symfony framework is not too bad,
> > > because I follow its development from the first version. But I think
> > > it became too complicated because it is evident exaggeration
> > > with the introduction of countless parameters and configuration
> > > files in order to automate all possible tasks. This entails that the
> > > programmer spends more time dealing with the Symfony framework
> > > than with the real problem.
>
> > > P.S. I did nothing special but just followed the Jobeet tutorial.
>
> > > WBR,
> > > Ghost3D
>
> > > On Sep 18, 4:24 pm, Sid Bachtiar  wrote:
> > > > > It is necessary to invest so much effort to do a relatively simple
> > > > > application.
>
> > > > If you're just learning Symfony, then yes of course you'll find it too
> > > > much effort. This is true with any other framework/technology.
>
> > > > But for those of us who have invested our time in Symfony, we find
> > > > great leverage in using Symfony.
>
> > > > So what is the relatively simple application you're trying to build?
>
> > > > On Sat, Sep 19, 2009 at 1:58 AM, bghost  wrote:
>
> > > > > It is necessary to invest so much effort to do a relatively simple
> > > > > application.
> > > > > Productivity and profitability of such work is very questionable.
>
> > > > > So, Symfony - Goodbye
>
> > > > --
> > > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> > --
> > Sidney G B Ferreira
> > Desenvolvedor Web
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: ysfDimensions and multiple dimension

2009-06-26 Thread a...@speedypin.com

Hmm I attempted it again,(from the 1-5 Steps laid out above and then
following the readme for extending views and controllers)  and it
looks like its working as expected now down to the tee.

Thanks for the plugin!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Status of PayPal plugin(s)

2009-06-25 Thread a...@speedypin.com

I think Simon Cast has a point,
a) Paypal is crucial, but Amazon Payments is building traction, (it’s
a solid affordable solution for many vendors)
b) Support reoccuring payments. [I am thinking through the adapter
pattern as each provider that supports it will have a different
implementation.

I would like to contribute to this project, [Just not as the lead, as
I don't have the dedication at the mo] But I could definitely
contribute as I have some good ecomm experience, and symfony really
needs this (as it can boast about so much other stuff at the moment)

Be sure to sign me up when this project gets kicked off.

On Jun 24, 5:48 pm, Marijn  wrote:
> On Jun 19, 7:43 am, Antoine Leclercq 
> wrote:
>
> > Hi back,
> > Alright, I'm back to Beirut and ready for real stuff. Symfony Live
> > conferences were awesome and there were lots of nice level talks.
>
> > @Marijn : Nice approach. We'll definitely go for wider solution in order to
> > provide a standard way to process transactions. I need to dig a bit more on
> > existing online payment solution before starting, hopefully next week. Let
> > me know when you publish your code. It could be a start.
>
> I just returned from my holiday and have a ton of things to do. I
> guess this will take a little longer but maybe I'll just put the
> current stuff online as is. Send me a message if you're interested in
> having a look.
>
>
>
> > @AJStoneham : That's exactly what we are trying to do. I think we all had
> > the same feeling when trying to find a decent online payment solution for
> > Symfony...
>
> > Alright, if we want to move to a solid, active and maintainable development,
> > I suggest we follow these practices :
> >  - Public Roadmap
> >  - Repository hosted properly (github.com seems a good solution for open
> > source projects)
> >  - Unit and functional tests OK on every commit (use sismo when available,
> > integrate doc-test?)
> >   - Updated documentation
>
> > I'll take some more documentation on online payment methods and existing
> > solutions certainly next week.
> > Feel free to share links or snippets of code here.
>
> > See you guys later,
>
> > Antoine
>
> > On Wed, Jun 10, 2009 at 7:39 PM, Marijn wrote:
>
> > > On Jun 10, 4:47 pm, AJStoneham  wrote:
> > > > PS, sounds like your using the wrong wheel for api requests. ;-)
>
> > > What wheel do you suggest?
>
> > > > On Jun 9, 3:25 pm, Marijn  wrote:
>
> > > > > P.s. it makes use of sfWebBrowserPlugin to prevent reinventing the
> > > > > wheel for api requests but it can be injected with any object that
> > > > > implements a sfWebBrowserInterface
>
> > > > > On Jun 10, 12:23 am, Marijn  wrote:
>
> > > > > > Hi everybody,
>
> > > > > > I currently have a private plugin that manages a dutch payment
> > > > > > service. The approach I took was quite similar, using interfaces 
> > > > > > that
> > > > > > can be implemented by any object to define transactions. I created a
> > > > > > global transaction manager that manages the process that can be
> > > > > > injected with any type of payment service adapter. This can be 
> > > > > > either
> > > > > > hooked into the event manager or by extending an abstract module.
> > > > > > Currently I also need to create an adapter for paypal payments but
> > > not
> > > > > > with the generic paypal structure but their paypro api (or whatever
> > > > > > its called).
>
> > > > > > I would love to share the code if we all agree it's structure is
> > > > > > decent enough:-)
>
> > > > > > Let me know.
>
> > > > > > Marijn
>
> > > > > > On Jun 9, 10:31 am, Antoine Leclercq 
> > > > > > wrote:
>
> > > > > > > Sorry I haven't replied earlier, I'm kind of busy during my trips
> > > to France.
> > > > > > > @Russen : Please join us on the plugin page so that we can start
> > > the real
> > > > > > > stuff next week.
>
> > > > > > > On Tue, Jun 2, 2009 at 8:45 PM, Russen  wrote:
>
> > > > > > > > I'd love to get into some development with the PayPal interface!
> > > I'm
> > > > > > > > putting aside some non-work development time this summer to work
> > > on a
> > > > > > > > hand-made soap site with a friend, so this would be some good
> > > > > > > > groundwork. If can't contribute, then at least let me know about
> > > > > > > > progress, and I'll help with some testing.
>
> > > > > > > > -Russen
>
> > > > > > > > On Jun 1, 12:25 pm, Antoine Leclercq 
> > > > > > > > wrote:
> > > > > > > > > Hi Lee, hi all,
> > > > > > > > > Great for the sfPaypalPlugin, I'll take the lead. Did you 
> > > > > > > > > start
> > > the
> > > > > > > > > development test oriented as you suggested on your previous
> > > email ? If
> > > > > > > > this
> > > > > > > > > is the case, even if it is just a start, I'll be glad to take
> > > it over. If
> > > > > > > > > not I'll start from scratch.
>
> > > > > > > > > About the sfGoogleCheckoutPlugin, I'll wait till we need it. I
> > > prefer to
> > > > > > > > > focus on a single solution right now but still take into
> > > account 

[symfony-users] ysfDimensions and multiple dimension

2009-06-23 Thread a...@speedypin.com

Hi All

Has anyone been able to use this with multiple dimensions extending
the view or controller?

I have installed ysfDimensionsPlugn from the 1.2 branch,

i)It requires apc, so I installed that.
ii) I then set up my dimensions and edited the project and app
bootstrap php class as mentioned in the readme.

iii)I then set a config variable and over wrote its value in the
app.yml config file of one  dimension then two dimensions together.
<-- So far so good.

Here's what I can't crack, is it a bug? -->  iv) I then tried
extending the controller and view, this is where I ran into trouble,
and after 4 hours of just trying to solve this, after it wouldn't work
as the readme stated and swapping directory names around, nesting
directories it seems I can't get this to work with multi dimensions
like step 3 and the config values, it only respected my language
dimension, (as I had a directory called 'en' inside my template, it
would pull from their if a view existed) It seems it only worked as
one dimension for views and controllers, [unless i was witnessing
default I18N handling or something]


Has anyone been able to use this with multiple dimensions extending
the view or controller,  typical dimensions (and what I want) is the
language (en, es, fr) and site (for white-labeling/multi-sites)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Multiple Exentds myUser requests.

2009-06-22 Thread a...@speedypin.com

Perhaps a  solid A.O.P. solution in the framework looks like what's
needed here.

http://en.wikipedia.org/wiki/Aspect-oriented_programming

So plugin developers get their functionality running without stepping
on eachothers feet.

So Does that mean Symfony needs or is lacking an AOP component? [Some
other frameworks like SEAM have them]


On Jun 18, 4:06 pm, Bernhard Schussek  wrote:
> A perfect example of why one should program against interfaces, not classes.
>
> I don't see how the observer pattern could help you.
>
> I see a solution though. You can make a composition of all the
> plugin's user classes in your myUser class (i.e. store them in
> properties). Then implement the __call() method and forward any
> unknown method call to the nested user object that has this method.
>
> This will only work though if none of the plugins actually require the
> myUser class to technically extend the plugin user classes (f.i. by
> use of instanceof or through type hints).
>
> Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Multiple Exentds myUser requests.

2009-06-18 Thread a...@speedypin.com

Doh!
That won't work, all the other classes extend something or other, and
that will thwart my god-awful crime of a composite class of all the
plugins that want to be myUsers base  class.

Is the observer pattern what I need here?

On Jun 18, 11:40 am, "a...@speedypin.com"  wrote:
> That sounds like an option Marjin, without looking to hairy. so myUser
> will extend MyCompositeUser and myCompositUser will be a union of all
> the class signatures of the 'Extend myUser with this' classes for each
> of the plugins I am interested.
>
> Providing no method signatures clash I may be able to get away with
> such an awful crime.
>
> WITH BEST REGARDS,
> ALEX STONEHAM
>
> On Jun 17, 5:00 pm, Marijn  wrote:
>
> > On Jun 18, 1:33 am, "a...@speedypin.com"  wrote:
>
> > > Hi,
>
> > > I want to use some lovely symfony plugins for my site. But the ones I
> > > want to use require you to extend you myUser class to the plugins user
> > > class equiv.
>
> > > For example, sfUserUser, and sympal and xsPasswordManagerPlugin among
> > > others want you to do this.
>
> > > Does that mean if I can't extend my user to be what the plugin wants ,
> > > the plugin is out the window. From the set of plugins I want to user,I
> > > have to mutualy exclusivly pick one as I can't extend more than one
> > > class and all the plugins want you to do this step.
>
> > > It seems like this is a limitation in the framework, and/or a lack of
> > > forsight when planning plugin implementations.
>
> > I think I agree with you on the last part. If these plugins used the
> > event system to listen for unknown methods the problem wouldn't
> > occur...
>
> > You could just have a look what methods they require you to add to
> > your user object and than add those manually to your user class.
>
> > Good luck.
>
> > - Marijn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Multiple Exentds myUser requests.

2009-06-18 Thread a...@speedypin.com

That sounds like an option Marjin, without looking to hairy. so myUser
will extend MyCompositeUser and myCompositUser will be a union of all
the class signatures of the 'Extend myUser with this' classes for each
of the plugins I am interested.

Providing no method signatures clash I may be able to get away with
such an awful crime.


WITH BEST REGARDS,
ALEX STONEHAM

On Jun 17, 5:00 pm, Marijn  wrote:
> On Jun 18, 1:33 am, "a...@speedypin.com"  wrote:
>
>
>
> > Hi,
>
> > I want to use some lovely symfony plugins for my site. But the ones I
> > want to use require you to extend you myUser class to the plugins user
> > class equiv.
>
> > For example, sfUserUser, and sympal and xsPasswordManagerPlugin among
> > others want you to do this.
>
> > Does that mean if I can't extend my user to be what the plugin wants ,
> > the plugin is out the window. From the set of plugins I want to user,I
> > have to mutualy exclusivly pick one as I can't extend more than one
> > class and all the plugins want you to do this step.
>
> > It seems like this is a limitation in the framework, and/or a lack of
> > forsight when planning plugin implementations.
>
> I think I agree with you on the last part. If these plugins used the
> event system to listen for unknown methods the problem wouldn't
> occur...
>
> You could just have a look what methods they require you to add to
> your user object and than add those manually to your user class.
>
> Good luck.
>
> - Marijn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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] Multiple Exentds myUser requests.

2009-06-17 Thread a...@speedypin.com

Hi,

I want to use some lovely symfony plugins for my site. But the ones I
want to use require you to extend you myUser class to the plugins user
class equiv.

For example, sfUserUser, and sympal and xsPasswordManagerPlugin among
others want you to do this.

Does that mean if I can't extend my user to be what the plugin wants ,
the plugin is out the window. From the set of plugins I want to user,I
have to mutualy exclusivly pick one as I can't extend more than one
class and all the plugins want you to do this step.

It seems like this is a limitation in the framework, and/or a lack of
forsight when planning plugin implementations.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, 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: Recommended distibution for Symfony

2009-02-12 Thread a...@speedypin.com

Before this thread is closed, has anyone tried Symfony on the EC2 ?
If so, could you let us know of your experience?

On Feb 12, 12:35 pm, Daniel  wrote:
> I finally found Zend Core;http://www.zend.com/en/products/core/
>
> and bought the silver package.
>
> I can really recommend it to everyone. Its free to download and
> install but the upgrades requires a support subscription.
>
> The program installs a full AMP + more if you want. Through the
> subscription program I get the new releases and updates. All is
> managered through a nice web-gui.
>
> Thanks for all responses.
>
> /D
>
> On Feb 12, 9:14 pm, Lee Bolding  wrote:
>
> > On 12 Feb 2009, at 19:59, Johannes Frandsen wrote:
>
> > > I have ben using Gentoo for 2 years now super stable and always  
> > > up to date with its php versions.
>
> > > Granted it may be a bit difficult as a distribution if you are use  
> > > to ubuntu, but I guess thats the price of being able to customize.
>
> > Agreed - it's great for a dev machine, but is it possible to run  
> > Gentoo on a production machine without a compiler?
>
> > Compilers on production machines is bad, kay.

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