[symfony-users] [Symfony2] in the wild

2011-04-06 Thread Richard D Shank
I just wanted to give everyone a heads up about a Symfony2 site that is 
in production, http://athletepath.com You can see some of the features 
of the site at http://athletepath.com/obra


The has actually been live since December, but we just launched a few 
new features and it moved into regional coverage. 
http://www.icontact-archive.com/EgL5tWDi-1X687UHv-EMrLbgErmQb-1a?w=1 
(scroll down to OBRA Cool)


Richard

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

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


Re: [symfony-users] Re: Introducing Vespolina - the new sf2 based e-commerce platform

2011-01-27 Thread Richard D Shank

On 01/26/2011 09:50 AM, Richtermeister wrote:

So, my solution has always been to build semi-custom E-Commerce
solutions based on symfony1 so far, and I'd be happy to contribute
what I've learned, and what code I've written. My general attitude
towards the project that you're trying to undertake is that I wouldn't
make it a product with a name, etc.. I would simply focus on
providing solid and flexible E-Commerce bundles that SF2 users can use
as they please, because as you already found, the people who aren't
happy with Magento and such packages, will probably have custom
requirements that you'll have a hard time to predict.
I think this is a situation where you want both elements to the 
project.  The top focus is reusablity of bundles, not just in Vespolina, 
but in any SF2 project.  A currency converter could be handy without the 
full ecommerce set.  A workflow bundle could be helpful in a 
non-commerce site.


The other side to the coin is have a quick and easy way for people to 
get started.  Look at wordpress and drupal.  They are huge, not because 
of the architecture of the project, but because its pretty easy to get 
started with those.  In fact, most shared hosting has a button to push 
to install those.  If it isn't easy to get started, the average person 
will pick another project.


I think you'll get more traction by having 3 or 4 typical setups that 
can be installed effortlessly, which cover 80% of the needs.  Then the 
beautiful thing will be the ability to customize, instead of the hacking 
that happens. One of the goals of the Vespolina project (not sure if its 
stated, but needs to be) is to have a system that can actually grow with 
your buisness.  Not just get you started then in a year or so have to go 
with a completely different system.

So, my 2 cents of what's needed are:

- a unified payment bundle that supports the large gateways and easy
addition of small ones for custom needs. the sfPaymentPlugin (http://
www.symfony-project.org/plugins/sfPaymentPlugin) seems to attempt
this, but it seems to have run out of steam.. that could and should be
revived unless they ran into insurmountable issues.
Agreed.  Actually, our philosophy is having a common interface, then you 
can implement it how ever you would like.  As far as a payment bundle 
goes, we will probably be using 
https://github.com/schmittjoh/CorePaymentBundle But as long as long as 
implement the interface, you can do it any way you would like.  Any 
implementation can be configured in to the system.

https://github.com/schmittjoh/CorePaymentBundle

- a shopping cart bundle that provides a cart of sufficient
flexibility to support most requirements one would encounter. I
believe the cart I wrote for http://skinmedica.com would be a good
starting point as it makes use of services and clever composition to
address the different areas a cart needs to cover (i.e. shipping
calculation /api lookup - even the complex sort your use-case
mentions, tax calculation / 3rd party tax api lookup, promotion
application, etc, etc). These are all services injected into my cart
that can be swapped out for custom requirements, and all is already
configured through the DI container.. so, that I would be happy to
contribute.

I'm very interested in seeing what you have done with this.


Thanks for all the feedback

Richard

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

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


Re: [symfony-users] Re: Introducing Vespolina - the new sf2 based e-commerce platform

2011-01-27 Thread Richard D Shank

On 01/26/2011 09:56 AM, Justen Doherty wrote:
I've made a start on a personal ecommerce project in symfony 1.4 - at 
the moment its just got categories/subcategories with a photo library 
in the backend.. but i've been coding this in my spare time at home, 
if anyone is interested i can make the code available via github :)

Yes, put it up, I'd love to see it.


i have also had a look at the monster that is magento and i think it 
has far too many features that arent necessary for my small shop and 
thats why i have decided to roll my own- not to take any shine away 
from magento, its a fantastic application and i wish i had the time to 
get my head around it :)


That is one of the goals of the project, have some ready to go setups 
that would probably be all you need for your smaller shop, but when the 
day comes you need more, you can do it, without resorting to hacking 
what you have.


