Re: [symfony-users] error installing sfDoctrineGuardPlugin

2010-03-19 Thread Marius Rugan
Hi,
- sounds like a PEAR error so try to update PEAR
if not
- install sfDoctrineGuardPlugin by hand placing it in the plugins dir (or
svn co/export it from trunk/branches - see readme of plugin)
i would first try browsing around to see if php 5.3 is compatible with
symfony
unfortunately, i'm stuck into the 5.2 line so i can't answer that.


have fun
_
Marius Rugan

[image: Google Talk:] mariusrugan [image: Skype:] marius.rugan
[image: Linkedin] http://www.linkedin.com/in/mariusrugan[image:
del.icio.us] http://delicious.com/mrugan[image:
Twitter]http://twitter.com/mariusrugan


On Thu, Mar 18, 2010 at 5:13 PM, kim thechosendra...@gmail.com wrote:

 Hello,

 When i want to install sfDoctrineGuardPlugin I get following output

 C:\Users\Kimsymfony plugin:install sfDoctrineGuardPlugin
  plugininstalling plugin sfDoctrineGuardPlugin
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 650
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 697
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 757
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 786
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 914
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1578
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 1608
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2035
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Config.php on line 2088
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 322
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1431
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Registry.php on line 1439
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 137

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 137
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 154

 Deprecated: Assigning the return value of new by reference is
 deprecated in C:\w
 amp\bin\php\php5.3.0\PEAR\PEAR\Command.php on line 154
 PHP Deprecated:  Assigning the return value of new by reference is
 deprecated in
  C:\wamp\bin\php\php5.3.0\PEAR\PEAR\Frontend.php

[symfony-users] Re: symfony based shopping carts - hate to reinvent the wheel

2009-08-20 Thread Marius Rugan
http://code.google.com/p/sfshop/
saw last commit from owner in march.

On Wed, Aug 19, 2009 at 10:58 PM, Davinder Mahal davin...@mahal.org wrote:


 Hello everyone,

 It's been a while since I've posted.

 I wanted to find out if there are any particular resources on symfony
 shopping carts. I'd hate to reinvent the wheel so I thought I'd ask
 first.

 I've found the cookbook and the sfShoppingCartPlugin but seems a
 little old (and perhaps weak).

 I was wondering if there are any other open source solutions to
 symfony based carts.

 I've search numerous resources and haven't really found anything so I
 assume there isn't.

 Anyway urls or info would be great.

 Cheers,

 Davinder

 


--~--~-~--~~~---~--~~
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: Problems installing Symfony 1.2.7 on Ubuntu 9.04

2009-07-10 Thread Marius Rugan
try to upgrade pear
pear upgrade-all

and channels
pear update-channels

also i found very useful using pear in a controllable manner:
i've deployed pear into /usr/local/pear-local/
keep in mind to modify php.ini include_path for both cli and apache
see /etc/php5/

http://www.akinas.net/pages/en/blog/install-symfony-shared-hosting/
follow the first part. upgrade pear, upgrade channels




On Fri, Jul 10, 2009 at 9:18 PM, Nahuel Santos nahuelsan...@gmail.comwrote:

 Hi, i'm new in the group and i'm new in symfony. I have an Ubuntu 9.04 and
 when I try installing symfony using pear (sudo pear install
 symfony/symfony-1.2.7) pear doesn't install symfony. It can dowload it, but
 instead of getting

 *downloading symfony-1.2.7.tgz ...
 Starting to download symfony-1.2.7.tgz (2,695,475 bytes)
 ...
 *

 *
 ...
 **
 ...
 **
 ...
 **
 ...
 **..done
 : 2,695,475 bytes
 install ok: channel://pear.symfony-project.com/symfony-1.2.7 *


 I only get:

 *Starting to download symfony-1.2.7.tgz (2,695,475 bytes)
 .
 .
 done: 2,695,475 bytes *


 So when I write *symfony -V* I get *bash: symfony: orden no encontrada.*

 I can't get any information from anywhere. If I write sudo pear install
 symfony/symfony, pear installs symfony 1.1.x, and I want to install symfony
 1.2

 If anyone can help me it would be great.

 Bye





 --
 Santos Blasi, Nahuel Alejandro

 


--~--~-~--~~~---~--~~
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: e-commerce solution under symfony

2009-06-29 Thread Marius Rugan
Alecs, as i said in the first reply,
http://code.google.com/p/sfshop/
:)

sfShop is open source on-line shop e-commerce platform ... The platform
is available for free under the MIT License. This platform is based on
symfony framework.

plugins already there. (almost all)
it just needs documentation and most of all, collaboration.


