[symfony-users] Re: link_to_remote

2009-07-23 Thread Frank Stelzer
But your former posted ajax template works (the alert example)?? Why the hell do use the body tag there? ... The body tag should be listed in your decoration template. Am 24.07.2009 um 08:34 schrieb DEEPAK BHATIA: > > Hi, > > Thanks for the info. But the code below in test2Success.php is YUI

[symfony-users] Re: link_to_remote

2009-07-23 Thread DEEPAK BHATIA
Hi, Thanks for the info. But the code below in test2Success.php is YUI Javascript code which is not running. Please help me in this = http://yui.yahooapis.com/2.7.0/build/fonts/fonts-min.css"; /> http://yui.yahooapis.com/2.7.0/build/autoc

[symfony-users] Re: Override default error pages

2009-07-23 Thread korfos
You can create a new security module and in the actions.class.php create error404Execute function. After you've customized the error404Success.php template, uncomment and modify in apps\frontend \config\settings.yml the following: .actions: error_404_module: security # To be called

[symfony-users] Re: link_to_remote

2009-07-23 Thread Frank Stelzer
You need the "script" flag in your remote function call, otherwise you permit to execute javascript within ajax responses: http://www.symfony-project.org/book/1_2/11-Ajax-Integration#chapter_11_sub_authorizing_script_execution Am 24.07.2009 um 07:41 schrieb DEEPAK BHATIA: > > Hi, > > The code

[symfony-users] Re: link_to_remote

2009-07-23 Thread DEEPAK BHATIA
Hi, The code in javascript section in test2Success.php is not executed. Why is that when link_to_remote is called, the associated action/module doesn't execute Javascript code ? = My main page has the following code 'feedback','url' => 'test/test2',)) ?>

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread Gareth McCumskey
What is $this->status_objects? How is it defined? Do you use Propel or Doctrine to get data from your database? If Doctrine then I don't know, but if Propel and you had at some point perhaps: $this->status_objects = StatusObjectsClass::doSelect(new Criteria()); Then $this->status_objects would b

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread -gary-
Yes, my: public function getStatusObject($key) { return (isset($this->status_objects[$key])) ? $this- >status_objects [$key] : null; } is not returning an object and that why I'm having problems in the template. Anyone have any idea on this please? I'd appreciate any help at all. Tha

[symfony-users] Re: loading choices from the database using sfWidgetFormSelectDoubleList

2009-07-23 Thread adrianrz
Hi, Yes ArticlePeer:getTitle doesn't exist because is an Article class method. For retrieve the titles you must create an static method into peer class that retrieve your data as an array (this is only one way to do it) public static function retrieveArticle(Criteria $c=null) { if(!$c) $c

[symfony-users] Override default error pages

2009-07-23 Thread Eno
I created an error/error.html.php file in my project's config directory as documented here: http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_default_modules_and_actions However, symfony doesn't use my custom error page. I have the default modul

[symfony-users] the default optiion works ???????

2009-07-23 Thread Germana Oliveira
Hi , i have this : > $this->widgetSchema['estado_id'] = new sfWidgetFormPropelChoice(array( >'model' => 'Estado', >'add_empty' => false, >'order_by' => array('Nombre', 'asc'), >'default'=> '$estado_id->getId()', > )); But it just does not wo

[symfony-users] Re: i18n in model::Peer method

