Re: [symfony-users] Re: Changing the character used to replace spaces in url_for

2009-11-23 Thread Alexandre SALOME
Spaces are encoded as "+" in URL style (HTTP definition). Giving some text without filtering could give you some bad URLs. What about characters : é, à, ç, %, * Maybe you should add a slug column to your schema, to get a-friendly-url-text and use it. "Hard replacing" the spaces using str_replace

Re: [symfony-users] Need advise regarding a Doctrine_Template that all CMS entities will actAs

2009-11-23 Thread Alexandre SALOME
You should read at the documentation. You would learn the "I18n" behavior. Behaviors are "Searchable", "Sortable", "I18n", "Sluggable", "Timestampable"... What's your behavior purpose ? It looks like you don't have a precise idea of what you are going to do, and about to create a "super-global" b

Re: [symfony-users] Re: sfDoctrineGuardPlugin errors with 1.3/1.4

2009-11-23 Thread Alexandre SALOME
I use it with the 1.3 symfony. I only get errors in the backend (user edit form). Don't hesistate to create ticket/purpose patches. Alexandre 2009/11/24 Greg Freeman > Are you using the package version with 1.3/1.4? The package version is > only for sf 1.2. > > -- > > You received this message

Re: [symfony-users] Upgrade path: 1.2 w/sfCompat10Plugin -> 1.4

2009-11-23 Thread Alexandre SALOME
Hi, This is a good roadmap to 1.4 :) You should read this : http://trac.symfony-project.org/browser/branches/1.1/lib/plugins/sfCompat10Plugin The repository; you should read the plugin content, introduced classes and find what matches in your application http://www.symfony-project.org/tutori

[symfony-users] Upgrade path: 1.2 w/sfCompat10Plugin -> 1.4

2009-11-23 Thread David Brewer
Hi all. I've got a few projects I'd like to upgrade from 1.2 to 1.4. I'm currently using the sfCompat10Plugin on my 1.2 projects. I'm thinking the upgrade path is going to be a 3 step process like this: 1. Get projects working on 1.2 WITHOUT the sfCompat10Plugin. 2. Upgrade projects to 1.3 an

[symfony-users] Re: sfDoctrineGuardPlugin errors with 1.3/1.4

2009-11-23 Thread Greg Freeman
Are you using the package version with 1.3/1.4? The package version is only for sf 1.2. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send em

[symfony-users] Need advise regarding a Doctrine_Template that all CMS entities will actAs

2009-11-23 Thread Jonathan Dart
Hi Users, I'm planning on using Symfony to make a CMS and I'm making some decisions at the moment that I hope I can get some feedback on. I'm fairly new to Doctrine so please feel free to correct any nonsense I write. My plan is to make a Doctrine_Template that all my content types will actAs. I

Re: [symfony-users] !.3 and 1.4 .. the difference?

2009-11-23 Thread Eno
On Mon, 23 Nov 2009, Gareth McCumskey wrote: > I seem to have missed something. Could someone perhaps point me to a > resource that might clue me into what symfony 1.4 is all about? It seems > that just recently 1.3 was going to be coming out of beta etc and now 1.4 > has suddenly hit the radar. T

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Parijat Kalia
using cygwin for my development...technically the development is done linux style but on a command prompt powered by windows On Mon, Nov 23, 2009 at 11:16 AM, Gareth McCumskey wrote: > Are you developing on a Windows machine or a Linux machine? > > If Windows download WinSCP and you can drag and

[symfony-users] Re: Do anyone know this error? It happened when i use command: symfony:build-sql

2009-11-23 Thread rekarnar
It looks like a schema issue. Please post it here, well, particulary the JobeetCatagoryAffiliate part. On Nov 23, 11:00 pm, Caker wrote: > I have issue , did you fixed that ? > > On Oct 1, 10:59 pm, Vũ Văn Thanh wrote: > > > C:\development\sfprojects\jobeet>symfony doctrine:build-model > > > doc

Re: [symfony-users] !.3 and 1.4 .. the difference?