On Mon, Jun 29, 2009 at 6:26 PM, Alexandru-Emil Lupu
gang.al...@gmail.comwrote:

 it is ok with me. The main ideea is that not to break it to hard. I think
 that we could break this plugin in several:

 1. payment (that i am thinking to be almost like AdoDB. An interface for
 the existing / future )
 2. shopping cart (i think that there is a shoppingCartPlugin, but i haven't
 played with it )
 3. products (where it would be category, products)
 4. billing (you might need to issue billings for other services things that
 you are allready using ). I could give the romanian billing format (fields
 required and stuff )
 5. for static pages i think that there is a plugin as well
 6. Stats could be separated (because it could be implemented in different
 other projects like blogs, albums )
 7. user reviews must be standalone ( check pct 6 comment )
 8. maybe wishlist could be separated (with some slight modifications can
 become a user album or so)

 this is what i would have in mind... What do you say guys ?
 Who has access to sf trac and want's to get involved ?

 Alecs


 On Mon, Jun 29, 2009 at 5:53 PM, Tom Haskins-Vaughan 
 t...@templestreetmedia.com wrote:


 As I mentioned before, this is where I suggest we think about breaking
 things down into separate plugins.

 As an example, I'd suggest creating a catalogue plugin that deals with
 storing the product SKUs. Then we can just pass the SKU id to the cart.
 That way, if someone finds that the catalogue function is to limiting,
 then he can add his own as long as long as he passes SKUs or the
 equivalent.

 What do people think?

 Alexandru-Emil Lupu wrote:
  ehhh too much chat...
  why don't we just start and make it ? I'm sure that we could write a
  sf1.2 propel  doctrine plugin...
   From my point of view, we would need some db tables and actions.
 
  tables:
   - productCategories ( a table that will keep the product types ex:
  notebooks, desktops, LCD's)
   - productDetails ( a table with all the product details )
   - staticPages (for disclaimer and so)
   - productReviews (some comments for that product)
   - productManufacturer ( we keep the producer's name )
   - productPrices (to keep a count of some discounts )
   - productStats ( some product stats, how many time bought, visited,  )
   - productWishList ()
   - userBills  (we keep the Track of the money :D )
   - productStock ( we keep the inventory of the products )
   - userBillingAddresses (for multiple billing addresses )
   - userCart
 
  === maybe they are way to many or way to less, but is a start ===
  some actions:
  - product details
  - product listing by category
  - view my shopping cart
  - checkout
  - pay (here can be implemented some plugins like ogone, e-payment,
  paypal and others - someone heve to do them)
  - my billings
  - bill details
  - add to wish list
  - list wishlist
  - edit wishlist
  - buy
  - see reviews
  - add reviews
  - vote this product
 
  And there can be plenty of those pages.
  Alecs
 
  On Mon, Jun 29, 2009 at 12:29 PM, Lee Bolding l...@leesbian.net
  mailto:l...@leesbian.net wrote:
 
 
 
  On 28 Jun 2009, at 00:13, Marius Rugan wrote:
 
 having tried implementing magento, two times until i dropped it
 out
completely, i can say for me it didn't work because whatever you
 do,
it's too damn slow. You need a virtual machine 1GB+ RAM and up
 with
all the possible tinkering under the hood still is java-like
 slow.
To me it's not acceptable
 
  Really? I've been developing with Magento in a 384MB VMWare image
 for
  MONTHS and it's fine... I even saw a Zend guy benchmark Magento
  running on his crappy Lenovo laptop at 200 pages/sec. Not sure what
  you're doing wrong there...
 
  On 27 Jun 2009, at 21:21, Pablo Godel wrote:
 
 I think it could do better than others, including Magento,
which has tons of features, but it is slow and complex.
 
  Ironically, these are the exact same reasons many people don't adopt
  Symfony. I don't think that's a particularly compelling reason. Why
  not use CI or Kohana? they're MUCH faster :)
 
  But, luckily - AS AN END USER - you don't CARE what framework an
  application is built upon.
 
  If you want to go ahead an make a Symfony based ecommece solution,
  then go ahead. But I *really* recommend you do some due diligence
 and
  make *exhaustive* research into the existing solutions available -
 and
  compare these from the perspective of an end user - before you begin
  coding.
 
 
 
 
 
 
  --
  As programmers create bigger  better idiot proof programs, so

[symfony-users] Re: e-commerce solution under symfony

2009-06-27 Thread Marius Rugan
Hi Antoine,

there is http://code.google.com/p/sfshop/

i've signed up on the google group / took a peak into the code. imho still
needs a lot of documentation and participation.
i've test drove it 4-5 months ago but i was too keen on getting things done
for a small project so i used a small footprint solution. (opencart)

for now i think it's a good candidate for not reinventing the wheel. as of
functionalities, code quality and so on i'm not in the position to asses
those since i didn't bump my head into whatever problems might generate.


On Sat, Jun 27, 2009 at 10:22 AM, Antoine Leclercq anto...@netcv.comwrote:

 [This thread follows the discussion started on
 http://groups.google.com/group/symfony-users/browse_thread/thread/9be2bdb7cff682bf(Status
  of paypal plugin(s)) about an ecommerce solution for symfony. It has
 been moved here as it was slightly off topic.]

 Agreed on the fact that we should not reinvent the wheel (@Lee), that's
 whole point of symfony itself.
 Agreed on the fact that many great ecommerce solutions already exist and
 can be interfaced with symfony.

 But, AFAIK symfony offers a real plus when it comes to building complex and
 maintainable applications. Plus, when you have a development team trained on
 the framework, you want as much as possible to avoid injecting major
 external piece of code that will bring its amount of specificity, its own
 frame of mind / framework, and will inevitably cause you to dig on some
 specific issues related to that very piece of code.

 In addition, what if one of these os ecommerce solutions was built with
 symfony? Don't you think it would provide more? It would highly benefit from
 the framework improvements (integrated tests, security, performance,
 customization...) and therefore its community could focus on the real work.

 If we take the CMF example, how many open source solutions can we list? 30,
 40, a lot more?
 And great solutions like Joomla, XOOPS, Drupal, Plone… All of them are in a
 really mature state.
 Then why Sympal?
 IMHO the first answer would be that it's a real need for the community.
 Because developers want to feel safe with their developments, to know what
 they integrate, and finally to be able to dig in quickly whenever they need
 to fix a bug.

 This seems to be the same pattern with our symfony ecommerce solution
 discussion.

 I would be interested in knowing how many people have developed ecommerce
 applications with symfony.
 RT @Thomas: How many people are willing to help to create an
 ecommerce-like open source project?

 Regards,

 Antoine
 LetsCod

 


--~--~-~--~~~---~--~~
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: e-commerce solution under symfony

2009-06-27 Thread Marius Rugan
Hi Lee, all,
comments inline


On Sat, Jun 27, 2009 at 2:04 PM, Lee Bolding l...@leesbian.net wrote:


 OK guys, time to be PRAGMATIC, and put your creative urges aside.

 A payment framework for Symfony would be incredibly useful - there's
 plenty of SaaS applications that can (and will) be created with
 Symfony. I'm even working on a few myself ;)

 Something that plays well with Amazon's DevPay would be awesome... you
 could quickly create extremely flexible pricing models for your SaaS
 applications.

 As for a larger scale project; what are the costs and benefits of
 creating a fully-blown ecommerce solution with Symfony?

 Magento already exists (using the Zend framework). Magento is free,
 open source and has commercial support available (if you want it). Not
 just that, it's got a massive community (85K community members, 750K
 downloads), it's PCI compliant, Magento have partnered with Zend and
 Rackspace.

 What could possibly be the benefit (to you, and to the end user) of
 developing a competitor? you're already the encumbent before you even
 begin coding, you'd be competing with a free product - there's not
 going to be much financial reward for your efforts, and not much to
 add to your CV.


