[symfony-users] Re: Can I put a global component into layout.php?

2009-05-25 Thread Stephen
Thanks. I think I got your point. I have a new question, can I import a component belongs to other module? Like I put these components into the internal module, how should I invoke them from other module? On May 25, 3:35 pm, Frank Stelzer d...@bleedingmoon.de wrote: A component does not make

[symfony-users] Select multiple cells in a table

2009-05-25 Thread DEEPAK BHATIA
Hi, I am building an application where i need to selected multiple rows in a column in a table using mouse then use them for further action. Please let me know how to do it. Regards Deepak Bhatia --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-25 Thread Stephen
Thanks, I got it. I thought I can't import a component from another module. On May 25, 3:35 pm, Frank Stelzer d...@bleedingmoon.de wrote: A component does not make sense without any module. It has to execute   some logic and this logic should be placed in some module (otherwise   you should

[symfony-users] Re: Select multiple cells in a table

2009-05-25 Thread Gareth McCumskey
Symfony isn't what you need. Try something like EXTJS then. Or build your own ajax functions etc to accomplish. This isn't as simple as it sounds to get working with just protoype so your best bet is to look at another javascript library like extjs On Mon, May 25, 2009 at 9:20 AM, DEEPAK BHATIA

[symfony-users] ExtJs JSON response

2009-05-25 Thread santail
There is action with next code: public function executeUpload(sfWebRequest $request) { $this-getResponse()-setHttpHeader('Content-Type','application/ json; charset=utf-8'); $json = array('success' = true); return $this-renderText(json_encode($json)); } Browser promts Save file

[symfony-users] Re: propel choice form - multi-select

2009-05-25 Thread esion
I haven't any example and I though I'll find it on this page. So I tried something like that on your relationship At start User and Level haven't any UserLevel so you can't embed UserLevel form. You should build a new widget into your form and allow multiple select //UserForm.class.php

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread santail
Action executes of file upload. If that helps to find a bug. --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Select multiple cells in a table

2009-05-25 Thread Ian P. Christian
2009/5/25 DEEPAK BHATIA toreachdee...@gmail.com: I am building an application where i need to selected multiple rows in a column in a table using mouse then use them for further action. Look at how the admin generator does it - it does exactly that. -- Blog: http://pookey.co.uk/blog Follow

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread Leon van der Ree
My guess is your content-type. Try keeping it text/html instead of application/json On May 25, 10:21 am, santail nikolai.muh...@gmail.com wrote: Action executes of file upload. If that helps to find a bug. --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread Gábor Fási
Check your headers with LiveHTTPheaders or something similar: do you also send a content-disposition: attachment one? That's what triggers the save as dialog. If you do, change it to inline and it should fix it. On Mon, May 25, 2009 at 10:09, santail nikolai.muh...@gmail.com wrote: There is

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread santail
That helps, thanks. But what the difference between these two types of content for browser ? On 25 май, 12:00, Leon van der Ree l...@fun4me.demon.nl wrote: My guess is your content-type. Try keeping it text/html instead of application/json On May 25, 10:21 am, santail

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread Gareth McCumskey
application/json is a way to specify to the browser that what is coming is a JSON formatted sequence of data and not html to display in the browser. If the request wasn't initiated by an ajax request then it doesn't know how to process properly. 2009/5/25 santail nikolai.muh...@gmail.com That

[symfony-users] Re: How to install sfSimpleCMSPlugin in Symfony 1.2

2009-05-25 Thread Marek
I think you need to wait for sfSimpleCMS2Plugin being finished - it wasn't when I last checked. http://www.symfony-project.org/plugins/sfSimpleCMS2Plugin On 25. Máj, 04:54 h., yalc...@gmail.com yalc...@gmail.com wrote: Hi, i'm trying to install  sfSimpleCMSPlugin in Symfony 1.2, but the

[symfony-users] Re: How to install sfSimpleCMSPlugin in Symfony 1.2

2009-05-25 Thread cleve
I'd recommend this instead: http://www.symfony-project.org/plugins/pkContextCMSPlugin Doctrine though On May 25, 8:07 am, Marek m0k...@gmail.com wrote: I think you need to wait for sfSimpleCMS2Plugin being finished - it wasn't when I last checked.

[symfony-users] Re: ExtJs JSON response