Thanks for the response

Richard





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

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


Re: [symfony-users] Re: Introducing Vespolina - the new sf2 based e-commerce platform

2011-01-27 Thread Richard D Shank

On 01/27/2011 10:38 AM, Stéphane wrote:

Hello,

Good to see that !

Have you already thought about how you will modelize the product 
breakdown ?
We have spent some time thinking about it, but I'm finding the more we 
think about it, the more our ideas change :).  We don't have anything 
set in stone at this point.  Part of our reasoning for writing out use 
cases is to get a better idea of the range of requirement then come up 
with a solution that has the flexibility to work in that range.


I have started some times ago a dmCommercePlugin which is far far away 
from a finished plugin, but it's starting idea, for now is to let 
accredited users define product types, their characteristics, and so 
on, via backend dedicated interface.

I'll take some time to look at this.


What about this ? I don't know about about Magento, but is it 
something you guys wish to see in vespolina (nice name btw) ?
It is something we will absolutely have in Vespolina (glad you like the 
name).  We are using MongoDB in order to get around some of the 
nightmares that you have when you let someone define the types and 
characteristics of a product.


The product will actually be more than just a description of a good or 
service, it will actually have the ability to know its own workflow in 
the ecommerce process.  A digital download has a very different delivery 
method and inventory requirements than a hand crafted table and chairs 
or from selling seats for a sporting event or a pizza delivery 
service.   It could be possible to have 3 very different types of 
products in an order (an example could be a band where you might be 
purchasing an mp3, a DVD of their latest show and tickets for an 
upcoming show) and each product is handled in a very different way.   
The product has to know what it should do with itself so this can also 
be defined and of course there will be standard workflows set up for 
different product types


Thanks for the feedback

Richard

--
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][Best Practice]Model

2010-11-14 Thread Richard D Shank
There has been some discussion about where the best place is to put 
interfaces, base classes and models not requiring an ORM or ODM.


In the DoctrineUserBundle, these have be put in the Model folder.  I 
would like to propose using the Model folder for that purpose as a best 
practice.


Richard

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

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


Re: [symfony-users] [Symfony 2] General Questions

2010-11-05 Thread Richard D Shank
I would just suggest that you keep an eye on 
https://github.com/fabpot/symfony and use that to keep things updated.  
I would say update as often as possible.  I have found its easier to 
make incremental changes,plus, you get the added benefit of learning 
more about the internals of Symfony2.  If you aren't aware, 
http://symfony2bundles.org/ is the place to find bundles.  Right now, 
this is a great place to see pieces of code that are actually on live sites.


Another suggestion is to join up with the 
https://github.com/symfony-cmf/symfony-cmf There is plenty to do for the 
project and I'm betting you can find something that overlaps your 
project.  Many of the people involved are also making production sites.  
Its a safe way to learn SF2 since you have people reviewing your code.


Have fun and just keep in mind you are aiming for a moving target.  It 
will be a bit challenging at times, but, personally, I think it has been 
worth it.


Richard

On 11/05/2010 08:17 AM, Gustavo Adrian wrote:
Yes. I'm going to start two big projects at work that are going to be 
products, not just one time apps. So I want to use the latest version 
of Symfony because I plan to work in these apps the whole 2011 (and, 
with good luck, the next years too) and I want to use the latest tools 
I have at hand, but I need to start now and release some modules on 
the next two months. I think it's better to use the latest version now 
and keep updating the code than use v1.4 and then migrate the app to 
v2.0. Also, after seeing v2.0, I don't want to look back :)


If your question was about why Symfony 2, I like a lot the new 
architecture of the framework. It's features really worth a try. Also 
I would like to contribute to the framework with some bundles I'll 
have to develop on the way.


And another good reason: I love to try new things.. and this is, I 
think, a good moment to renew some tools of my development environment.




I hope you understand my point. My english is really ugly, I apologize 
for that :)



On Fri, Nov 5, 2010 at 11:54 AM, Alex Pilon alex.pi...@gmail.com 
mailto:alex.pi...@gmail.com wrote:


Any particular reason you need to use Symfony2? Its still in beta
and isnt planned to be fully released until March...

On Fri, Nov 5, 2010 at 10:46, Gustavo Adrian
comfortablynum...@gmail.com mailto:comfortablynum...@gmail.com
wrote:

Hi,

I'll use Symfony 2 for my next project in my job. I was
testing the sandbox at home and the latest version at git too.
What I would like is, obviusly, use the latest version because
it has a lot of changes, in comparison with PR3, in terms of
syntax, etc. This is a project that will be product, not a
project of one month only. So I think it's better to use the
latest version of Symfony. I don't mind to keep updating my
code with the latest changes. But I would like to know how
much out dated are the docs in comparison with the latest
version of Symfony at git

Also, is there a plan to release a new sandbox updated soon?
If that's the case maybe I can wait a little longer and use
that version instead.


In any case, thanks in advance for reading this :)
-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
http://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
mailto:symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
mailto:symfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en




-- 
Alex Pilon

(613) 608-1480
-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
http://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 mailto:symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
mailto:symfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


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


You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com

Re: [symfony-users] Symfony 2 - Pulling the pieces together

2010-09-20 Thread Richard D Shank

On 09/19/2010 06:21 AM, Donald Tyler wrote:

Thanks for the info Richard.

I am very familiar with MVC. My question was more specifically on how 
Symfony 2 is structured to support MVC. I could easily start right now 
and build a site using my own assumptions, but some best practice 
advice is what I'm after.


For example, if I were to build a project using what I know, I'd 
likely do the following:


* Build a bundle for each piece of my project. Similarly to as you
  described.

Your initial bundles can be built from the console.  It will get you 
started.  Basically, from what I understand, the Application folder is 
for Bundles specific to the app and the Bundle folder is for shared 
Bundles.  The structure is the same inside both bundles.  In fact, you 
can find similar bundles in the Symfony source.


* Build forms on-the-fly in the controller as needed. Refactoring
  shared forms to some other class, that if I was using Symfony 1,
  would be stored in the lib directory. I'm not yet sure where to
  store this in a Symfony 2 project.

I haven't done enough with the forms yet.  It seems like some of that is 
still up the the air.  I've seen some bundles put forms in a Form 
folder.  I think the idea is to keep all related parts together in the 
bundle.  Look at a couple of knplabs projects to get an idea. 
http://github.com/knplabs


* Use annotations on the Entity classes for both Validation and ORM.

ORM - 
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/annotations-reference/en#annotations-reference

Validation - http://docs.symfony-reloaded.org/guides/validator.html


* Use the Doctrine event system for creating user level logs.

Not sure exactly what you have in mind here, I guess look over the 
doctrine orm docs 
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/events/en
There few couple of things I am unsure of how to do at the moment (I'm 
still reading all the docs though):


*Validation:*
How to get the validation errors from the annotated Entity into a
form.

http://docs.symfony-reloaded.org/guides/forms.html near the bottom of 
the page has some info.  Maybe also look at some projects to get more ideas



*Security.*
I would use DoctrineGuard in Symfony 1 for this. But I'm not sure
if there's a bundle for Symfony 2 yet, or if this is something I'm
expected to build myself.

Security is in the air right now.  There are things that will be added 
to Sf2, but I think it will be the end of Oct.  There are a couple of 
bundles that deal with security.



*Cross bundle functionality.*
For example, taking the Address and Person example you gave, I
would like to create two views:

  o One for viewing an address, that would show all the people
that use it
  o One for viewing a person, that would show all the
addresses they use

Now I could build these views into each of the two bundles, but
that would create tight coupling between them. So I'm wondering if
it would be wise to create a third bundle called Contact that
would create these views and aggregate the functionality of the
Address and Person bundles.

Would this be a good place to use embed other templates or actions?  In 
you contact you could use both the person and address views.  Reading up 
on Twig is not a bad idea here.



The problem being with this is that I don't think there's any way
to embellish the models in the Address and Person bundles to
create the references between them.

http://www.doctrine-project.org/projects/orm/2.0/docs/reference/association-mapping/en 
maybe that will help


I hope this is helpful, I feel like I'm just groping my way through 
things right now. :)


Richard

--
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 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread Richard D Shank

Try capitalizing @entity (@Entity)

On 09/18/2010 08:41 AM, spike3111 wrote:

I try to set up a simple custom repository, looking at the
documentation doctrine2. I first tried the command
doctrine:generate:repositories, which does not make mistakes, but that
does not work either. So I created a class Entity
CustomCategorieRepository