2009-11-23 Thread Gábor Fási
1.4 is the same as 1.3, minus the deprecated features - it's that simple :) On Mon, Nov 23, 2009 at 20:03, Gareth McCumskey wrote: > Hi all, > I seem to have missed something. Could someone perhaps point me to a > resource that might clue me into what symfony 1.4 is all about? It seems > that jus

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Gareth McCumskey
Are you developing on a Windows machine or a Linux machine? If Windows download WinSCP and you can drag and drop the files onto the remote server (http://winscp.net/) If from a Linux machine then just manually use rsync yourself from command line. Open terminal and type "man rsync" for full instr

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Parijat Kalia
Can't use SVN, have to use it using symfony deploy itself, anyone have a clue? On Mon, Nov 23, 2009 at 3:11 AM, Gareth McCumskey wrote: > Use svn rather. Makes life a lot easier > > > On Mon, Nov 23, 2009 at 11:45 AM, Parijat Kalia wrote: > >> >> Permissions of the directories seem to be d---

[symfony-users] !.3 and 1.4 .. the difference?

2009-11-23 Thread Gareth McCumskey
Hi all, I seem to have missed something. Could someone perhaps point me to a resource that might clue me into what symfony 1.4 is all about? It seems that just recently 1.3 was going to be coming out of beta etc and now 1.4 has suddenly hit the radar. The tutorials don't help matters and currently

[symfony-users] Re: Changing the character used to replace spaces in url_for

2009-11-23 Thread nidkil
Hi Gareth & Russ, Thx for your responses guys! My question was actually triggered by the excersise in jobeet. In the tutorial it shows spaces of the generated url replaced by hypens (-). In my local installation the spaces in the url are replaced by plusses (+). That's what made me wonder if this

[symfony-users] Re: The template "TestTwigSuccess.php" does not exist or is unreadable in "".

2009-11-23 Thread Richtermeister
Hey Reynier, I'm sorry, I'm not familiar with the inner workings of twig, I was just commenting on why you got the other error. I would take a look at the sfTwigPlugin that's in development. It looks like the integration would be more seamless. Daniel On Nov 22, 8:41 pm, ReynierPM wrote: > Ri

[symfony-users] Re: Trying to fetch one column

2009-11-23 Thread tirengarfio
Thanks Garet, it worked! Anyway you won't surprise if i ask again about the reason the DQL query of my first post doesn't work, exactly, why the function select() doesn't work... Javi On Nov 23, 7:49 am, Gareth McCumskey wrote: > I have not used Doctrine only Propel but first of all, try to avo

[symfony-users] generic way to tell if a Propel object has i18n

2009-11-23 Thread Stefan Paschke
Hi all I am trying to write a Propel behaviour to check before saving a new object if a row with identical values already exists. This should also work with i18n objects, so I need a good way to tell if a Propel object has i18n, without using the specific i18n accessors, which always contain th

Re: [symfony-users] Re: Changing the character used to replace spaces in url_for

2009-11-23 Thread Gareth McCumskey
str_replace("+", "_", url_for("path/to/url")); Don't need symfony for everything ;) On Mon, Nov 23, 2009 at 5:44 PM, nidkil wrote: > No one willing to help a newbie? > > On 22 nov, 20:39, nidkil wrote: > > Hi, > > > > I'm new to Symfony and busy playing around with the Jobeet tutorial. > > > >

[symfony-users] Re: Changing the character used to replace spaces in url_for

2009-11-23 Thread rooster (Russ)
Probably the easiest way to solve this would be to ensure your urls don't contain spaces in the first place. If you are generating urls based on user generated input (user name, article name etc) then look into creating slugs for this purpose. I'm pretty sure the symfony routing simply makes use o

[symfony-users] Re: Remove the layout from the signining page

2009-11-23 Thread J_Wesker
I recall a method called sfAction::setLayout(), you could call this from the signin action: $this->setLayout(false); On Nov 20, 2:18 pm, tirengarfio wrote: > Hi, > > I have started to create the layout for my app, but it also appears in > my signining page... > > I dont want that, so what can i

[symfony-users] Re: Changing the character used to replace spaces in url_for

2009-11-23 Thread nidkil
No one willing to help a newbie? On 22 nov, 20:39, nidkil wrote: > Hi, > > I'm new to Symfony and busy playing around with the Jobeet tutorial. > > I'm up to the chapter 5 Routing and playing around with the for_url > statement. I am getting a plus (+) as a replacement for spaces. Is > there a wa

[symfony-users] Symfony as a Flex application's Server

2009-11-23 Thread AJStoneham
Can someone get there experiences going with a small Symfony and Flex project. Perhaps a few chapters in a pdf along with all the other documentation. If there are no real world examples that we can find to get documented then one could convert Jobeet to have portions of the R.I.A. (Rich Internet

Re: [symfony-users] Re: Dependency Injection Service Container: different environments

2009-11-23 Thread Lukas Kahwe Smith
On 23.11.2009, at 16:31, Bernhard Schussek wrote: >> Thanks, overlooked this reply (*nudge* dedicated mailinglist *nudge*). > > *nudge* http://groups.google.com/group/symfony-components *nudge* thx .. wasnt there when i check the components webpage just recently. great to see its there now! r

Re: [symfony-users] Re: Dependency Injection Service Container: different environments

2009-11-23 Thread Bernhard Schussek
> Thanks, overlooked this reply (*nudge* dedicated mailinglist *nudge*). *nudge* http://groups.google.com/group/symfony-components *nudge* ;-) -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@

[symfony-users] custom format date arguments

2009-11-23 Thread basos g
I have searched in the documentation in vain to find a listing of the parameters of format_date function. What i want to achieve is a date like 'Wed, 18 November 2009' but with I18N support on the dates. I think that none of the predifined (undocumented) formats does the trick. With strftime it is

Re: [symfony-users] Re: Dependency Injection Service Container: different environments

2009-11-23 Thread Lukas Kahwe Smith
On 23.11.2009, at 16:16, Fabien Potencier wrote: > Lukas Kahwe Smith wrote: >> On 02.11.2009, at 10:10, Fabien Potencier wrote: >> Now how do I get @db_logger into the services.yml definition? >>> It was not possible before today, as a parameter could not be a >>> reference to a service.

Re: [symfony-users] Re: Dependency Injection Service Container: different environments

2009-11-23 Thread Fabien Potencier
Lukas Kahwe Smith wrote: > On 02.11.2009, at 10:10, Fabien Potencier wrote: > >>> Now how do I get @db_logger into the services.yml definition? >> It was not possible before today, as a parameter could not be a >> reference to a service. >> >> As of r23506, this is possible, so your problem is s

Re: [symfony-users] Re: Dependency Injection Service Container: different environments

2009-11-23 Thread Lukas Kahwe Smith
On 02.11.2009, at 10:10, Fabien Potencier wrote: >> Now how do I get @db_logger into the services.yml definition? > > It was not possible before today, as a parameter could not be a > reference to a service. > > As of r23506, this is possible, so your problem is solved. > > In dev, the db_lo

Re: [symfony-users] Change redirecting method for "credentials required" page (or login required)

2009-11-23 Thread Gareth McCumskey
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_action_security On Mon, Nov 23, 2009 at 3:21 PM, Vincent UNG wrote: > Hi... > Actually, when I try to execute an action that I don't have > credential, I'm redirect to the default page of symfony. > Can I change th

Re: [symfony-users] Re: sfGuard with several database connections

2009-11-23 Thread Alexandru-Emil Lupu
There are some several places in sfGuardPlugin where the $con parameter is ignored ... I have uploaded a patch with several fixes, but it still need to apply those patches... On Mon, Nov 23, 2009 at 3:25 PM, axel at wrote: > Found an easier solution for the problem by adding > > connection: xyz

[symfony-users] Embed child form with into parent

2009-11-23 Thread ellis...@gmail.com
I'm new with symfony and I'm having some problems with embeding forms. I have the following scenario with a Curriculum Vitae and asociated Work_Experiences: schema-yml using doctrine: BolsadetrabajoCv: tableName: bolsadetrabajo_cv actAs: { Timestampable: ~ } columns: id: { type: integer

Re: [symfony-users] Change redirecting method for "credentials required" page (or login required)

2009-11-23 Thread Szabolcs Heilig
Hi, Do you have any user management plugin installed? Or you wrote one? Especially, the sfGuard plugins does what you want: - when not logged in but credentials required, it forwards you to log in - when logged in but don't have enough credentials it shows you an appropriate "credentials req

[symfony-users] Re: sfGuard with several database connections

2009-11-23 Thread axel at
Found an easier solution for the problem by adding connection: xyz to all model definitions in to the plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml: eg: sfGuardGroup: connection: xyz On 23 Nov., 13:57, Gareth McCumskey wrote: > The way I would do this in Propel instead is in m

Re: [symfony-users] Avoid losing the changes each time a module is regenerated

2009-11-23 Thread Lee Bolding
Maybe he means the admin generated modules? On 23 Nov 2009, at 12:51, Gareth McCumskey wrote: > Why are you regenerating modules? You shouldn't ever need to do that. > > On Mon, Nov 23, 2009 at 2:47 PM, tirengarfio wrote: > Hi, > > each time you regenerate a module, the files related to the te

[symfony-users] Change redirecting method for "credentials required" page (or login required)

2009-11-23 Thread Vincent UNG
Hi... Actually, when I try to execute an action that I don't have credential, I'm redirect to the default page of symfony. Can I change this page, or redirect automatically to my login page ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To p

[symfony-users] Re: Different main template

2009-11-23 Thread Vincent UNG
Try with method return::sfSuccess and return::sfError (check for synthax at syfony-project.org, I'm not sure). So, you can have two differents templates for one action. Hope I was clear Bye -- You received this message because you are subscribed to the Google Groups "symfony users" group. To p

Re: [symfony-users] Different main template

2009-11-23 Thread Gareth McCumskey
If you are perhaps referring to the global layout template housed under apps/appname/templates ( as opposed to the ones in apps/appname/modules/modulename/templates), then you can set the template per action. Within your action use: sfAction::setLayout('other_layout'); On Mon, Nov 23, 2009 at 2:5

Re: [symfony-users] Avoid losing the changes each time a module is regenerated

2009-11-23 Thread Alexandre SALOME
Hum, do you modify files in the cache/ folder ? If you generate a module my_user, you will have a cache/frontend/dev/modules/automy_user/templates. But don't touch it !!! Copy/paste files from cache folder to your module/templates folder, but don't touch to cache files. So, you can copy files fr

Re: [symfony-users] sfGuard with several database connections

2009-11-23 Thread Gareth McCumskey
The way I would do this in Propel instead is in my ModelClasses for the tables in database xyz is overwrite the doSelect, doSelectOne methods to explicitly call the correct connection: public static function (Criteria $criteria, $con = null) { parent::doSelect($criteria, Propel::getConnection('x

Re: [symfony-users] Different main template

2009-11-23 Thread Alexandre SALOME
Hi, Watch your vocabulary. Symfony's one : - Project - Applications - Modules - Actions You can dynamically change the template using the setTemplate method : class myActions extends sfActions { public function executeIndex(sfWebRequest $request) { // same treatment i

Re: [symfony-users] Join with multiple primary keys

2009-11-23 Thread Gareth McCumskey
$c = new Criteria(); $c->addJoin(//etc); $c->addJoin. so and so on. It supports multiple joins, the only canvat is if you are joining on the same column all the time then it might overwrite. On Mon, Nov 23, 2009 at 12:09 PM, HAUSa < jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote: > How ca

[symfony-users] sfGuard with several database connections

2009-11-23 Thread axel at
hello, I have defined two database connections in my databases.yml: all: xyz: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=xyz' ... abc: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=abc' installed sfGuardPlugin, the sf* da

Re: [symfony-users] Avoid losing the changes each time a module is regenerated

2009-11-23 Thread Gareth McCumskey
Why are you regenerating modules? You shouldn't ever need to do that. On Mon, Nov 23, 2009 at 2:47 PM, tirengarfio wrote: > Hi, > > each time you regenerate a module, the files related to the templates > (indexSuccess.php, _form.php, ...) are also regenerated, so if you > modified something insi

Re: [symfony-users] Re: Trying to fetch one column

2009-11-23 Thread Gareth McCumskey
I have not used Doctrine only Propel but first of all, try to avoid using Doctrine Criteria type commands in your action. In Propel I would create a method in my model class like: public static function getUserFriends($user_id) { $criteria = new Criteria(); $criteria->add(self::USER1, $user_id

[symfony-users] Avoid losing the changes each time a module is regenerated

2009-11-23 Thread tirengarfio
Hi, each time you regenerate a module, the files related to the templates (indexSuccess.php, _form.php, ...) are also regenerated, so if you modified something inside those files you will lose it each time the module is regenerated. Is there any solution to avoid losing those changes? Bye Javi

[symfony-users] Different main template

2009-11-23 Thread HAUSa
I need to have a different main template for just one action. Is that possible, or do I have to create a complete seperate app for that? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegr

[symfony-users] Re: Trying to fetch one column

2009-11-23 Thread tirengarfio
On 23 nov, 06:51, Gareth McCumskey wrote: > Does it matter? Maybe yes... I need an array to search on it in the view. For that, i have written this code in the action: // This fetches the friends of the user with the ID '1'. $this->friend_list = Doctrine::getTable('FriendReference') ->crea

[symfony-users] Re: sfDoctrineGuardPlugin errors with 1.3/1.4

2009-11-23 Thread symf
I have the same problem. Anybody know the solution? On 18 Nov., 00:44, Greg Freeman wrote: > Has anyone been using sfDoctrineGuardPlugin from the trunk with > symfony 1.3/1.4? > > I can install it, add users by the command line and login but when I > try to add users/permissions/groups etc from t

Re: [symfony-users] Re: Trying to fetch one column

2009-11-23 Thread Gareth McCumskey
Does it matter? Just use user2 where you need and ignore the fact that user1 is there as well? On Mon, Nov 23, 2009 at 1:24 PM, tirengarfio wrote: > Any idea? > > On 20 nov, 13:57, tirengarfio wrote: > > Hi, > > > > i have a table to with two fields: user1 and user2. > > > > I have also this co

Re: [symfony-users] Symfony and IIS

2009-11-23 Thread Gareth McCumskey
In general for PHP applications I would always want to stick to a LAMP setup. But that is a personal opinion based on the fact that I find Linux an easier and more secure environment to setup for, not to mention far easier and less costly to deploy as and when I need (no need to worry about licensi

Re: [symfony-users] Per view parameters for layout to show active tab.

2009-11-23 Thread Gareth McCumskey
You can access your current view from symfony global variables within the view ($this->getModuleName() & $this->getActionName()). On Fri, Nov 20, 2009 at 6:23 PM, Bram van Leur wrote: > Hi everyone, > > My layout includes top-level tabs. The one that's current depends on > the action or even the

[symfony-users] Per view parameters for layout to show active tab.

2009-11-23 Thread Bram van Leur
Hi everyone, My layout includes top-level tabs. The one that's current depends on the action or even the view. Currently I have a big associative array inside the layout that maps module/action keys to the currently active tab. What would be the proper way to store attributes like this per actio

[symfony-users] Re: Trying to fetch one column

2009-11-23 Thread tirengarfio
Any idea? On 20 nov, 13:57, tirengarfio wrote: > Hi, > > i have a table to with two fields: user1 and user2. > > I have also this code to fetch the user2 column: > > // Extraemos los amigos del usuario de la sesion. >     $this->friend_list = Doctrine::getTable('FriendReference') >       ->create

[symfony-users] Re: Remove the layout from the signining page

2009-11-23 Thread tirengarfio
Sorry, do you mean "Delete it"? what? the layout file?? On 20 nov, 15:21, velu samy wrote: > Dleate it > > On 11/21/09, tirengarfio wrote: > > > > > Hi, > > > I have started to create the layout for my app, but it also appears in > > my signining page... > > > I dont want that, so what can i do?

Re: [symfony-users] Symfony and IIS

2009-11-23 Thread Lee Bolding
Never tried, but I saw that in the weekly roundup after the bug hunt day, there were a few fixes relating to Windows functionality. Probably worth giving it another shot... On 23 Nov 2009, at 10:49, Sid Ferreira wrote: > Does anybody know how good is it? > Tried once and it didn't worked... >

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Gareth McCumskey
Use svn rather. Makes life a lot easier On Mon, Nov 23, 2009 at 11:45 AM, Parijat Kalia wrote: > > Permissions of the directories seem to be d---, this is after I have > carried out the synchronization, prior to that it shows that i can rwx, > anyways, what is the fixture for this? > > On Mon

[symfony-users] Symfony and IIS

2009-11-23 Thread Sid Ferreira
Does anybody know how good is it? Tried once and it didn't worked... -- Sidney G B Ferreira Desenvolvedor Web -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe

[symfony-users] Join with multiple primary keys

2009-11-23 Thread HAUSa
How can I set a join table with propel for a i18n table? That table has to be joined by the id and culture field, but as far as I know the Criteria::addJoin() function only supports just one join criteria. -- You received this message because you are subscribed to the Google Groups "symfony user

[symfony-users] Re: Do anyone know this error? It happened when i use command: symfony:build-sql

2009-11-23 Thread Caker
I have issue , did you fixed that ? On Oct 1, 10:59 pm, Vũ Văn Thanh wrote: > C:\development\sfprojects\jobeet>symfony doctrine:build-model > > doctrine generating model classes > > C:\development\sfprojects\jobeet>symfony doctrine:build-sql > > doctrine generating sql for models > > Warning: cl

[symfony-users] Re: Redirection after submitting a New form

2009-11-23 Thread Vincent UNG
Hi ! First, excuse me for my english, I don't have a very high level... So, i've already meet this problem before. You just have to change the value, the parameter of setTemplate() method, which call the template pasted as a parameter. For example, if you want to redirect to the index template, ju

[symfony-users] Using extended class in functional tests

2009-11-23 Thread Peter Theill
I have added "setUid" and "getUid" methods in my "myUser.class.php" but when I'm running my functional tests I'm not able to use these methods. I get: sfException: Call to undefined method myUser::setUid. My "myUser.php.class" looks like this: getAttribute('username'); } publi

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Parijat Kalia
Permissions of the directories seem to be d---, this is after I have carried out the synchronization, prior to that it shows that i can rwx, anyways, what is the fixture for this? On Mon, Nov 23, 2009 at 1:25 AM, Yanko Simeonoff wrote: > Parijat Kalia wrote: > > Hey guys, running into a major

Re: [symfony-users] Major deploment issue!

2009-11-23 Thread Yanko Simeonoff
Parijat Kalia wrote: > Hey guys, running into a major rut with deploying my symfony > application over A2 hosting... > so my *symfony project:deploy production* runs smooth > but when I run [B]*symfony project:deploy production --go*[/B] > I get this > > [B]*rsync: recv_generator: mkdir "several/d

[symfony-users] Major deploment issue!

2009-11-23 Thread Parijat Kalia
Hey guys, running into a major rut with deploying my symfony application over A2 hosting... so my *symfony project:deploy production* runs smooth but when I run [B]*symfony project:deploy production --go*[/B] I get this [B]*rsync: recv_generator: mkdir "several/directory/paths" failed: Permission

[symfony-users] difficulties with doctrine:data-dump in sf1.4

2009-11-23 Thread Georg Gell
Hello, I have suddenly problems when I try to dump my data. My model has a listener attached, that changes some queries. Until now this didn't matter when using doctrine:data-dump. I updated yesterday to sf 1.4, and now I can't dump the data anymore, because the listener is executed. This does not