2009-07-23 Thread Carlo
I think that i18n:extract task looks for __() only in /apps/ yourappname/*. Is it correct? Carlo On Jul 15, 9:27 am, Mateusz Kaczmarek wrote: > Hello, I have some trouble with i18n system. How to translate strings > in form items that are generated automaticaly for example radio > buttons or se

[symfony-users] Re: propel:data-load error

2009-07-23 Thread Gábor Fási
Did you clear your cache (php symfony cc) after doing a propel:build-all? On Thu, Jul 23, 2009 at 18:07, carllang wrote: > > Hi > > I've just installed Symfony, and I'm busy going through th > jobeet doumentation to setup the example app. > I've got to the point of issuing this > command: > php s

[symfony-users] solution for trailing slash problem

2009-07-23 Thread mlu...@gmail.com
Hi! I was now looking for a solution for two days. And it's hard to find a working one. Finally I found it and to make it easier for next one looking for a solution, I will post it here: RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L] This line added into the .htaccess removes the traili

[symfony-users] Re: link_to_remote

2009-07-23 Thread Szabolcs Heilig
Hi, I think your problem is based on the behavior of Symfony in "AJAX mode". When you load your action through link_to_remote() it doesn't decorate that with your layout. Without that it is possible to your ui-magic never initialized. 2009/7/23 DEEPAK BHATIA > I have a web page which is referenc

[symfony-users] Re: Not Found Error only in production envoirment.

2009-07-23 Thread Sid Ferreira
Yes... ALL of them I dunno what's happening but something is adding the slash in the end. the html code is right: no slash. --- Sidney G B Ferreira Desenvolvedor Web On Thu, Jul 23, 2009 at 16:20, Gábor Fási wrote: > > Do you have your routes before the catch-all :module/:action one? > > On

[symfony-users] Re: Not Found Error only in production envoirment.

2009-07-23 Thread Gábor Fási
Do you have your routes before the catch-all :module/:action one? On Thu, Jul 23, 2009 at 20:49, Sid Ferreira wrote: > This error is happening almost in all my routes. > One example is this: > > > admin: >   url:   /admin >   param: { module: sfAdminDash, action: dashboard } > > When you click o

[symfony-users] Access an Embedded form from Actions.class.php

2009-07-23 Thread Germana Oliveira
Hi!! Im trying to access my embedded form from my actions class, so i can set a default value to a combo Box, i did this: $this->form['embeded_form']->setDefault('combo', 'value'); But this comes: *Fatal error*: Call to undefined method sfFormFieldSchema::setDefault() in */home/germana/www/i

[symfony-users] Re: sfGuardUserAdminForm