?php
namespace Application\HelloBundle\Entity;

use Doctrine\ORM\EntityRepository;

class CustomCategorieRepository extends EntityRepository
{
 public function getAllCategorie()
 {
 return $this-_em-createQuery('SELECT u FROM Application
\HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
 -getResult();
 }
}

And in my entity I added annotation @entity:
?php

namespace Application\HelloBundle\Entity;

/**
  * Application\HelloBundle\Entity\Categorie
  * @entity(repositoryClass=Application\HelloBundle\Entity
\CustomCategorieRepository)
  */
class Categorie
{


I get an error on the fact that my custom repository is not taken into
account.

   


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

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


Re: [symfony-users] Symfony 2 - Pulling the pieces together

2010-09-18 Thread Richard D Shank
Right now, the best thing to do is to look at other people's work.  Head 
over to http://symfony2bundles.org/ and look at some of the projects.


On 09/17/2010 05:31 AM, Donald Tyler wrote:
One thing I've noticed with the documentation (unless I'm just missing 
it), is that there seems to be documentation on the various parts of 
the framework (Validation, Forms, ORM etc), but no documentation on 
how to best integrate these pieces in a cohesive project.


For example, I'm not sure where I would define a model in the project, 
and if there would be one shared model, or if I'm supposed to be 
created a model for each bundle.
I may be making a false assumption, but it might be helpful to find some 
articles on MVC (Model View Controller)


I'd appreciate it if anyone who is building a project in Symfony 2 
could give me some pointers on how a real world project is structured. 
For example:


Model:
Where do you store your model in your project?
Generally, your model goes in your Bundle in an Entity folder for ORM 
and Document folder for ODM.

Do you break your model into different bundles?
Personally, I try to keep related models together, but it really depends 
on what you are doing.  For example, if you are doing an address, you 
might have a model for regions and a model for countries.  It would make 
sense to have those in an AddressBundle, along with the model for the 
actual address.  However, if you are making a contact, it would use the 
address and a phone number, but those would probably all be in 3 
separate bundles.


Forms:
Do you create forms on the fly, or do you build form classes?
Where do you store forms if you build classes for them?

I haven't played with the forms enough to have any answers on this :).


If there's any blog posts or guide's online along these lines I'd 
appreciate a link to those too. I know it's a little early in Symfony 
2's development for extensive documentation, but I'd like to start 
experimenting with at least a little guidance.
Github is your friend.  Looking at code and reading the wikis for the 
projects are great sources for info.




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


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


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

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


Re: [symfony-users] Re: [Symfony2 - Sandbox PR3] Symfony2/Doctrine2 problem repository

2010-09-18 Thread Richard D Shank
You can do one or the other, but not both.  If you didn't have the xml 
file, it would read the annotation from the class.



On 09/18/2010 10:01 AM, spike3111 wrote:

I did not understand the need to define the class in the mapping and
not in the entity class. I am French, I am mistaken in translating the
documentation (ok it is a hoax:))

So I added in my file xxx.dcm.xml this option:
entity name=Application\HelloBundle\Entity\Categorie repository-
class=Application\HelloBundle\Entity\CategorieRepository

And control doctrine: generate: repositories works well!

it can be used to other ...

On 18 sep, 18:28, Richard D Shankdeve...@zestic.com  wrote:
   

Try capitalizing @entity (@Entity)

On 09/18/2010 08:41 AM, spike3111 wrote:

 

I try to set up a simple custom repository, looking at the
documentation doctrine2. I first tried the command
doctrine:generate:repositories, which does not make mistakes, but that
does not work either. So I created a class Entity
CustomCategorieRepository
   
 

?php
namespace Application\HelloBundle\Entity;
   
 

use Doctrine\ORM\EntityRepository;
   
 