having tried implementing magento, two times until i dropped it out
completely, i can say for me it didn't work because whatever you do, it's
too damn slow. You need a virtual machine 1GB+ RAM and up with all the
possible tinkering under the hood still is java-like slow. To me it's not
acceptable
that fetching data from db, updating few rows here and there and populating
some templates
would take such amount of time and processing power. I really dig the EAV
principles but at the bottom line is nothing NASA like, it's just plain a
lot of out and few ins from a database. Sorry about spilling the
frustration but i really had to :)

There is no competition to me. It's just getting things done quickly (and
having a revision graph :))

I really appreciate the comment below from Tom, especially  focus those
efforts to create a 'standardised' platform . To me this focus for start
means no massive coding at all, just assemble documentation and code
snippets for proposed plugins so everyone would benefit from something
constructive. I think also that re-writing massive amounts of code just
because it doesn't fit 100%
would be also counter-productive.
Everybody is rapid-developing in their own way. what should emerge should be
a common way of rapid-developing.




 You'd receive far more benefit in terms of peer recognition and
 financial gain by fixing the perceived problems with Magento. Add to
 this that there's already a need to experienced and capable Magento
 professionals.




 Remember, although open source empowers you to create competing
 products, it's this fractured and fragmented mentality that turns big
 business off of open source.

 I'd be interested to hear some pragmatic responses to this thread from
 Fabien, Jonathan and Nicholas... even if they disagree with me :)

 On 27 Jun 2009, at 09:20, Gandalf wrote:

 
  Hello,
 
  Just my 2 cents, from my point of view, personal, we should write a
  new of store solution if:
 
  1) we can make a better job than magento, magento got the rights
  features, but implementation  is really slow, can we do better???
  sure? see my post about sympal performance.
 
  As I said, my very own 2 cents.
 
  Pablo
 
  On 6/27/09, Marius Rugan mariusru...@gmail.com wrote:
  Hi Antoine,
 
  there is http://code.google.com/p/sfshop/
 
  i've signed up on the google group / took a peak into the code.
  imho still
  needs a lot of documentation and participation.
  i've test drove it 4-5 months ago but i was too keen on getting
  things done
  for a small project so i used a small footprint solution. (opencart)
 
  for now i think it's a good candidate for not reinventing the
  wheel. as of
  functionalities, code quality and so on i'm not in the position to
  asses
  those since i didn't bump my head into whatever problems might
  generate.
 
 
  On Sat, Jun 27, 2009 at 10:22 AM, Antoine Leclercq
  anto...@netcv.comwrote:
 
  [This thread follows the discussion started on
 
 http://groups.google.com/group/symfony-users/browse_thread/thread/9be2bdb7cff682bf(Statushttp://groups.google.com/group/symfony-users/browse_thread/thread/9be2bdb7cff682bf%28Status
  of paypal plugin(s)) about an ecommerce solution for symfony. It has
  been moved here as it was slightly off topic.]
 
  Agreed on the fact that we should not reinvent the wheel (@Lee),
  that's
  whole point of symfony itself.
  Agreed on the fact that many great ecommerce solutions already
  exist and
  can be interfaced with symfony.
 
  But, AFAIK symfony offers a real plus when it comes to building
  complex
  and
  maintainable applications. Plus, when you have a development team
  trained
  on
  the framework, you want as much as possible to avoid injecting major
  external piece of code that will bring its

