[symfony-users] class file not found while executing the batch file

2009-03-17 Thread haritha
Hi, I had a problem in executing the batch file-using(symfony1.0.20 in redhat ) "PHP Fatal error: Class 'CategoryPeer' not found in /home/test/ public_html/test1/batch/mytest.php on line 43" I came to know that the lib folder where all the model classes present are not getting included in the f

[symfony-users] Calender Plugin

2009-03-17 Thread DeepakBhatia
Hi, We are making a scheduler and are looking for a plugin to give us the calender etc. http://forum.symfony-project.org/index.php/t/7331/ http://www.dhtmlgoodies.com/scripts/dhtmlgoodies-week-planner/dhtmlgoodies-week-planner.html Please help me in this regard. Thanks Deepak Bhatia --~--~--

[symfony-users] About admin generator again, set filters dynamically?

2009-03-17 Thread xhe
This is still about admin generator. Are there anyway to set filters dynamically? I want to use same backend for admin and sales, but obviously admin and sales should have different filters. e.g admin can have list of sales as filters, while sales should only access his own clients. But in genera

[symfony-users] One module, many forms

2009-03-17 Thread Tomasz Ignatiuk
Hi I have a module called Documents. In this modul I use few kinds of documents. They use the same table in db but different fields. So that I created few Forms for them. I overridden executeNew() in order to call proper form class. And it works well. Proper form object is created, template disp

[symfony-users] Loading a new class during program execution

2009-03-17 Thread isleshocky77
Is there a way to reload the autoloaded classes? Specifically I'm creating a new Doctrine model class on the fly. For my test I'm trying to call the class after generating but it will only work if I run the test a second time. I've tried calling the CacheClearTask() but I think it has to do with

Re: Re : Re : [symfony-users] Fixture Files

2009-03-17 Thread Yevgeniy A. Viktorov
Right, same solution can be added to migrations as originally he "don't want test data fixtures being added to the production database." Then you will have two places, one for test fixtures and another for production fixtures. Or just use "--dir" and "--env" in pair to load fixtures from differe

[symfony-users] Re: Criteria for Record that doesn't exist in another table