class CustomCategorieRepository extends EntityRepository
{
  public function getAllCategorie()
  {
  return $this-_em-createQuery('SELECT u FROM Application
\HelloBundle\Entity\Categorie u LEFT JOIN u.articles a')
  -getResult();
  }
}
   
 

And in my entity I added annotation @entity:
?php
   
 

namespace Application\HelloBundle\Entity;
   
 

/**
   * Application\HelloBundle\Entity\Categorie
   * @entity(repositoryClass=Application\HelloBundle\Entity
\CustomCategorieRepository)
   */
class Categorie
{
   
 

I get an error on the fact that my custom repository is not taken into
account.
   


 
   


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

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


Re: [symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Richard D Shank
The documentation is a little out of date. Its part of the fun of 
shooting at a moving target :)


Bascially, by looking in the ~ProjectContainer.php, in the cache folder, 
you can find the method names of the services that are available.  They 
can be called from any container.


Since the controller implements the ContainerAwareInterface, it has 
direct access to the container.**  Because of this, you could also do

$conn = $this['doctrine.dbal.default_connection']
from the controller.  This looks more like what you see in the 
documentation.


Spend some time with the ~ProjectContainer.php file.  Look in the 
getDefaultParameters() method to see all of the wonderful things that 
are available in the container.


Richard

On 09/18/2010 11:10 AM, Dennis Jacobfeuerborn wrote:

I'm not sure I understand what you are trying to say. I basically try
to get this example going:
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html

That doesn't mention getDoctrine_Dbal_DefaultConnectionService()
anywhere.

On Sep 18, 7:57 pm, spike3111gilles.gauthie...@gmail.com  wrote:
   

You have to look in the cache, the methods generated there. Surely
this is getDoctrine_Dbal_DefaultConnectionService() you need.

On 18 sep, 19:37, Dennis Jacobfeuerborndjacobfeuerb...@gmail.com
wrote:

 

Hi,
I'm playing around in the sandbox to get a feel for Symfony2 (I
already have Symfony1 experience). After trying to get the Doctrine
stuff going it ran into trouble. After enabling the doctrine dbal and
orm in the config file I inserted the following line from the docs in
my code:
   
 

$conn = $this-container-getService('database_connection');
   
 

This results in an exception:
Call to undefined method helloDevDebugProjectContainer::getService
   
 

The code that creates the exception is this:
public function __call($method, $arguments)
{
  if (!preg_match('/^get(.+)Service$/', $method, $match)) {
  throw new \BadMethodCallException(sprintf('Call to
undefined method %s::%s.', get_class($this), $method));
   
 

}
   
 

What is peculiar here is that the regular expression can never match
the getService() call. Is this an error in the documentation or should
the regexp rather be get(.*)Service to allow for the call in the
docs to be valid?
   
 

Regards,
   Dennis
   
   


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

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


Re: [symfony-users] Re: Symfony2PR3: Call to undefined method helloDevDebugProjectContainer::getService

2010-09-18 Thread Richard D Shank
I think you'll need to have your table name and maybe some other info, I 
don't remember off hand.  Here is more info about doctrine2 
http://www.doctrine-project.org/projects/orm/2.0/docs/reference/en 
Specifically read the Annotations Reference chapter.


Richard

On 09/18/2010 12:23 PM, Dennis Jacobfeuerborn wrote:

I just wanted to be sure that this is really the way to do it and not
some kind of workaround.
Thanks for the pointer.

Now I run into trouble with the ORM:
http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html

I saved the User class in the Entity directory but when I issue the
doctrine:schema:create action symfony only dumps the contents of the
file in the shell and then says No Metadata Classes to process. as
if it doesn't see the @Entity, @Column, etc. metadata in the file:

[den...@nexusd dam]$ php hello/console doctrine:schema:create
// Application/HelloBundle/Entity/User.php

namespace Application\HelloBundle\Entity;

/**
  * @Entity
  */
class User
{
...
}

No Metadata Classes to process.
[den...@nexusd dam]$

On Sep 18, 8:20 pm, Richard D Shankdeve...@zestic.com  wrote:
   

The documentation is a little out of date. Its part of the fun of
shooting at a moving target :)

Bascially, by looking in the ~ProjectContainer.php, in the cache folder,
you can find the method names of the services that are available.  They
can be called from any container.

Since the controller implements the ContainerAwareInterface, it has
direct access to the container.**  Because of this, you could also do
$conn = $this['doctrine.dbal.default_connection']
from the controller.  This looks more like what you see in the
documentation.

Spend some time with the ~ProjectContainer.php file.  Look in the
getDefaultParameters() method to see all of the wonderful things that
are available in the container.

Richard

On 09/18/2010 11:10 AM, Dennis Jacobfeuerborn wrote:

 

I'm not sure I understand what you are trying to say. I basically try
to get this example going:
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
   
 

That doesn't mention getDoctrine_Dbal_DefaultConnectionService()
anywhere.
   
 

On Sep 18, 7:57 pm, spike3111gilles.gauthie...@gmail.comwrote:
   
 

You have to look in the cache, the methods generated there. Surely
this is getDoctrine_Dbal_DefaultConnectionService() you need.
 
 

On 18 sep, 19:37, Dennis Jacobfeuerborndjacobfeuerb...@gmail.com
wrote:
 
 

Hi,
I'm playing around in the sandbox to get a feel for Symfony2 (I
already have Symfony1 experience). After trying to get the Doctrine
stuff going it ran into trouble. After enabling the doctrine dbal and
orm in the config file I inserted the following line from the docs in
my code:
   
 

$conn = $this-container-getService('database_connection');
   
 

This results in an exception:
Call to undefined method helloDevDebugProjectContainer::getService
   
 

The code that creates the exception is this:
public function __call($method, $arguments)
{
   if (!preg_match('/^get(.+)Service$/', $method, $match)) {
   throw new \BadMethodCallException(sprintf('Call to
undefined method %s::%s.', get_class($this), $method));
   
 

}
   
 

What is peculiar here is that the regular expression can never match
the getService() call. Is this an error in the documentation or should
the regexp rather be get(.*)Service to allow for the call in the
docs to be valid?
   
 

Regards,
Dennis
   
   


--
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] Manually doing SQL

2010-09-08 Thread Richard D Shank
If you aren't wanting to use Doctrine at all, its possible, but never 
put your sql in the controller.  The idea behind the MVC Pattern is to 
separate the business from the control, and of course, the display 
from both of those.  Put your sql in your model and put your model in 
the Entity folder. (Document folder for NoSQL).   Even if you don't use 
Doctrine in the end, the Entity generating tools can save you some 
mundane coding.


But take some time to get to know Doctrine2, you may find that you are 
not sacrificing any execution time and you will probably save 
development time.


Richard

On 09/08/2010 04:47 PM, Alexandre Salomé wrote:

It's not a bad idea, and can be justified in some cases.

Doctrine was separated in 2 parts in the version 2 : ORM and DBAL.

ORM provides mapping Object - Database.
DBAL provides abstraction for SQL querying.

Have a look at Doctrine project website.

The service is named doctrine.dbal in Symfony2.

Enjoy ;)

2010/9/8 Stephane Duguay s...@binarez.com mailto:s...@binarez.com

Hi,

I want to use 2 MySQL databases with my Symfony2 project. I want
to have my code stay Doctrine-free or Propel-free because I'm ok
at manually building SQL queries and I want minimal DB overhead
(major scaling requirements).

Is this a bad idea? It seems like I can just write the controllers
to deal with SQL directly and I would be done!

Thank you and have a good day!
-- 
# Stéphane
-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
http://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 mailto:symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
mailto:symfony-users%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en




--
Alexandre Salomé
http://alexandre-salome.fr
--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.com


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


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

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


Re: [symfony-users] Symfony2 comments and questions

2010-07-11 Thread Richard D Shank


On 07/11/2010 06:53 AM, Alan Bem wrote:

+1 on GuardBundle/SecurityBundle :)
\
There is a version started already 
http://symfony2bundles.org/knplabs/DoctrineUserBundle


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

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


Re: [symfony-users] Re: Symfony2 PR3

2010-07-09 Thread Richard D Shank

On 07/09/2010 07:50 AM, Ekinox wrote:

No, I don't.
We believe that symfony 1.4 is just a little under CakePHP, but 
Symfony2 is two kilometers higher. So we had to choose between those 
two. Symfony2 is not ready, so subject closed, CakePHP.
Sorry for bringing up a closed subject, but the emails took place over 
the course of an hour, and I'm just reading them :).


I have a site I am updating that I started with 1.4 but as soon as we 
release this first major update, we are moving everything over to 
Symfony2.  I say that just as a reference point of where I am coming 
from.  Since 1.4 is not an option, I won't get into the whys of deciding 
to go with 1.4 over Cake.  I will speak directly to Symfony2.


If you guys are truly thinking of migrating to S2 after the API stables, 
it might be better to go ahead with S2 and make the incremental changes 
as it evolves.  Then you are doing the migrating on the fly instead of 
a complete conversion at a later point.  Using, submodule in git for 
updating S2 and creating branches as you go, you should be able to keep 
up with the changes that are happening on the framework.  Just a hint, 
look at http://github.com/fabpot/symfony for things that are coming.  As 
far as stability, I read somewhere (can't remember where, right now), 
there is is a S2 site in the wild, doing just fine.


The ORMs are pretty stable at this point. Doctrine2 is my drug of 
choice, but it seems that Propel1.5 is also pretty solid and the changes 
coming to it are incremental.  There are a number of components that S2 
uses that have been released as separate projects 
http://components.symfony-project.org/ so those parts of the framework 
are pretty stable.


Also, the community is really jumping in behind S2, with 4 patches 
submitted in the last week and a site dedicated to S2 Bundles 
http://symfony2bundles.org/ (written with S2 and not the site I was 
thinking of above).  As you can see from the site, there are already a 
few bundle being created for S2.  Also, if you guys used S2, thats more 
eyes looking and contributing to the project :).


From what you stated above, I don't need to convince you that S2 is the 
better choice over Cake.  I just want to shed a different light on 
things from someone who made the decision to go with S2, over 1.4 and 
initially Cake.


Richard

--
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] integrating galleria into symfony 1.4