[symfony-users] Re: GUAU! eclipse galileo. PDT2.1

2009-06-24 Thread Marius Rugan
i see they've finally fixed code assist @var problem.

257481 normal g...@zend.com Code Assist Code Assist dropdown does not
populate the data types of PHP Doc ( @var)
except the fact that eclipse+PDT it's a memory eating hog when developing up
from a medium sized project and trying to remote debug, everything is
peachy. :D

On Wed, Jun 24, 2009 at 11:59 PM, roberto german puentes diaz 
puentesd...@gmail.com wrote:

 http://www.eclipse.org/pdt/release-notes/pdt2_1.php
 increible

 --
 Cr. Puentes Diaz
 MP 10.12726.9
 Córdoba - Argentina

 www.puentesdiaz.com.ar/blog/
 www.puentesdiaz.com.ar/blog/novedades
 www.puentesdiaz.com.ar/blog/curriculum-vitae
 Linux User n° 441474
 Ubuntu/Symfony/Eclipse Rocks!

 


--~--~-~--~~~---~--~~
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: Overriding plugin schema with doctrine and sf 1.2

2009-06-18 Thread Marius Rugan
can you elaborate a little bit more on this?


On Thu, Jun 18, 2009 at 12:12 PM, Nicolas Bazire
nicolas.baz...@gmail.comwrote:


 Have you thought about inheritance?

 On Jun 17, 4:32 pm, Jonathan Wage jonw...@gmail.com wrote:
  Can you log a ticket about this?
 
  Honestly though, I would add columns to the model differently by
 overriding
  the setTableDefinition() in your
  lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class.php
 
  Thanks,
 
  Jonathan H. Wage (+1 415 992 5468)
  Open Source Software Developer  Evangelist
  sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
 
  On Wed, Jun 17, 2009 at 9:17 AM, Marius Rugan mariusru...@gmail.com
 wrote:
   It seems that there is a fault in: sfDoctrinePlugin's
   _checkForPackageParameter
 
  
 lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php
 
   line 64: $this-_checkForPackageParameter($config['yaml_schema_path']);
   line 119: $files = sfFinder::type('file')-name('*.yml')-in($path);
 
   i get the point of not having package parameter inside the main
 schema.yml
   because would blow up the entire model
   directory structure but there is no differentiation between files
 loaded
   (other schemas and schema.yml)
 
   think should turn into:
 
   $files = sfFinder::type('file')-name('schema.yml')-in($path);
 
   it's up to Jonathan to decide but i think schemas from plugins should
 be
   easily overridden
   by schemas copied inside the /project/doctrine/config/
 
   If i'm missing something related to autoload of models that would break
   things please let me know.
 
   Thanks.
   Marius
 
   On Wed, Jun 17, 2009 at 4:16 PM, Marius Rugan mariusru...@gmail.com
 wrote:
 
   Hi,
 
   yes, i'm placing it inside
 
   project/config/doctrine/sfDoctrineGuardPlugin.schema.yml
 
   package: sfDoctrineGuardPlugin.lib.model.doctrine
   sfGuardGroup:
   ...rest of the original schema.yml from sfDoctrineGuardPlugin goes
 here
   ...
 
   trying to re-generate model with symfony doctrine:build-all-reload
   still sfGuardGroup.class.php and all the rest gets re-generated inside
   lib/model/doctrine
   instead of lib/model/doctrine/sfDoctrineGuardPlugin
 
   On Wed, Jun 17, 2009 at 4:01 PM, Jonathan Wage jonw...@gmail.com
 wrote:
 
   And you're placing this at the top of the file in your own
   project/config/doctrine folder?
 
   Jonathan H. Wage (+1 415 992 5468)
   Open Source Software Developer  Evangelist
   sensiolabs.com | jwage.com | doctrine-project.org |
 symfony-project.org
 
   On Wed, Jun 17, 2009 at 7:32 AM, Marius Rugan mariusru...@gmail.com
 wrote:
 
   Hi all,
 
   In March, Jonathan Wage wrote:
 
   Add this to the top of the plugin: package:
   sfDoctrineGuardPlugin.lib.model.doctrine
   This package option is automatically added to the schema files
 found
   in
   plugins so that the models are all generated in the right places.
 When
   you
   copy that schema file you just need to set that manually so they are
   generated in the right place.
 
   i'm trying to override the schema in sfDoctrineGuardPlugin with a
   sfDoctrineGuardPlugin.schema.yml inside
   config/doctrine folder
   but i keep bumping my head against