2009-03-17 Thread bpfarmer
One more thing, what if I wanted to find users not in a specific list? $c->add(ContactListPeer::ID, $list->getId()); $c->addJoin(ContactListPeer::ID, ListUserPeer::CONTACT_LIST_ID, Criteria::LEFT_JOIN); $c->add(ListUserPeer::CONTACT_LIST_ID, null, Criteria::ISNULL); $c->addJoin(Us

Re : Re : [symfony-users] Fixture Files

2009-03-17 Thread Loïc Vernet
Well fot tests, you already have this solution: // lib/test/JobeetTestFunctional.class.php class JobeetTestFunctional extends sfTestFunctional { public function loadData() { $loader = new sfPropelData(); $loader->loadData(sfConfig::get('sf_test_dir').'/fixtures'); return $this; } }You could do

[symfony-users] How are the class file generated with the Doctrine Admin Generator

2009-03-17 Thread fredlab
Hey, I am trying to extend the admin generator. I succeeded to understand how form and form filters classes are generated using the "template files" with PHP included in them but I could not succeed to understand how the model classes are generated. I would like to extend the generation of this

[symfony-users] Plugin sfUnobstrusiveWidgetPlugin "unable to unpack"

2009-03-17 Thread Paolo Mainardi
Installation of "sfUnobstrusiveWidgetPlugin" plugin failed: unable to unpack /path_to_symfony/cache/.pear/sfUnobstrusiveWidgetPlugin-1.0.2.tgz Someone have a solution for this ? Thanks -- Paolo Mainardi --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: plugin:publish-assets vs. Linux/SVN

2009-03-17 Thread Andrei Dziahel
Hi. Right as you said - I'm ignoring web/*Plugin and doing symfony plugin:publish-assets after every update. I also think this snippet should look like > rm web/*Plugin > symfony plugin:publish-assets > since you may delete some plugins during development. 2009/3/17 Yevgeniy A. Viktorov > > >

Re: Re : [symfony-users] Fixture Files

2009-03-17 Thread Yevgeniy A. Viktorov
Hi Loic, If I am correctly understand, Benjamin wanted to use different fixtures(files) on per environment basis, but --env=test will only switch current environment and will use all accessible fixtures anyway. I think "--dir" option, maybe wrapped into same other task, would be right solution,

[symfony-users] Re: plugin:publish-assets vs. Linux/SVN

2009-03-17 Thread Yevgeniy A. Viktorov
Summary of solution discussed in this thread: 1. use some task(sf12: symfony plugin:publish-assets) to symlink/copy assets of your plugins to web dir. 2. add svn:ignore property to your "web/" folder (*Plugin) Thanks. Tom Haskins-Vaughan wrote: > Hi I've just come across this scenario, but I do

Re : [symfony-users] Fixture Files

2009-03-17 Thread Loïc Vernet
--env=test ? De : Benjamin À : symfony users Envoyé le : Lundi, 16 Mars 2009, 7h23mn 27s Objet : [symfony-users] Fixture Files How do I specify which fixture files to use on a per environment basis? I don't want test data fixtures being added to the produc

[symfony-users] svn:ignore and doctirne migrations

2009-03-17 Thread Tom Haskins-Vaughan
Hi, I'm just wondering which if any directories/files I should svn:ignore when dealing with doctrine migrations. Cheers, Tom -- Tom Haskins-Vaughan Temple Street Media: Design and Development for the Web t...@templestreetmedia.com | www.templestreetmedia.com --~--~-~--~~-

[symfony-users] Re: plugin:publish-assets vs. Linux/SVN

2009-03-17 Thread Tom Haskins-Vaughan
Hi I've just come across this scenario, but I don't fully understand the solution. Would it be possible to do an svn:externals link to the plugin's assets in the repository? Tom Bernhard Schussek wrote: > Hi Thomas, > > On Thu, Feb 26, 2009 at 10:19 AM, Thomas Rabaix > wrote: >> You can de

[symfony-users] Re: Symfony and Oracle

2009-03-17 Thread Lee Bolding
Do you have the Oracle PDO driver installed? On 17 Mar 2009, at 16:32, Ghizlane Zinbi wrote: > Hi, > > I m developping with Symfony1.0 and Oracle9i but i have a big > problem, i cant make connection to the database!!any help? > > Ghizlane, > > > --~--~-~--~~~---~

[symfony-users] Re: How to display different data set in backend admin through generator?

2009-03-17 Thread Frank He
Whoops, using addFiltersCriteria to overwrite parent one is really amazing solutions! Thanks for the smart opinion. On Tue, Mar 17, 2009 at 1:05 PM, Richtermeister wrote: > > Hey Frank, > > 2 ways to do it: > > First, you could use the peer_method parameter under the list settings > to specify w

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Richtermeister
Glad to hear man, and here's the updated article: http://www.codemassacre.com/2009/03/17/problems-hosting-symfony-12-sites-on-godaddy/ Have a great day, Daniel On Mar 17, 10:51 am, Benjamin wrote: > Thank you very muck Daniel.  That solved it: > > apps/frontend/config/factories.yml > > all: >

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
Thank you very muck Daniel. That solved it: apps/frontend/config/factories.yml all: routing: class: sfPatternRouting param: generate_shortest_url:true extra_parameters_as_query_string: true request: param: path_info_key: REQUEST_URI On Mar 17, 12:4

[symfony-users] Re: Saving request? (ajax)

2009-03-17 Thread Liran Tal
On Mar 17, 4:22 pm, Gareth McCumskey wrote: > $talkback_obj = new Talkback(); > > $talkback_obj->setAuthor($author); > $talkback_obj->setBody($talkback); > $talkback_obj->save();Thanks, > Thanks, If you don't mind me asking also regarding the foThanks,llowing line of code $isAjax = $t

[symfony-users] Re: Criteria for Record that doesn't exist in another table

2009-03-17 Thread bpfarmer
Thanks. My actual schema is more complicated, the equivalent of the list_user table is then referenced in other tables rather than using both list and user. -Brendan On Mar 17, 1:27 pm, Richtermeister wrote: > Try this: > > $c = Criteria; > $c -> addJoin(UserPeer::ID, ListUserPeer::USER_ID, >

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
It seems that the path_info_key: REQUEST_URI key isn't taking. I deleted the cache and have tried moving it around to a number of places. On Mar 17, 12:42 pm, Benjamin wrote: > Hi Daniel. > > I had to rename php.ini to php5.ini.  I didn't see the 5 in that the > first time I read your post.  Th

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Richtermeister
Hey Ben, look at the factories.yml again. You added my settings to the routing settings, but the belong in the request settings. The request section is not there yet (commented out). You need to add it as shown in my previous post. Lemme know if that changes things. Daniel On Mar 17, 10:42 am

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
Hi Daniel. I had to rename php.ini to php5.ini. I didn't see the 5 in that the first time I read your post. This got the index.php front controller working. As for everything else, it still doesn't work. I modified config/ProjectConfiguration.class.php: setWebDir($this->getRootDir().'/ldnr')

[symfony-users] How force a value from a form

2009-03-17 Thread Bruno
I try to create a profile object with a sfGuardUser object The shema of my profile (named affiliate) is : job_affiliate: id: ~ user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade, index: true } and my process for

[symfony-users] Re: Criteria for Record that doesn't exist in another table

2009-03-17 Thread Richtermeister
Try this: $c = Criteria; $c -> addJoin(UserPeer::ID, ListUserPeer::USER_ID, Criteria::LEFT_JOIN); $c -> add(ListUserPeer::USER_ID, null, Criteria::ISNULL); that should work. Also, you don't need an id column in the list_user table, in fact it interferes with symfony on some levels. Just set both

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Richtermeister
Hi Benjamin, I'm the author of the codemassacre post, and things have changed for version 1.2. I need to write a newer post. For now, this is how I am able to do it (no worries, had the same problem). First, this goes into the factories.yml for the all environment all: request: param:

[symfony-users] Re: How to display different data set in backend admin through generator?

2009-03-17 Thread Richtermeister
Hey Frank, 2 ways to do it: First, you could use the peer_method parameter under the list settings to specify what method on the peer is used to select the users (default doSelect, could be changed to doSelectForUser for example, and in that method you filter based on the current user). This wou

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
Now I get a JobeetJob class error. Failed validation on non null values. On Mar 17, 10:48 am, Jacob Coby wrote: > Try this: > > http://pastebin.com/m4e8bf424 > > JobeetCategory: >    actAs: >      Timestampable: ~ >      Sluggable: >        fields: [name] >    columns: >      name: { type: strin

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
Now I get.. Validation failed in class JobeetJob On Mar 17, 10:48 am, Jacob Coby wrote: > Try this: > > http://pastebin.com/m4e8bf424 > > JobeetCategory: >    actAs: >      Timestampable: ~ >      Sluggable: >        fields: [name] >    columns: >      name: { type: string(255), notnull:  

[symfony-users] Symfony and Oracle

2009-03-17 Thread Ghizlane Zinbi
Hi, I m developping with Symfony1.0 and Oracle9i but i have a big problem, i cant make connection to the database!!any help? Ghizlane, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post t

[symfony-users] Criteria for Record that doesn't exist in another table

2009-03-17 Thread bpfar...@gmail.com
Sorry if this question is a little basic. I'm trying to create a Criteria to retrieve records from a table that aren't in another table as a foreign key. User: id: ~ name: varchar(255) ListUser: id: ~ user_id: ~ list_id: ~ Trying to retrieve records from User that aren't in ListUs

[symfony-users] Re: i18n

2009-03-17 Thread Ghizlane Zinbi
Thanks for help, it was a cookies problem :) 2009/3/17 Gregoire Laporte > i18n: on > default_culture:fr > > in the settings.yml > -- > Date: Tue, 17 Mar 2009 15:54:28 + > Subject: [symfony-users] i18n > From: ghizlane.zi...@gmail