2010-06-15 Thread Richard D Shank
I would probably do this on index instead of show.  Also, your code to 
create the gallery should be


div class=images

?php foreach ($gallery_pics as $pics): ?

?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics-getImage()) ?
?php echo $picUrl ?

?php endforeach; ?

/div

Disable the the script to see if the images are actually loading on the 
page.


On 06/15/2010 10:18 AM, el-sid wrote:

hi all,

i am trying to integrate this jquery script into symfony found at:
http://galleria.aino.se/ . however i am coming up with a blank
screen.

i put the javascripts inside /js/galleria folder

then in the showSuccess of my module, i put this

?php use_javascript('jquery-1.4.2.min.js') ?
?php use_javascript('galleria/galleria.js') ?


div id=body


 ?php foreach ($gallery_pics as $pics): ?

 ?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics-getImage()) ?

 div class=images?php echo $picUrl ?/div


 ?php endforeach; ?
 script
 Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
 /script
script type=text/javascript
 $('.images').galleria();
 /script
/div


the path in the url is like this: 
http://mydomain:8080/portal_dev.php/gallery/show/id/1

is there a better way to integrate external jquery into symfony??

Thanks..

   


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

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


Re: [symfony-users] Re: integrating galleria into symfony 1.4

2010-06-15 Thread Richard D Shank