2009-05-25 Thread Lee Bolding
This is the correct solution. Your browser attempts to download the response as a file because it doesn't know what to do with the mime type application/json If you set the headers to text/html for testing purposes you'll see the response as plain text in your browser On 25 May 2009, at

[symfony-users] sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread Campezzi
Hi there! I'm getting started with sfDoctrineGuardPlugin and after doing a few tutorials, I started to implement it in one of my projects. I have created a registration form and embedded the Profile class form. So far, so good - whenever a new user registers, both the sfGuardUser and Profile

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-25 Thread Johannes Heinen
Still no problem at all using the latest doctrine 1.1 branch + the latest symfony 1.2 branch. But because of the trouble man have if he wants to install a plugin which only runs under doctrine 1.1, i wanted to revert the orm layer version to 1.0. There i encountered another issue that has

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread FlyLM [ML]
Hi, If you have always sfDoctrineGuardPlugin installed, take a look at this file line 84 (savegroupsList method) /lib/form/doctrine/sfDoctrineGuardPlugin/base/BasesGuardUserForm.class.php = $this-object-link('groups', array_values($link)); Fabien 2009/5/25 Campezzi campe...@gmail.com: Hi

[symfony-users] Re: How to access the object of an embedded form

2009-05-25 Thread Tom Haskins-Vaughan
Thanks, esion. I'll give it a go and let you know how I get on. esion wrote: Hi, First, I'm not sure that works : ?php foreach($form as $cartItemForm): ? tr td?php echo $cartItemForm['quantity']-renderLabel() ?/ td td?php echo

[symfony-users] The route x does not exist

2009-05-25 Thread gisellec
I've got this error in apache error log file: apache_www_error: [Fri May 22 12:26:19 2009] [error] [client --- The route news does not exist. Well this is true because I really don't have this route in my routing files. I have a module called news, so I don't understand how this

[symfony-users] sfDoctrineGuard groups/permissions/credentials problem

2009-05-25 Thread Campezzi
Hi there, I've been messing with sfDoctrineGuardPlugin for the last few days (as you can notice from my posts in this period) and I'm running into a strange problem. - It is my understanding that a user inherits permissions from his groups. - It is also my understanding that during the signIn()

[symfony-users] how can we find out if an URL is pointing to a template? (if we want to delete the template?)

2009-05-25 Thread Lawrence
Recently, I was working on a site, and we deleted a template that we no longer wanted. But it turned out, in an obscure area of the site, there was a link going to that template. So when people clicked on that link, they got an error page. The site is under rapid evolution and we are constantly

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread Campezzi
Hi Fabien, Thanks for the answer. Since the group was supposed to be added automatically, I had the groups_list widget unset in my form. The function you pointed me to seems to take what was stored in that variable and link the values to the user being registered. I assume I can get this working

[symfony-users] Re: how can we find out if an URL is pointing to a template? (if we want to delete the template?)

2009-05-25 Thread Frank Stelzer
Define your custom error module and log the actions which could not be reached anymore. Otherwise you have to follow all links of your functional tests and check if the next pages are returning a 200 response, too. Am 25.05.2009 um 22:05 schrieb Lawrence: Recently, I was working on a

[symfony-users] Re: The route x does not exist

2009-05-25 Thread Frank Stelzer
This happens after the latest routing changes, i think. I still have to fight against those changes for myself, too :P Example: = sf 1.1(?) link_to( 'Some cool news', 'news' ); -- would have generate a link to: news/index or only news sf 1.2 link_to( 'Some cool news', 'news' );// same like

[symfony-users] Re: sfDoctrineGuard groups/permissions/credentials problem

2009-05-25 Thread Campezzi
Did a few more tests and found indication that the problem might actually not be in the plugin, but on the sample registration form I used as a base - the one from this tutorial: http://www.symfony-project.org/blog/2008/12/03/call-the-expert-simple-registration-with-sfdoctrineguardplugin My

[symfony-users] Re: JSON Response after uploading file

2009-05-25 Thread ScaNNeR
Try simplest: public function executeWriteUserData(sfWebRequest $request) { $this-renderText($youResultArray); return sfView::NONE; } I dont use response with construction application/json This method is work. On May 24, 4:15 pm, santail nikolai.muh...@gmail.com wrote: I