[symfony-users] Re: i18n

2009-03-17 Thread Gregoire Laporte
i18n: on default_culture:fr in the settings.yml Date: Tue, 17 Mar 2009 15:54:28 + Subject: [symfony-users] i18n From: ghizlane.zi...@gmail.com To: symfony-users@googlegroups.com Hi, How can i modify the interface culture without setting culture by $this-

[symfony-users] i18n

2009-03-17 Thread Ghizlane Zinbi
Hi, How can i modify the interface culture without setting culture by $this->getUser()->setCulture('fr_FR'); I mean how can i do it by configuration files (yaml), is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Jacob Coby
Try this: http://pastebin.com/m4e8bf424 JobeetCategory: actAs: Timestampable: ~ Sluggable: fields: [name] columns: name: { type: string(255), notnull: true} The {} is an inline hash, but the Sluggable line is also a hash - the yaml parser can't combine the two. O

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
And the correct way to fix? Sorry I've tried every way that I could think of. On Mar 16, 9:28 pm, Steve the Canuck wrote: > It looks like an indent issue to me. > > On Mar 16, 4:29 pm, Mark wrote: > > > I'm having trouble with the schema.yml getting to build. I get a parse > > error. > > > "una

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
Thank you. I've actually done everything outlined in those posts. The one thing I'm not sure about is: path_info_key: REDIRECT_URL Someone mentioned it should go into the factories.yml file for symfony 1.2. I don't know where to put it in that file however. all: routing: class

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Tom Haskins-Vaughan
After a quick google: http://www.codemassacre.com/2008/07/24/problems-hosting-symfony-sites-on-godaddy/ http://forum.symfony-project.org/index.php/t/11924/ See if either of those help. Tom Benjamin wrote: > Hi, sorry I should have posted that. The default module is content > with the index ac

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
Hi, sorry I should have posted that. The default module is content with the index action: # default rules homepage: url: / param: { module: content, action: index } content: url: /:action.html param: { module: content } default_index: url: /:module param: { action: index } def