2009-07-23 Thread BenjaM1
And also if($user->hasGroup('Editor')) { unset( $this['is_super_admin'] ); } On 23 juil, 21:02, BenjaM1 wrote: > Note that > > if($user->hasGroup('Editor')) > { >    if($this->offsetExists('groups_list') die('toto'); > > } > > works, it shows 'toto' ! > > On 23 j

[symfony-users] Re: sfGuardUserAdminForm

2009-07-23 Thread BenjaM1
Note that if($user->hasGroup('Editor')) { if($this->offsetExists('groups_list') die('toto'); } works, it shows 'toto' ! On 23 juil, 20:55, BenjaM1 wrote: > Hy, > > I have a strange issue in my code. > > I need to display fields of the sfGuardAdminUserForm in my template > switch user gr

[symfony-users] sfGuardUserAdminForm

2009-07-23 Thread BenjaM1
Hy, I have a strange issue in my code. I need to display fields of the sfGuardAdminUserForm in my template switch user group: - developers can edit permissions and groups so the complete form is displayed in the view - editors can't edit is_super_admin, permissions and groups. So I test in the

[symfony-users] Not Found Error only in production envoirment.

2009-07-23 Thread Sid Ferreira
This error is happening almost in all my routes. One example is this: admin: url: /admin param: { module: sfAdminDash, action: dashboard } When you click on the link, it forwards to an error: Empty module and/or action after parsing the URL "/admin/" (/). What may be the problem? In _de

[symfony-users] link_to_remote

2009-07-23 Thread DEEPAK BHATIA
Hi, I have a web page which is referenced by link_to_remote action. This web page/template has yahoo user interface javascript api's. When I call this page as normal form submission, I get the functionality of yahoo user interface javascript api but not when it is called as link_to_remote. Ple

[symfony-users] Re: link_to + parameter - my parameters get overridden

2009-07-23 Thread Eno
On Thu, 23 Jul 2009, mlu...@gmail.com wrote: > showcategory: > url: /category/:slug/:page > param: { module: gamelists, action: category, slug: action, page: > 1 } > ... > > A corrresponding url look like > /category/dress-up/1 > > The call to link_top looks like this: > link_to("dress-up

[symfony-users] sfGuardUserFormFilter Customization

2009-07-23 Thread Germana Oliveira
I tried what you tell me but this error comes out: Unable to set the label on an unexistant widget ("from_date"). something like this should work. $this -> widgetSchema -> setLabel("from_date", "From"); Daniel On Jul 22, 8:08 pm, Germana Oliveira w

[symfony-users] propel:data-load error

2009-07-23 Thread carllang
Hi I've just installed Symfony, and I'm busy going through th jobeet doumentation to setup the example app. I've got to the point of issuing this command: php symfony propel:data-load and that gives me the following errors: C:\work\sf_project\jobeet>php symfony propel:data-load >> propelloa

[symfony-users] Re: sfGuardUserFormFilter Customization

2009-07-23 Thread Richtermeister
something like this should work. $this -> widgetSchema -> setLabel("from_date", "From"); Daniel On Jul 22, 8:08 pm, Germana Oliveira wrote: > Hi!! > > Im trying to customize my  UserFormFilter, so i have this in my  setWidget: > ... >  'created_at'                    => new > sfWidgetFormFilt

[symfony-users] Re: Generate absolute URL for upload directory

2009-07-23 Thread Mo Mughrabi
Thanks Eno, I found a way which helped me return the absolute url for any location i need through the public_path helper. First i had to include the helper through the getConfigurations sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url')); and then just use the public_path('u

[symfony-users] Re: Generate absolute URL for upload directory

2009-07-23 Thread Eno
On Thu, 23 Jul 2009, Mo Mughrabi wrote: >I was trying to generate an absolute URL inside my form classes using > sfContext::getInstance()->getController()->genUrl(); but apparently genUrl > only can be used when supplied a route or module/action but i cannot get it > to return the absolute pa

[symfony-users] Custom Fields in sfGuardUser list filters

2009-07-23 Thread Denis Fingonnet
Hello all, I'm stuck here, I need help from the community. Here is my schema : MyUser: > columns: > sf_guard_user_id: > type: integer(4) > my_customer_id: > type: integer > email: > type: string(255) > relations: > sfGuardUser: > local: sf_guard_user_i

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread -gary-
In the template? This is a function call though. On Jul 23, 11:22 am, Dirk Hartmann wrote: > getStatusObject[$key]->... Not Round brackets... > > Dirk Hartmann > Schenckstr. 10 > 57074 Siegen > m > > Am 23.07.2009 um 17:12 schrieb -gary- : > > > > > Apologies for replying to my own post, but do

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread -gary-
In the template? This is a function call though. On Jul 23, 11:22 am, Dirk Hartmann wrote: > getStatusObject[$key]->... Not Round brackets... > > Dirk Hartmann > Schenckstr. 10 > 57074 Siegen > m > > Am 23.07.2009 um 17:12 schrieb -gary- : > > > > > Apologies for replying to my own post, but do

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread Dirk Hartmann
getStatusObject[$key]->... Not Round brackets... Dirk Hartmann Schenckstr. 10 57074 Siegen m Am 23.07.2009 um 17:12 schrieb -gary- : > > Apologies for replying to my own post, but does anybody have any idea > on this one? I have no idea why I am getting this error. > > Thanks in advance. > > O

[symfony-users] Re: Embedding forms / Objects

2009-07-23 Thread -gary-
Apologies for replying to my own post, but does anybody have any idea on this one? I have no idea why I am getting this error. Thanks in advance. On Jul 22, 7:43 pm, -gary- wrote: > Hi, > > I am trying to do a multiple edit on a database table. > > Whn I output like this: > [code] > getStatusO

[symfony-users] AJAX forms

2009-07-23 Thread HAUSa
How do you make AJAX forms? Do you check each field immediately after the user completes it (by adding a green border to it by example)? And how can I make this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfon

[symfony-users] Functional test count

2009-07-23 Thread sikk
Hi guys, I'm just wondering, does someone implemented a way to do some "count" verification at the end of a functional test file. Kind of like unit testing, where we do : $t = new lime_test(1, new lime_output_color()); Which mean indeed we gonna run 1 test. Does something like that exist f

[symfony-users] Generate absolute URL for upload directory

2009-07-23 Thread Mo Mughrabi
Hello everyone, I was trying to generate an absolute URL inside my form classes using sfContext::getInstance()->getController()->genUrl(); but apparently genUrl only can be used when supplied a route or module/action but i cannot get it to return the absolute path of my uploads folder. Any idea

[symfony-users] Re: unwanted filtering of javascript onclick in widget

2009-07-23 Thread Roland Cruse
Not using ajax for this call but thanks for the tip. On Thu, Jul 23, 2009 at 2:28 PM, Gareth McCumskey wrote: > Also make sure that if you have any ajax function calling your form that you > set the "script"=>true option for example if you had used link_to_remote(): > > link_to_remote("Link Text"

[symfony-users] Re: unwanted filtering of javascript onclick in widget

2009-07-23 Thread Roland Cruse
hmm, thats one way, but will not work as a solution for me. Thanks anyhow. On Thu, Jul 23, 2009 at 2:24 PM, Gareth McCumskey wrote: > don't use the javascript: part. > > array( 'onclick' =>"setFilterCbValue('foobar');") > > > On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse wrote: >> >> Hi >> >>

[symfony-users] Re: unwanted filtering of javascript onclick in widget

2009-07-23 Thread Gareth McCumskey
Also make sure that if you have any ajax function calling your form that you set the "script"=>true option for example if you had used link_to_remote(): link_to_remote("Link Text", array( "url"=>"module/action", "update"=>"div_to_update", "script"=>true )) On Thu, Jul 23, 2009 at 2:09 PM, R

[symfony-users] Re: unwanted filtering of javascript onclick in widget

2009-07-23 Thread Gareth McCumskey
don't use the javascript: part. array( 'onclick' =>"setFilterCbValue('foobar');") On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse wrote: > > Hi > > Anyone know how to avoid filtering of javascript code in attributes > passed to a widget? > > For example array( 'onclick' => > "javascript:setFilt

[symfony-users] unwanted filtering of javascript onclick in widget

2009-07-23 Thread Roland Cruse
Hi Anyone know how to avoid filtering of javascript code in attributes passed to a widget? For example array( 'onclick' => "javascript:setFilterCbValue('foobar');") gets sent but when the filter renders to html: onclick=""javascript:setFilterCbValue('foo');"" I think it is the htmlspecialchar

[symfony-users] Re: How do I share partials between apps?

2009-07-23 Thread fincom
Hi, I don't know if it's the best solution, but i hope it can help. Create a plugin with a module that contain your partials. Then you can share those partials between apps, you'll have just to activate your module for your apps. On 23 juil, 05:49, jskidmore wrote: > I can only see how to sha

[symfony-users] Re: How do I share partials between apps?

2009-07-23 Thread Gareth McCumskey
He's talking about seperate apps in the same project, not two different projects. Like a frontend and backend app: project_directory apps frontend backend On Thu, Jul 23, 2009 at 10:10 AM, Dennis wrote: > > Or create a symbolic link in both projects to a common project > directory ind

[symfony-users] Re: routing and slugify fieldnames

2009-07-23 Thread vinnie
OK thanks, I get it now. On Jul 22, 5:37 pm, Gábor Fási wrote: > the getCompanySlug is called camelCase, when the first letter is > lowercase, every other first letter of a word is capital. Another was > is to separate the words with an underscore, so companySlug is the > same as company_slug,

[symfony-users] link_to + parameter - my parameters get overridden

2009-07-23 Thread mlu...@gmail.com
Hi! I have again a routing problem(It seems the routing system doesn't like me very much :-)) On my site I have a category list, which shoes entries by category. The routing is defined as: ... showcategory: url: /category/:slug/:page param: { module: gamelists, action: category, slug: acti

[symfony-users] Re: How do I share partials between apps?

2009-07-23 Thread Dennis
Or create a symbolic link in both projects to a common project directory individual files as needed? Not really fancy, a little maintenance demanding, but MUCH faster :-) On Jul 22, 8:49 pm, jskidmore wrote: > I can only see how to share partials between modules in a single app. > How can I sha