Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
Seeking feedback. Does each module only pertain to a one model (database table)? On Mon, Mar 1, 2010 at 11:07 AM, Roland Cruse wrote: > Not for the url, as routing can show what ever url you want. > > Its more of a house keeping design thing. Lets say you have three > areas of y

Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
her model to an existing module? Because of > the URL? > > On 27 ún, 08:05, Roland Cruse wrote: >> Hi >> >> symfony doctrine-generate-crud seems to build a module for each model >> (database table) with actions edit, delete, create etc.Using this task >> you ca

[symfony-users] Only one model per module for doctrine-generate-crud?

2010-02-26 Thread Roland Cruse
Hi symfony doctrine-generate-crud seems to build a module for each model (database table) with actions edit, delete, create etc.Using this task you can not add another model to the same module. The task will over write the edit, delete etc. actions. I see no options in the task for prefixing actio

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-25 Thread Roland Cruse
ahhh. That will work. Thanks! On Wed, Feb 24, 2010 at 12:28 AM, Gábor Fási wrote: > Put your id (or something else unique) in the url, so you can use that > to retrieve the object. > > On Wed, Feb 24, 2010 at 01:04, Roland Cruse wrote: >> Thanks. That did it

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Roland Cruse
> $this->excursion. Sure that find() does not return an array? > I always use ->findOneById($request->getParameter('id')); to be sure. > > bye, > > -christian- > > Am Tue, 23 Feb 2010 14:06:02 -0800 > schrieb Roland Cruse : > >> Hi >>

[symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Roland Cruse
Hi I must be missing something. I am using symfony 1.3 and trying to update a record in an action but what happens is an "insert into".which generates an integrity error. Here is my code. $this->excursion = Doctrine::getTable('TdExcursion')->find($request->getParameter('id')); $this->

Re: [symfony-users] Re: symfony 1.4 doctrine: few plugins :(

2009-12-11 Thread Roland Cruse
ur CLI... > > I'm really confused for what is going on. > Regards. > > On Dec 11, 3:37 pm, Roland Cruse wrote: > Hi > > I am > starting a new install... > > -- > > You received this message because you are subscribed to the Google Groups > "symfo

[symfony-users] symfony 1.4 doctrine: few plugins :(

2009-12-11 Thread Roland Cruse
Hi I am starting a new installation and am trying to decide between propel and doctrine. It seems doctrine will become symfony's default orm and symfony 2.0 will drop propel. Plus the symfony installation page recommends symfony 1.4 for new installations. But! Where are the doctrine plugins? On t

[symfony-users] autoloading custom symfony core class before core classes...possible?

2009-07-24 Thread Roland Cruse
Hi I can not get around it, I need to change the sfWidget.class.php. Extending it is too much trouble because its so high in the extended tree. Is there a way to have symfony see my sfWidget.class.php instead of the one in the core classes (which I do not want to touch)? Autoloading seems to onl

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

2009-07-23 Thread Roland Cruse
link_to_remote("Link Text", array( >   "url"=>"module/action", >   "update"=>"div_to_update", >   "script"=>true > )) > > 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 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

[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] build-schema only sees i18n foreign keys...

2009-07-14 Thread Roland Cruse
Hi This is a bit of a head scratcher for me...I have duplicated my development environment on another box (symfony http://svn.symfony-project.com/tags/RELEASE_1_2_4 r:15270, duplicated the database) everything is working...so far. Except after a propel:build-schema schema.yml only shows foreign k

[symfony-users] Re: make front controller invisible

2009-06-29 Thread Roland Cruse
On Mon, Jun 29, 2009 at 4:27 PM, Eno wrote: > > On Mon, 29 Jun 2009, Roland Cruse wrote: > >> >> That's a bit of hoop jumping... >> > > Yes because a folder can only have one index.php... > ahh. Thanks for the explanation. I guess it must be some unde

[symfony-users] Re: make front controller invisible

2009-06-29 Thread Roland Cruse
e them to index.php > 4. adept the relativ paths in the front controller to the subfolder > 5. let the virtual hosts point to the just created subfolders > 6. use symlinks to point from your subfolders to your common web > assets folders in the web dir > > Frank > > Am 29.06

[symfony-users] make front controller invisible

2009-06-29 Thread Roland Cruse
Hi Does anyone know if you can make the frontcontroller transparent ("not" show up) in the url for a multi-apllication project? Right now I have three applications which have an apache virtual host, a .htaccess{_foo}, and a DirectoryIndex. The .htaccess redirects to the correct front controller.

[symfony-users] where to set mysql user variables for trigger use

2009-05-07 Thread Roland Cruse
Hi I have a mysql trigger that is wanting a dynamic variable which my symfony app session would have after login. The logged in user id. The app can not be used without logging in. I have a filter that comes after the security filter which sets this variable with a mysql query (SET @user_id=$use

[symfony-users] Re: audit columns with propel?

2009-04-24 Thread Roland Cruse
Excellent. I do not know how I missed that. Thanks! On Fri, Apr 24, 2009 at 4:56 PM, michael.pie...@googlemail.com wrote: > > Hi, > > http://www.symfony-project.org/plugins/sfPropelActAsSignableBehaviorPlugin > > Michael > > > > On 24 Apr., 16:11, Roland Cruse wr

[symfony-users] audit columns with propel?

2009-04-24 Thread Roland Cruse
Hi Using symfony 1.2/propel does anyone have any tips or links for transparently updating/inserting audit columns (created_at, created_by, updated_at, modified_by). I am not finding much on the Internet Or would you need to role your own with "behaviours" or something else... Very much appr

[symfony-users] Re: i get a blank white screen, even in dev mode, even with sfErrorHandler installed

2009-04-20 Thread Roland Cruse
You might try removing sfErrorHandler from your settings.yml (clear cache) and see if your log file is getting written to while in "dev" mode.Then go from there. On Mon, Apr 20, 2009 at 9:22 AM, Kevin Barsotti wrote: > > I'm honestly not sure what to tell you; if there's a PHP syntax error > tha

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Ohh yeah!! The error_reporting setting got the errors to show. What a relief. Thank you everyone! On Thu, Apr 16, 2009 at 2:41 PM, Dheeraj Kumar Aggarwal wrote: > in settings.yml >     error_reporting:    ?> > > > On Thu, Apr 16, 2009 at 6:02 PM, Roland Cruse wrote: &g

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
t the full stack trace in my custom environment? > > On 16 Apr 2009, at 12:27, Roland Cruse wrote: > >> >> I installed sfErrorHandler (using symfony 1.2) >> >> The log showed proof of installation:  "Apr 16 05:55:37 symfony [info] >> {sfHardenedRenderingFilte

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
g the _dev front controller and commenting the die() > command, but make sure you delete is as soon as you've finished. > > On Thu, Apr 16, 2009 at 10:52, Roland Cruse wrote: >> >> Hi symfony coders >> >> I making a rest application which does not show php s

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
> >> I suggest uploading the _dev front controller and commenting the die() >> command, but make sure you delete is as soon as you've finished. >> >> On Thu, Apr 16, 2009 at 10:52, Roland Cruse >> wrote: >>> >>> Hi symfony coders >>> >

[symfony-users] blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Hi symfony coders I making a rest application which does not show php syntax errors. Just a blank screen, quite a pain. I wondering if this has happened to anyone else? The "rest" app lives in an existing symfony application, has been set up as a plugin, has its own routing.yml, has its own fro

[symfony-users] Re: Dynamic security.yml

2009-04-16 Thread Roland Cruse
Hi I am working on an application which needs to be generic where it would be up a user (administrator) to decide what actions other users are allowed. So we built a check box interface to security.yml files in every module using the sfYaml class for reading said files and writing them back again

[symfony-users] ajax (ext-2.2) weirdness. Page only works with logging levels INFO or DEBUG or the cached security.yml.php NOT exists

2009-03-06 Thread Roland Cruse
Hi I do not want to say how long I have spent on this...but I have an issue where an ajax call is working in a "dev" environment and not in a "prod" environment. After drilling in It turns out that the ajax call would only work with logging enabled at levels "info" or "debug", no others. Or...i

[symfony-users] Re: symfony 1.2 possible to use validators without forms?

2009-02-09 Thread Roland Cruse
Thanks Lee. After studying your code I realized I could not do it your way because the validator I needed extended the sfValidatorBase, your Captcha validator extends sfValidator. The two classes have different constructor parameters. Anywho below worked for me inside an action. $testvalida

[symfony-users] symfony 1.2 possible to use validators without forms?

2009-02-06 Thread Roland Cruse
Hi Anyone know if it is possible to use validators without forms? A url describing its use, if it exists, would be excellent. Thanks for any help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" g

[symfony-users] how can you do case insensitive regex in sfRoute?

2008-12-29 Thread Roland Cruse
Hi Does anyone know of a way to make the regex for "method" parameter below case insensitive? Thanks! webapi: url: /get/:method/:sf_format param: { module: apiServer, action: index } requirements: method: (?:Property|PropertyExt|Location|LocationExt|PropertyAvail|PropertyPricing|Pr

[symfony-users] Whats the best way to get module/action from routing label (symf 1.2)?

2008-12-05 Thread Roland Cruse
Hi I was wondering if there was a better way to get module/action from a routing label other than this way: ... /** * Retrieves the module and action from a routing label * * @param string $route * @return array ($module, $action) */ public static function getModActFromRoute($r

[symfony-users] Re: Tip resolving: Task "propel:build-filters" is not defined error

2008-12-05 Thread Roland Cruse
meone. On Fri, Dec 5, 2008 at 12:48 PM, Roland Cruse <[EMAIL PROTECTED]> wrote: > Hi. > > Just doing an upgrade to 1.2 from 1.1 from the svn 1.2 branch and was > getting: Task "propel:build-filters" is not defined. > > Editing the config/ProjectConfiguration.class.p

[symfony-users] Re: svn co from 1.2 branch "php symfony -V" gives 1.2.0-DEV ?

2008-12-05 Thread Roland Cruse
Now I get: symfony version 1.2.0. Much better! Thank you On Fri, Dec 5, 2008 at 12:49 PM, Samir van de Sand <[EMAIL PROTECTED]> wrote: > Use http://svn.symfony-project.com/tags/RELEASE_1_2_0/ instead of branches. > > On Fri, Dec 5, 2008 at 12:38 PM, roland cruse <[EMAIL

[symfony-users] Tip resolving: Task "propel:build-filters" is not defined error

2008-12-05 Thread Roland Cruse
Hi. Just doing an upgrade to 1.2 from 1.1 from the svn 1.2 branch and was getting: Task "propel:build-filters" is not defined. Editing the config/ProjectConfiguration.class.php setup function: // $this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin')); $this->enable

[symfony-users] svn co from 1.2 branch "php symfony -V" gives 1.2.0-DEV ?

2008-12-05 Thread roland cruse
Hi svn co http://svn.symfony-project.com/branches/1.2 gives me a symfony version of 1.2.0-DEV. Why the "DEV" on the end? Or it just needs taking off. Judging by this link symfony 1.2 is now a production release. http://www.symfony-project.org/blog/2008/12/01/symfony-1-2-is-already-available I

[symfony-users] Re: Will compat10 be taken out of symfony 1.2?

2008-12-04 Thread roland cruse
olabs.com | symfony-project.com | aide-de-camp.org > Tél: +33 1 40 99 80 80 > > > roland cruse wrote: >> Thanks Fabian. I have just found >> http://www.symfony-project.org/blog/2008/12/01/symfony-1-2-is-already-available >> >> Any thoughts as to how long compat10

[symfony-users] Re: Will compat10 be taken out of symfony 1.2?

2008-12-04 Thread roland cruse
is still included > Fabian > > On Thu, Dec 4, 2008 at 11:11 AM, roland cruse <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> Its reasonable to think that compat10 will stay in symfony 1.2 when it >> upgrades from Beta, but I am unable to get a definitive answer

[symfony-users] Will compat10 be taken out of symfony 1.2?

2008-12-04 Thread roland cruse
Hi Its reasonable to think that compat10 will stay in symfony 1.2 when it upgrades from Beta, but I am unable to get a definitive answer after a lot of searching. Could anyone please put this question to rest? And if they know the answer as to when the symfony developers would like to realistica