[symfony-users] Re: Can't get site to work in production on godaddy

2009-03-17 Thread Tom Haskins-Vaughan
What module/action is specified in your routing.yml file for the the root url (/)? Benjamin wrote: > Hi, > > If someone can please help me figure out what to fix here that would > be great. I'm getting 404 errors, No Input File Specified errors, > nothing works. This is on a godaddy shared se

[symfony-users] Can't get site to work in production on godaddy

2009-03-17 Thread Benjamin
Hi, If someone can please help me figure out what to fix here that would be great. I'm getting 404 errors, No Input File Specified errors, nothing works. This is on a godaddy shared server. Not mine. http://ldnr.org/frontend_dev.php php.ini file located in webroot cgi.fix_pathinfo = on regi

[symfony-users] Re: Saving request? (ajax)

2009-03-17 Thread Gareth McCumskey
$talkback_obj = new Talkback(); $talkback_obj->setAuthor($author); $talkback_obj->setBody($talkback); $talkback_obj->save(); On Tue, Mar 17, 2009 at 4:10 PM, Liran Tal wrote: > > > Hey, > > In my template for showSuccess.php I've added the ability to submit a > form via Ajax > as follows: >

[symfony-users] Saving request? (ajax)

2009-03-17 Thread Liran Tal
Hey, In my template for showSuccess.php I've added the ability to submit a form via Ajax as follows: 'talkback_list', 'url' => 'talkback/addNewTalkbackAjax', )) ?>

[symfony-users] Re: has anyone met this problem before - backend admin?