Cannot use package parameter in symfony Doctrine schema files. 
   or
   Cannot redeclare class BasesfGuardGroup
   (sfDoctrineGuardPlugin.schema.yml generates model in
   lib/model/doctrine instead of
 lib/model/doctrine/sfDoctrineGuardPlugin
 
   any ideas on how to override the schema.yml cleanly ?
 


--~--~-~--~~~---~--~~
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] Overriding plugin schema with doctrine and sf 1.2

2009-06-17 Thread Marius Rugan
Hi all,

In March, Jonathan Wage wrote:

Add this to the top of the plugin: package:
sfDoctrineGuardPlugin.lib.model.doctrine
This package option is automatically added to the schema files found in
plugins so that the models are all generated in the right places. When you
copy that schema file you just need to set that manually so they are
generated in the right place.

i'm trying to override the schema in sfDoctrineGuardPlugin with a
sfDoctrineGuardPlugin.schema.yml inside
config/doctrine folder
but i keep bumping my head against
 Cannot use package parameter in symfony Doctrine schema files. 
or
Cannot redeclare class BasesfGuardGroup (sfDoctrineGuardPlugin.schema.yml
generates model in
lib/model/doctrine instead of lib/model/doctrine/sfDoctrineGuardPlugin

any ideas on how to override the schema.yml cleanly ?

--~--~-~--~~~---~--~~
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: Overriding plugin schema with doctrine and sf 1.2

2009-06-17 Thread Marius Rugan
Hi,

yes, i'm placing it inside

project/config/doctrine/sfDoctrineGuardPlugin.schema.yml

package: sfDoctrineGuardPlugin.lib.model.doctrine
sfGuardGroup:
...rest of the original schema.yml from sfDoctrineGuardPlugin goes here ...

trying to re-generate model with symfony doctrine:build-all-reload
still sfGuardGroup.class.php and all the rest gets re-generated inside
lib/model/doctrine
instead of lib/model/doctrine/sfDoctrineGuardPlugin


On Wed, Jun 17, 2009 at 4:01 PM, Jonathan Wage jonw...@gmail.com wrote:

 And you're placing this at the top of the file in your own
 project/config/doctrine folder?

 Jonathan H. Wage (+1 415 992 5468)
 Open Source Software Developer  Evangelist
 sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org



 On Wed, Jun 17, 2009 at 7:32 AM, Marius Rugan mariusru...@gmail.comwrote:

 Hi all,

 In March, Jonathan Wage wrote:

 Add this to the top of the plugin: package:
 sfDoctrineGuardPlugin.lib.model.doctrine
 This package option is automatically added to the schema files found in
 plugins so that the models are all generated in the right places. When you

 copy that schema file you just need to set that manually so they are
 generated in the right place.

 i'm trying to override the schema in sfDoctrineGuardPlugin with a
 sfDoctrineGuardPlugin.schema.yml inside
 config/doctrine folder
 but i keep bumping my head against
  Cannot use package parameter in symfony Doctrine schema files. 
 or
 Cannot redeclare class BasesfGuardGroup (sfDoctrineGuardPlugin.schema.yml
 generates model in
 lib/model/doctrine instead of lib/model/doctrine/sfDoctrineGuardPlugin

 any ideas on how to override the schema.yml cleanly ?






 


--~--~-~--~~~---~--~~
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: Overriding plugin schema with doctrine and sf 1.2

2009-06-17 Thread Marius Rugan
It seems that there is a fault in: sfDoctrinePlugin's
_checkForPackageParameter

lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php

line 64: $this-_checkForPackageParameter($config['yaml_schema_path']);
line 119: $files = sfFinder::type('file')-name('*.yml')-in($path);

i get the point of not having package parameter inside the main schema.yml
because would blow up the entire model
directory structure but there is no differentiation between files loaded
(other schemas and schema.yml)

think should turn into:

$files = sfFinder::type('file')-name('schema.yml')-in($path);

it's up to Jonathan to decide but i think schemas from plugins should be
easily overridden
by schemas copied inside the /project/doctrine/config/

If i'm missing something related to autoload of models that would break
things please let me know.

Thanks.
Marius


On Wed, Jun 17, 2009 at 4:16 PM, Marius Rugan mariusru...@gmail.com wrote:

 Hi,

 yes, i'm placing it inside

 project/config/doctrine/sfDoctrineGuardPlugin.schema.yml

 package: sfDoctrineGuardPlugin.lib.model.doctrine
 sfGuardGroup:
 ...rest of the original schema.yml from sfDoctrineGuardPlugin goes here ...

 trying to re-generate model with symfony doctrine:build-all-reload
 still sfGuardGroup.class.php and all the rest gets re-generated inside
 lib/model/doctrine
 instead of lib/model/doctrine/sfDoctrineGuardPlugin


 On Wed, Jun 17, 2009 at 4:01 PM, Jonathan Wage jonw...@gmail.com wrote:

 And you're placing this at the top of the file in your own
 project/config/doctrine folder?

 Jonathan H. Wage (+1 415 992 5468)
 Open Source Software Developer  Evangelist
 sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org



 On Wed, Jun 17, 2009 at 7:32 AM, Marius Rugan mariusru...@gmail.comwrote:

 Hi all,

 In March, Jonathan Wage wrote:

 Add this to the top of the plugin: package:
 sfDoctrineGuardPlugin.lib.model.doctrine
 This package option is automatically added to the schema files found in

 plugins so that the models are all generated in the right places. When
 you
 copy that schema file you just need to set that manually so they are
 generated in the right place.

 i'm trying to override the schema in sfDoctrineGuardPlugin with a
 sfDoctrineGuardPlugin.schema.yml inside
 config/doctrine folder
 but i keep bumping my head against
  Cannot use package parameter in symfony Doctrine schema files. 
 or
 Cannot redeclare class BasesfGuardGroup (sfDoctrineGuardPlugin.schema.yml
 generates model in
 lib/model/doctrine instead of lib/model/doctrine/sfDoctrineGuardPlugin

 any ideas on how to override the schema.yml cleanly ?






 



--~--~-~--~~~---~--~~
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: Problem in firefox

2009-04-07 Thread Marius Rugan
make sure your login and welcomemsg divs have ids. they are working in IE
because IE is stupid enough to mistake name attributes by ids instead of
throwing an error on the principle yeah it works that way too. yeah and
make sure you don't have the id=login as name somewhere else.

e.g.
div id=login name=login

please don't develop webapps in targeting IE in IE. please don't hurt the
web :)
get firefox, get firebug  friends.


On Tue, Apr 7, 2009 at 9:50 AM, Mukesh Sharma cogentmuk...@gmail.comwrote:

 Hi Pooja,

 I tried your code in my application and it works fine in both IE and
 Firefox.

 The important thing that one should remember in JavaScript is that.one
 should not refer an element in script until it's DOM is not available.

 means we should place our scripts in such a way that it will invoke after
 the rendering of corresponding Elements.

 Otherwise document.getElementById will return NULL and leads to Error.

 Regards
 Mukesh Sharma


 On Mon, Apr 6, 2009 at 6:13 PM, Jérome Vandenende 
 jerome.vandene...@gmail.com wrote:

 It's just me or this doesn't concern Symfony at all?
 Pooja, if you search on Google, you'll find this:
 http://forums.digitalpoint.com/showthread.php?t=543418

 On Mon, Apr 6, 2009 at 2:32 PM, Pooja poojau...@gmail.com wrote:


 Hi all
 the code below works fine in IE but doesnot work in Firefox.Plz help
 fix it
 script
document.getElementById(login).style.display=none;
document.getElementById(welcomemsg).style.visibility=hidden;
 /script







 


--~--~-~--~~~---~--~~
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] sfWidgetFormSchemaFormatter, generateLabel()

2008-12-22 Thread Marius Rugan
Hi all,

i'm playing with sfDoctrineGuard, implementing a register action for
users, using a custom formater for the registration form

i'm breaking down the rendering to form elements inside the template:

li
?php echo $form['username']-renderLabel() ?:
?php echo $form['username']?
?php echo $form['username']-renderError() ?
li

and i want renderLabel() to render a span%field description/help%/span
along with the label
e.g.

label for=user_passwordPasswordspan class=smallAt least 6
chars/span/label

i about to accomplish this overwriting the public function
generateLabel()and using inside
renderContentTag()a combination
like  *__($widgetId._HELP)* that would render the i18n key there.

anyone had this need before and accomplished in some other way?
please advice
below some sample code,

thanks
Marius Rugan



class RegisterForm extends sfGuardUserForm
{
...
$formatter = new
sfWidgetFormSchemaFormatterCustom($this-getWidgetSchema());
$this-widgetSchema-addFormFormatter('custom', $formatter);
$this-widgetSchema-setFormFormatterName('custom');
$this-widgetSchema-setNameFormat('user[%s]');
}


class sfWidgetFormSchemaFormatterCustom extends sfWidgetFormSchemaFormatter
{
   /**
   * Generates a label for the given field name.
   *
   * @param  string $nameThe field name
   * @param  array  $attributes  Optional html attributes for the label tag
   *
   * @return string The label tag
   */
  public function generateLabel($name, $attributes = array())
  {
$labelName = $this-generateLabelName($name);

if (false === $labelName)
{
  return '';
}

$widgetId =
$this-widgetSchema-generateId($this-widgetSchema-generateName($name));
$attributes = array_merge($attributes, array('for' = $widgetId));

return $this-widgetSchema-renderContentTag('label', $labelName.*span
class=\small\.__($widgetId._HELP)./span*, $attributes);
  }

}

--~--~-~--~~~---~--~~
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: htaccess problem - can't access /admin - only /admin/index.php

2008-12-11 Thread Marius Rugan
Hi,
i think the best practice is to have a frontend app and a backend app
generated in your project and play with symfony routing (.yml)

what you are trying to achieve is breaking the MVC entry point which is
index.php

your 404 errors come up because:

RewriteRule ^(.*)$ index.php [QSA,L]

which says everything goes in the index.php, in the current directory,
Append the Query String e.g. /blah?id=1value=2 or any other combination and
this is the Last rule,
if matched than don't process any rules.

if you have another app other than symfony in your admin folder
than you could put a rewrite condition and a rule, above the rule declared
above.
if the conditions are met, than L will ensure that it's the Last processed
one.

RewriteCond %{REQUEST_URI} ^/admin/(.*)$
RewriteRule ^/admin/(.*)$ /admin/index.php [QSA,L]

(this doesn't work ... hope somebody has a different approach )
anyone?


On Thu, Dec 11, 2008 at 6:33 PM, Eno symb...@gmail.com wrote:


 On Dec 10, 1:32 pm, zero0x zero0...@gmail.com wrote:

  I have this strange problem - I have htaccess in my web dir - and
  there's a admin folder (with index.php as backend app)
 
  When I go to server/admin - I get frontend's 404 - same for server/
  admin/
 
  When I go to server/admin/index.php - everything works just fine..


 Do you have no_script_name switched on for the admin app?


 --


 


--~--~-~--~~~---~--~~
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: download a zip file, the server

2008-12-10 Thread Marius Rugan
Hi,
seems a content-type error:
try:


header(Content-Disposition: attachment; filename=.$FileName);
header(Content-Type: binary/octet-stream/force-download);
header(Content-Transfer-Encoding: binary);
header(Content-Length: .strlen($FileName));
header(Pragma: no-cache);

On Wed, Dec 10, 2008 at 12:55 PM, rockobop [EMAIL PROTECTED] wrote:


 hello to all

 I have a function to download files. zip to my users, and for that we
 use the following code.


  $FileName = 'Backup09-12-2008~13_48_07.zip';
  $path = sfConfig::get('sf_upload_dir').'\tmp
 \Backup09-12-2008~13_48_07.zip';


  header (Content-Disposition: attachment; filename=.
 $FileName.\n);
  header (Content-Type: application/octet-stream);
  @readfile($path);



 but I find a problem, in my house, a code with a configuration of WAMP
 me works well, theoretically at work with the same configuration does
 not work for me, and it does not work for me at the time of boarding
 the official server that is hosted on linux .
 the failure occurs to me is that the files I downloaded the corrupt by
 some strange reason.
 is not what the problem is, I hope I can help find the solution.

 greetings
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: id for a record in sf_guard_user

2008-12-10 Thread Marius Rugan
Hi, you can see it for yourself (what methods and what attributes has the
object)

echo pre;

//print_r or var_dump depending on
//if you prefer latte or expresso :)

print_r($this-getUser()-getGuardUser());

echo /pre;
//do a clean exit
exit();


On Thu, Dec 11, 2008 at 8:10 AM, mapelo [EMAIL PROTECTED] wrote:


 How to know the id for a record into sf_guard_user (from fooPeek.php)?
 I know username value.


 
 $this-getUser()-getGuardUser()-getProfile()-getFirstName()




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: autocompletion and syntax highlighting for symfony?

2008-12-08 Thread Marius Rugan
You could also try Komodo Edit (the free editor), just add symfony dir to
ProjectLanguagesPhp directories.
I found it useful and rapid when i'm not debugging.
Since Zend Studio doesn't play with xdebug, i use Komodo IDE for debugging
sessions.

What i miss from Zend Studio is the debug next page integration with the
browser as remote debugging, useful for debugging form submision / action
processing.

Anyone had success with Eclipse PDT / Zend Studio for Eclipse / Aptana along
with remote debugging?

2008/12/8 Ward Loockx [EMAIL PROTECTED]


 Andrei Dziahel schreef:
  Hi, Ward.
 
  I am using Zend Studio 6, looking forward for NetBeans 7.0 (with
  symfony support). There's a bit of pages in symfony's wiki [http://
  trac.symfony-project.org/#IDE] that describe symfony integration into
  various shells and IDEs.
 
  On 8 дек, 10:17, Ward Loockx [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm new to symfony and wanted to know what's the best IDE for symfony
  development? Is there any that has support for the symfony syntax?
 
  Thanks!
  Ward
 
  
 
 Allright! Thanks!

 Greets,
 Ward

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Error in My First Project (1.2)

2008-12-07 Thread Marius Rugan
what would be the error at  database configuration failed ?


On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira [EMAIL PROTECTED] wrote:

 btw, I did this:
 changed the 'executeNew' to:

 $comment = new BlogComment();

 $comment-setBlogPostId($this-getRequestParameter('post_id'));

 $this-form = new BlogCommentForm($comment);


 and used 'comment/new' in the link, and not 'comment/edit'

 On Sun, Dec 7, 2008 at 12:07, Sid Ferreira [EMAIL PROTECTED] wrote:

 http://www.symfony-project.org/tutorial/1_2/my-first-project
 The part that handles the database configuration failed to me and to a
 frend of mine. Also, que part with the link to comment a post.

 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Steve Martin




 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Marie von Ebner-Eschenbach

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Error in My First Project (1.2)

2008-12-07 Thread Marius Rugan
yes, it seems it's a bug, already known / don't know if reported which
quotes the dsn
http://www.symfony-project.org/forum/index.php/m/66290/

anyways Sid,

you have to edit manually the configuration(s) file inside config/

i would suggest that you place a catchy subject in your email(s) e.g.
error: configure:database quotes the
dsn so someone who's scanning the list could make things happen for you
inside svn


*databases.yml*

all:
  propel:
class:  sfPropelDatabase
param:
  dsn:  mysql://user:[EMAIL PROTECTED]/mydatabasename

*propel.ini*

propel.database= mysql
propel.database.createUrl  = mysql://user:[EMAIL PROTECTED]/
propel.database.url= mysql://user:[EMAIL PROTECTED]/mydatabasename
...
propel.output.dir  = /home/where/your-www-data-is/project_name









On Sun, Dec 7, 2008 at 6:46 PM, Sid Ferreira [EMAIL PROTECTED] wrote:

 the command line seem to be wrong, try:

 php symfony configure:database mysql:host=localhost;dbname=mydb username
 password


 On Sun, Dec 7, 2008 at 14:25, Marius Rugan [EMAIL PROTECTED] wrote:

 what would be the error at  database configuration failed ?



 On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira [EMAIL PROTECTED] wrote:

 btw, I did this:
 changed the 'executeNew' to:

 $comment = new BlogComment();

 $comment-setBlogPostId($this-getRequestParameter('post_id'));

 $this-form = new BlogCommentForm($comment);


 and used 'comment/new' in the link, and not 'comment/edit'

 On Sun, Dec 7, 2008 at 12:07, Sid Ferreira [EMAIL PROTECTED] wrote:

 http://www.symfony-project.org/tutorial/1_2/my-first-project
 The part that handles the database configuration failed to me and to a
 frend of mine. Also, que part with the link to comment a post.

 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Steve Martin




 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Marie von Ebner-Eschenbach








 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Joe E. Lewis

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---