On 06/15/2010 01:09 PM, el-sid wrote:

nope. it didn't work. i tried
Galleria.loadTheme('/js/galleria/themes/galleria.classic.js');
and also
Galleria.loadTheme('../js/galleria/themes/galleria.classic.js');
but nothing. I am relatively new to symfony, so i have never
integrated php with jquery. is there
an alternative way of doing this
   


That part of it is, most likely, not related to symfony.  If you have 
the images being created, the galleria plugin adds the extra html/css/js 
to make the slideshow work.  Have you looked at what is happening on the 
webpage using firebug?


The other thing, that is obvious, but easy to overlook, are you sure the 
js files are where they are supposed to be.



On Jun 15, 10:40 pm, Richard D Shankdeve...@zestic.com  wrote:
   

On 06/15/2010 12:09 PM, el-sid wrote:



 

thanks for reply,
   
 

i took your advice and put the code on the index and the changed the
divtags..however, i notice that if i comment
out these statements:
?php use_javascript('jquery-1.4.2.min.js') ?
?php use_javascript('galleria/galleria.js') ?
   
 

   the images show, i am thinking it has something to do with file
paths, especially on the javascript
script
  Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
  /script
but i dont know how to set it. i have tried ../../../../ on several
levels but nothing
   
I think your hunch is right, try an absolute link.  
Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); or where

ever it is located for you

 

On Jun 15, 9:17 pm, Richard D Shankdeve...@zestic.comwrote:
   
 

I would probably do this on index instead of show.  Also, your code to
create the gallery should be
 
 

div class=images
 
 

   ?php foreach ($gallery_pics as $pics): ?
 
 

   ?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics-getImage()) ?