2009-03-17 Thread Frank He
when I use old 1.0 method to generate backend admin, it works fine. So how to add language? On Tue, Mar 17, 2009 at 3:01 AM, Fási Gábor wrote: > > It seems like the site is trying to use the user's culture info, but > it doesn't have any. Add one language, and try again. > > On Tue, Mar 17, 2009

[symfony-users] Re: How to display different data set in backend admin through generator?

2009-03-17 Thread Frank He
Yes, I know that. But I want to take advantage of admin generator, which is using generator.yml and no need to write action manually. But it seemed I can not control what data to display, what not just by using the simple backend admin generator. Do you think so? On Tue, Mar 17, 2009 at 4:40 AM, T

[symfony-users] Re: Few simple questions about symfony 1.0

2009-03-17 Thread Ghizlane Zinbi
Hi, You can use propel-dump-data frontend data.yml, it save all data in the data\fixtures\data.yml 2009/3/17 torso > > Hi! > > I have to do new Table to database. Is it possible to do it with out > loosing any data on other tables with propel? > How I can make a backup copy of database with pr

[symfony-users] Few simple questions about symfony 1.0

2009-03-17 Thread torso
Hi! I have to do new Table to database. Is it possible to do it with out loosing any data on other tables with propel? How I can make a backup copy of database with propel, is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] Re: connection to oracle9i

2009-03-17 Thread Ghizlane Zinbi
I replaced ;extension=php_oci8.dll by extension=php_oci8.dll in all php.ini and i added the contenent of instantclient-basic-win32-11.1.0.7.0 to the windows path variable. I trided to test connection with the following script : 2009/3/17 Fási Gábor > > What's the error message you get? Did you m

[symfony-users] EmbedFormForeach and editing instead of inserting new subobjects

2009-03-17 Thread maerr
Hi, currently I'm trying to build a contact form with embedded subforms (1:n -> phone numbers, email-addresses,...). I started using the $this->embededFormForeach-method like described here: http://blog.barros.ws/2009/01/01/using-embedformforeach-in-symfony-part-ii/ But it seems that this funct

[symfony-users] How to customize backend's route of sfGuard ??

2009-03-17 Thread saturn1...@hotmail.com
Hello, i need to customize my route of sfguard in the backend. By default for example it is backend.php/sf_guard_user/1/edit and if i need backend.php/gestion-membres/1/modifier I try this sf_guard_user_edit: url: /gestion-membres/:id/modifier param: { module: sfGuardUser, action: edit } Bu

[symfony-users] Re: jobeet tutorial

2009-03-17 Thread Carsten Schumann
Hi! With high probability, your webserver does not invoke the php interpreter for .php files. To test it, create a file in the web directory named phpinfo.php and put the following code inside: If you get a large page with lots of information about php your webserver does handle php files righ

[symfony-users] Re: jobeet tutorial

2009-03-17 Thread Stefan Koopmanschap
Hi, Could you explain a bit more what your problem is, I am a bit unsure what you're seeing right now Sincerely, Stefan On Fri, Mar 6, 2009 at 1:08 PM, Vikaash wrote: > > hai > I m rightnow going through symfony jobeet tutorial. > At the end of 3rd day after putting all the code when i run th

[symfony-users] Re: How to display different data set in backend admin through generator?

2009-03-17 Thread Tomasz Ignatiuk
If a sale can have access only to his clients and no one else has (other sales) except admin, you can add to client rows a sales id. Then when sales is logged in where data is taken to list in backend etc change the action in order to get only those clients whose sales id is the one who is logged

[symfony-users] Re: has anyone met this problem before - backend admin?

2009-03-17 Thread Fási Gábor
It seems like the site is trying to use the user's culture info, but it doesn't have any. Add one language, and try again. On Tue, Mar 17, 2009 at 02:57, xhe wrote: > > I just followed the jobeet to create a backend admin for my site, but > I met this error when trying to visit. Based on the err