Re: [symfony-users] MVC vs module in Symfony

2010-05-18 Thread Benoit Montuelle
Hi, Sorry I've never seen such a diagram. There is an UML picture of symfony imternals. A module covers view and controller tiers in mvc, and yes you can define filters and forms on each module, or overload the generated ones, just pût them in module/lib folders. To disable filters in an

Re: [symfony-users] MVC vs module in Symfony

2010-05-18 Thread Stéphane
Hi, From what I understand : Model: Doctrine/Propel View: Partials, templates (sfPHPView engine) Controler: Action, Component Modules are containers for actions, to group them somehow. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

[symfony-users] How switch off printing raw html tags

2010-05-18 Thread Maras
hay, In m form I used TinyMCE to format text and later when i want to present it using echo $var i get pbr...raw html tags. How can I switch it off??/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] How switch off printing raw html tags

2010-05-18 Thread Gareth McCumskey
This is simply a safety feature of symfony, that converts characters such as into lt; and into gt; , etc. In your echo statement just wrap an html_entity_decode around the variable ?php echo html_entity_decode($string); ? http://php.net/manual/en/function.html-entity-decode.php On Tuesday

Re: [symfony-users] Join between Two Tables/Models

2010-05-18 Thread Gareth McCumskey
Remove all the addAsColumn references and you should be fine On Tuesday 18 May 2010 06:04:59 Apul Gupta wrote: I have two tables in my database, schema below: user: id: ~ email_id: { type: varchar(100), required: true } password: { type:

Re: [symfony-users] any progress on ecommerce packages using Symfony?

2010-05-18 Thread Jérémie
Le dimanche 16 mai 2010 à 13:08 -0700, codewi.se a écrit : I asked about this a few months ago, and I wonder if there has been much progress? I'm about to do a big ecommerce project and the client is leaning toward using Magento. I hate Magento. Are there any worthwhile ecommerce packages out

Re: [symfony-users] MVC vs module in Symfony

2010-05-18 Thread Gareth McCumskey
Modules are a grouping mechanism for actions (controller) and their associated templates (views). Actions can access the model classes (model) to get the data needed by the templates (view), which is why the action is the controller; it controls recieving an incoming request (link clicked, form

Re: [symfony-users] any progress on ecommerce packages using Symfony?

2010-05-18 Thread Gareth McCumskey
You could certainly build a robust e-commerce application using symfony. Thats the point of symfony, you can actually build whatever you want with it, its not designed for only one or two use cases. The only thing you need to worry about isn't if symfony CAN be used to make an ecommerce

Re: [symfony-users] MVC vs module in Symfony

2010-05-18 Thread Eno
On Mon, 17 May 2010, Dennis wrote: So anyone seen a definitive pictogram that shows all the elements of Symfony in relation to an MVC implementation? Something like a Venn diagram showing which element of symfony belongs in which part of pure MVC? I'm kind of wondering most of all:

Re: [symfony-users] Headers already sent

2010-05-18 Thread Eno
On Mon, 17 May 2010, Samuel Morhaim wrote: I am trying to move my site from one host to another... same code on both.. however on the new server, one of my modules is throwing this *Warning*: Cannot modify header information - headers already sent by (output started at /var/www/

[symfony-users] need data base update from SMS responce

2010-05-18 Thread brajesh
Hi friends, i m user some API to send sms notification and i want to update my table through the SMS response. can anyone help me? Thanks brajesh -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] language

2010-05-18 Thread safa boubekri
I clear the cache. AND I open the page in a different browser but it's the same thing :( some one who has idea thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to

[symfony-users] User Dependence

2010-05-18 Thread Ozzy
Hi I am developing a system that enables users to post content. It is like a basic forum system. What I want to ask is, how can I prevent users from editing, updating or deleting the other users' posts. Also I want to set the user_id field of a new post to the user_id of the actual poster. I am

[symfony-users] Re: Headers already sent

2010-05-18 Thread Raphael Schumacher
the ?php tag was the problem in my case, thanks for the hint! On 18 Mai, 09:16, Thor thorste...@gmail.com wrote: I'd add as common cases, classes with spaces BEFORE the ?php tag -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] need data base update from SMS responce

2010-05-18 Thread Gareth McCumskey
Your question lacks a huge amount of details: 1. WHat API? 2. Does the API provide a way for you to recieve SMS recieving capabilties? 3. Does the API provider process response SMS's? 4. If the API provider allows you to recieve responses how does it inform you a response has returned and in

Re: [symfony-users] User Dependence

2010-05-18 Thread Gareth McCumskey
When the user logs in you can store that users user_id in a session variable; for example, in an action adter login: $this-getUser()-setAttribute('user_id', $the_users_id); You can then anywhere in your app, including saving new content, get that users id from the session variable with:

[symfony-users] Re: any progress on ecommerce packages using Symfony?

2010-05-18 Thread Florian
Hi! You could have a look on sfShop. To my mind, it's the most finalized -extensible- e-commerce solution developped with sf 1.3 / Propel 1.4 There is port to Doctrine too. Please have a look to http://www.sfshop.net/ -- not finished at all -- http://propel.sfshop.net/--

[symfony-users] Re: User Dependence

2010-05-18 Thread Ozzy
I am already storing the user_id in the session. But the problem is where do I use $this-getUser()-getAttribute('user_id') ? I do not want to access sfInstance in the form or any model classes. Also I said in my first post: And in the 'create' action I am checking whether the user is changed the

Re: [symfony-users] Re: User Dependence

2010-05-18 Thread Gareth McCumskey
Store the post with the user_id for the author that created it. If the current logged in user's user_id stored in session is equal the user_id stored in the database for a POST then that user can edit. Otherwise not. There is no need to use hidden fields on the form to store a user id. And all

Re: [symfony-users] User Dependence

2010-05-18 Thread Gareth McCumskey
Here's an alternative. Don't show any edit capabilties, including edit forms, if the user_id in session does not match a posts user_id. In action: if ($this-getUser()-getAttriburte('user_id') == $post_obj-getUserId()) { $this-edit_form = new EditForm($post_obj-getId()); } In template

[symfony-users] Re: User Dependence

2010-05-18 Thread Ozzy
That worked, thanks. On May 18, 4:45 pm, Gareth McCumskey gmccums...@gmail.com wrote: Here's an alternative. Don't show any edit capabilties, including edit forms, if the user_id in session does not match a posts user_id. In action: if ($this-getUser()-getAttriburte('user_id') ==

Re: [symfony-users] language

2010-05-18 Thread Augusto Flavio
Then you can try to copy the /lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/i18n/sf_admin.fr.xml to /apps/frontend/i18n note: use the sfDoctrine with you use the doctrine as ORM. bye Augusto Morais -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: MVC vs module in Symfony

2010-05-18 Thread Richtermeister
Also, to answer your filters question - assuming you mean request filters (cache, security, etc.), I believe the answer is no, you can only configure them for the whole application, and the reason is simple - they execute before you even know which module was requested. They're universal.

[symfony-users] getting object labels sfShoppingCart

2010-05-18 Thread el-sid
Hi, im trying to integrate sfShoppingCart with doctrine. Its all going well except for the view ?php foreach ($items as $item): ? ?php $object = call_user_func(array($item-getClass() . 'Table', 'retrieveProductName'), $item-getId()) ? ?php echo $object-getLabel() ?br /

[symfony-users] Re: Doctrine documentation is gone??

2010-05-18 Thread Jared
Doesn't look like any of the old URLs are working. Google doctrine documentation: The first link loads a blank page: doctrine-project dot org slash documentation as does every other google search (so far that I've seen) for something in the doctrine documentation, e.g. doctrine dql

[symfony-users] Symfony 2 : Ready for new projects?

2010-05-18 Thread Jean-Marc Fontaine
Hello, I am wondering whether we should choose version 1.4 or 2 for our new project that will be released this fall. We will have to maintain over a long time many web sites using our new specialized CMS. I know Symfony 2 is still experimental and should be out late 2010 but as the team never

Re: [symfony-users] Symfony 2 : Ready for new projects?

2010-05-18 Thread Michał Piotrowski
Hi, 2010/5/18 Jean-Marc Fontaine j...@jmfontaine.net: Hello, I am wondering whether we should choose version 1.4 or 2 for our new project that will be released this fall. I have used development sf1.3 version for a new app. But it was only _evolution_. Symfony 2 is _revolution_ - and nothing

[symfony-users] Swift spool strategy on Symfony really works?

2010-05-18 Thread Nei Rauni Santos
Hi, I was trying to use the spool strategy of swift + doctrine but I give up, I think that it's not completely implemented. I follow this how to ( http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails ) and It works to save the emails on database, but when I run the command

Re: [symfony-users] Re: Doctrine documentation is gone??

2010-05-18 Thread Alessandro Massignan
Hi, Doctrine documentation is available (they just change the link)... You could find it at: * http://www.doctrine-project.org/projects/orm for both 1.2 and 2.0: * http://www.doctrine-project.org/projects/orm/1.2/docs/en * http://www.doctrine-project.org/projects/orm/2.0/docs/en have i miss