?php echo $picUrl ?
 
 

   ?php endforeach; ?
 
 

/div
 
 

Disable the the script to see if the images are actually loading on the
page.
 
 

On 06/15/2010 10:18 AM, el-sid wrote:
 
 

hi all,
   
 

i am trying to integrate this jquery script into symfony found at:
http://galleria.aino.se/. however i am coming up with a blank
screen.
   
 

i put the javascripts inside /js/galleria folder
   
 

then in the showSuccess of my module, i put this
   
 

?php use_javascript('jquery-1.4.2.min.js') ?
?php use_javascript('galleria/galleria.js') ?
   
 

div id=body
   
 

   ?php foreach ($gallery_pics as $pics): ?
   
 

   ?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics-getImage()) ?
   
 

   div class=images?php echo $picUrl ?/div
   
 

   ?php endforeach; ?
   script
   Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
   /script
script type=text/javascript
   $('.images').galleria();
   /script
/div
   
 

the path in the url is like 
this:http://mydomain:8080/portal_dev.php/gallery/show/id/1
   
 

is there a better way to integrate external jquery into symfony??
   
 

Thanks..
   
   


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

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


Re: [symfony-users] Re: shopping cart?

2010-05-31 Thread Richard D Shank
I'm getting ready to start building a store for a music site.  It will 
only be virtual products for now (mp3 downloads), but it will have some 
of the elements you are needing.  Right now, I plan on building it using 
the work from sfShop. I don't know what your time frame is for needing 
it, but I intend on contributing everything back that I can.


On 05/30/2010 11:31 PM, bretth wrote:

Yeah actually sales reporting has heaps to do with a shopping cart;
clients want fancy graphs which can be changed by easy to use filters
with all sorts of useful feedback info; to know different periods of
time, compare different items, different kinds of graphs etc. They
also want tabular data as well!

Individually each of these items might only take a few hours to
develop at a minimum, but when we're comparing development costs, a
few hours for each of these pieces of functionality suddenly adds up.

Add to this, an item typically needs a few photos for it, the ability
to rate it, tag it, have comments on it, find related items, have
discounts, have discount vouchers, have different sizes. The cart
needs to be able to manage quantities of each item type. Payment
modules need to be written. And then what about multi currency
capabilities? And also i18n for content etc. It also might need to
send invoices, perhaps dispatch shipments etc.

You really need the whole shebang for a fully functioning system and
nearly all of these things are actually more complicated than they
sound to develop, so naturally I was hoping that there was already
something in existence for symfony ;)


On May 31, 6:25 am, Enosymb...@gmail.com  wrote:
   

On Fri, 28 May 2010, bretth wrote:
 

I agree that it's easy to get a basic shopping cart going; the issue
really is all the extra things; the main one being advanced sales
reporting.
   

Sales reporting doesn't have much to do with building a shopping cart.
That would involve running some queries against your orders database
surely?

--
 
   


--
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] Functions other than executeActionXXX()

2010-04-26 Thread Richard D Shank
On Sun, 2010-04-25 at 19:10 -0700, Parijat Kalia wrote:
 Hey guys,
 
 I am sure we can define different functions in Symfony, other than the
 executeActionXXX() types. Suppose I wanna define a function that does
 a task in several other functions. How can I go about doing this? 
 for e.g
 

That is mostly the role of the Model.  You can also have support
libraries to do some of the work, but all of the lifting in the Model.

The Controller (the actions are  part of the controller) basically
gathers information from the user and environment and decides what
action needs to be taken.  Inside of the Action, you should be doing
very little work.  Just enough to get the information needed for
interacting with the view.  

The Model is the business end of things.  With Symfony, it generally
interfaces with the database, either with Doctrine or Propel, but it
doesn't half to.

Do a google for Model View Controller and read up some on it.  I think
it will help you understand the paradigm.  Also try working through this
tutorial on the symfony site
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/ It should help
you get a better understanding of the hows and why of Symfony.

Richard


 executeActionXXX()
 {
 $var = functionXX();
 
 }
 
 executeActionYYY()
 { $var = functionXX(); }
 Thanks and regards,
 
 parijat kalia
 
 
 -- 
 If you want to report a vulnerability issue on symfony, please send it
 to security at symfony-project.com
  
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


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

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