[symfony-users] Re: Question about links using link_to and CSS rules

2009-12-21 Thread mirfan
link_to is symfony function/helper while when you implement class #menu a that is looking for wrote: > you can also use html anchor tag as > I never say my > name > assign any class to a tag. > > On Dec 22, 10:41 am, DEEPAK BHATIA wrote: > > > // Option argument as an associative array > > > >

[symfony-users] Re: Question about links using link_to and CSS rules

2009-12-21 Thread mirfan
you can also use html anchor tag as I never say my name assign any class to a tag. On Dec 22, 10:41 am, DEEPAK BHATIA wrote: > // Option argument as an associative array > > 'content/update?name=anonymous',array('class' > => 'special_link')) ?> > Or > > 'class=special_link') ?> > ***Use thi

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread DEEPAK BHATIA
// Option argument as an associative array 'special_link')) ?> Or ***Use this Class name in your CSS File.* On Tue, Dec 22, 2009 at 10:53 AM, DEEPAK BHATIA wrote: > link_to is not an HTML tag, please read CSS carefully. > > > On Tue, Dec 22, 2009 at 12:40 AM, tirengarfio wrote: >

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread DEEPAK BHATIA
link_to is not an HTML tag, please read CSS carefully. On Tue, Dec 22, 2009 at 12:40 AM, tirengarfio wrote: > Hi, > > I have created a menu using link_to. I want define a CSS rule for > these links. > > I expected it works writing something like this: > > #menu link_to { > > } > > But the rule o

[symfony-users] Are Propel behaviors disallowed in Symfony tasks?

2009-12-21 Thread Zeek
I ssh to the server, to the directory of my website. On the command line, I call: symfony QuestionAnswerContest:remindAskersAboutTheirExpiredQuestions myDomain.com I get this error (lit up in red in my terminal window): Propel behavior "sfPropelActAsTaggableBehavior" is not registered I have t

[symfony-users] Re: Unknown method SfGuardUserTable::retrieveByUsername

2009-12-21 Thread zayker
Yes I've cleared the cache and i've enabled the plugin and it works one time and does'nt works another time, I don't why? Other ideas please? On 21 déc, 07:37, Alexandru-Emil Lupu wrote: > Have you: > Enabled the plugin > Cleared cache > > sent via htc magic > > On Dec 21, 2009 8:42 AM, "zayker"

Re: [symfony-users] Re: [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread Eno
On Mon, 21 Dec 2009, Mikael wrote: > Well, we wanted to keep many details so the common table was meant to > centralize some generic informations. You could generalize it a little further and simply have attributes and values instead of a 'computer' table and a 'switch' table. -- -- You r

Re: [symfony-users] [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread gato chlr
maybe this can help you:P http://propel.phpdb.org/docs/user_guide/chapters/AdvancedObjectModel.html 2009/12/21 Alexandru-Emil Lupu > You could also try using doctrine (which has a behaviour like table > inheritance). > > You could build up a model called generic "Product" (qtty, > waranty_date,

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread gato chlr
link_to is just a helper, its out put is a string, and the content of that string is an HTML 'a' tag. 2009/12/21 Gábor Fási > Link_to outputs an tag, it is not confusing at all. Also, symfony > developers cannot change css standards. > > On Mon, Dec 21, 2009 at 20:10, tirengarfio wrote: > > Hi

Re: [symfony-users] Re: Development infrastructure

2009-12-21 Thread Alexandru-Emil Lupu
however i like to KISS.using linux as default development machine .. no 3rd party VM or emultators. Also allows me to monut a sshfs or nfs share. There are also native functions for versioning systems etc ... I would like to propose you to use a native linux machine if you can, because is the faste

Re: [symfony-users] Re: Can't access slots in partials (with cache enabled)

2009-12-21 Thread Paulo Magalhães
Bumping up this as it is a major bug on the stable releases and seems to not be getting enough attention: slots are _not_ working when cache is enable. Two tickets on this: http://trac.symfony-project.org/ticket/4185 http://trac.symfony-project.org/ticket/5958 Reproducible on 1.3.1 as well. P

Re: [symfony-users] [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread Alexandru-Emil Lupu
You could also try using doctrine (which has a behaviour like table inheritance). You could build up a model called generic "Product" (qtty, waranty_date, manufacturer, etc) then inherit from it specific product details. ofcourse, if you do this (also your version) you might not be able to DRY. T

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread Gábor Fási
Link_to outputs an tag, it is not confusing at all. Also, symfony developers cannot change css standards. On Mon, Dec 21, 2009 at 20:10, tirengarfio wrote: > Hi, > > I have created a menu using link_to. I want define a CSS rule for > these links. > > I expected it works writing something like th

[symfony-users] Re: [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread Mikael
On 21 déc, 19:11, Eno wrote: > On Mon, 21 Dec 2009, Mikael wrote: > > I'd like to rewrite an existing application as a way to learn symfony, > > and I face a design issue. > > > The database will contain informations about our stock (computers, > > switches, etc.). We have created a common table

[symfony-users] Re: Development infrastructure

2009-12-21 Thread Fred Grott(shareme)
Actually VM uses less ram than VirtualBox for those that do not know..and tends a bit faster That of course assumes that you have CPU multi-core setup.. On Dec 21, 12:35 am, Alexandru-Emil Lupu wrote: > As allready said, for widowz users, i would recomend the cygwin. > I have used it before po

[symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread tirengarfio
Hi, I have created a menu using link_to. I want define a CSS rule for these links. I expected it works writing something like this: #menu link_to { } But the rule only works if i write it in this way: #menu a { } Am i doing this right? Dont you think this way ("link_to" in the view and "a"

Re: [symfony-users] Re: Development infrastructure

2009-12-21 Thread Eno
On Mon, 21 Dec 2009, Alexandru-Emil Lupu wrote: > As allready said, for widowz users, i would recomend the cygwin. > I have used it before porting all my computers on *nix platform. Yeah, but its another piece of software to install, learn, update/maintain, etc. At least if you use a VM running

Re: [symfony-users] [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread Eno
On Mon, 21 Dec 2009, Mikael wrote: > I'd like to rewrite an existing application as a way to learn symfony, > and I face a design issue. > > The database will contain informations about our stock (computers, > switches, etc.). We have created a common table with fields like > these : > > Obj : >

[symfony-users] problème avec la génération de mo dule

2009-12-21 Thread kerrfat
j'ai executé cette commande il m'affiche cette erreur : php symfony doctrine:generate-module --with-show --non-verbose- templates frontend job JobeetJob il me donne cette erreur : [?php use_stylesheets_for_form($form) ?] [?php use_javascripts_for_form($form) ?] Fatal error: Class 'JobeetJobForm

[symfony-users] Coverage report in XML?

2009-12-21 Thread Alex Letoosh
Hi all, I am currently trying to tie my Symfony projects with Hudson continuous integration tool. It seems to be fine with PHPUnit tests, but there is an issue lime tests. I've upgraded to Symfony 1.3, which provides --xml flag to get test reports in JUnit format. However, there is no --xml argume

[symfony-users] [beginner] model design problem with common data in one table (should do multiple inheritance)

2009-12-21 Thread Mikael
Hello, I'd like to rewrite an existing application as a way to learn symfony, and I face a design issue. The database will contain informations about our stock (computers, switches, etc.). We have created a common table with fields like these : Obj : id name_obj delivery_date warranty_expiry

Re: [symfony-users] admin generator, change redirect target after create/update

2009-12-21 Thread Georg Gell
No, we can't. The exception is thrown after response::send() is executed :-( Am 20.12.2009 19:34, schrieb Alexandre Salomé: > The exception is thrown by the redirect method, to stop any execution. > > So when the exception is thrown, you form was already saved. > > The real question is "can we

Re: [symfony-users] Re: strange problem with date

2009-12-21 Thread Alexandru-Emil Lupu
You said that you are running a php < 5.2.0 on your centos ... then, i guess this would help you http://groups.google.com/group/alt.comp.lang.php/browse_thread/thread/a382e2227fd23d46 On Mon, Dec 21, 2009 at 3:19 PM, mirfan wrote: > ok plz leave htc magic i was confused did you have any solutio

Re: [symfony-users] Re: strange problem with date

2009-12-21 Thread Jacob Coby
You need to upgrade to php 5.2. DateTime doesn't exist in php 5.1. On Dec 21, 2009, at 7:33 AM, mirfan wrote: > i have installed the latest version of pear but it still give me the > same problem cache folder has 777 permission, if this is not right > then what it should be? > these are ther ver

Re: [symfony-users] Open the Word Document/Excel Document in Browser rather than download

2009-12-21 Thread DEEPAK BHATIA
Thanks, I have just comment //header('Content-Disposition: attachment; filename='.basename($filename)); On Mon, Dec 21, 2009 at 7:41 PM, Fabian Lange < fabian.la...@symfony-project.com> wrote: > No thats the way to do. > If it opens rather than download, its because of the mime type actions > i

Re: [symfony-users] Open the Word Document/Excel Document in Browser rather than download

2009-12-21 Thread Fabian Lange
No thats the way to do. If it opens rather than download, its because of the mime type actions in the browser. You cannot affect that. The best way is to have a link which the user can 'save to' Fabian On Mon, Dec 21, 2009 at 2:49 PM, Gábor Fási wrote: > Ultimately it is up to the user, but you

Re: [symfony-users] Open the Word Document/Excel Document in Browser rather than download

2009-12-21 Thread Gábor Fási
Ultimately it is up to the user, but you can try inline instead of attachment. On Mon, Dec 21, 2009 at 14:01, DEEPAK BHATIA wrote: > Hi, > > The below action opens the excel document in the Microsoft Excel. But I want > to open this in Browser. Please help. > > public function executeSamplexls()

[symfony-users] Re: strange problem with date

2009-12-21 Thread mirfan
ok plz leave htc magic i was confused did you have any solution for my problem On Dec 21, 5:58 pm, Alexandru-Emil Lupu wrote: > Lol... a mobile phone > > sent via htc magic > > On Dec 21, 2009 2:56 PM, "mirfan" wrote: > > i have cc. what is htc magic? > > -- > > You received this message because

Re: [symfony-users] Re: strange problem with date

2009-12-21 Thread Alexandru-Emil Lupu
what do you mean ? On Mon, Dec 21, 2009 at 3:16 PM, mirfan wrote: > i cant get you? > > On Dec 21, 5:58 pm, Alexandru-Emil Lupu wrote: >> Lol... a mobile phone >> >> sent via htc magic >> >> On Dec 21, 2009 2:56 PM, "mirfan" wrote: >> >> i have cc. what is htc magic? >> >> -- >> >> You receive

[symfony-users] Re: strange problem with date

2009-12-21 Thread mirfan
i cant get you? On Dec 21, 5:58 pm, Alexandru-Emil Lupu wrote: > Lol... a mobile phone > > sent via htc magic > > On Dec 21, 2009 2:56 PM, "mirfan" wrote: > > i have cc. what is htc magic? > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" grou

[symfony-users] Open the Word Document/Excel Document in Browser rather than download

2009-12-21 Thread DEEPAK BHATIA
Hi, The below action opens the excel document in the Microsoft Excel. But I want to open this in Browser. Please help. public function executeSamplexls() { $filename='sampletemplate.xls'; $filename = '/opt/lampp/htdocs/wbrt/web/uploads/'.$filename; if(file_exists($filename)) {

Re: [symfony-users] Re: strange problem with date

2009-12-21 Thread Alexandru-Emil Lupu
Lol... a mobile phone sent via htc magic On Dec 21, 2009 2:56 PM, "mirfan" wrote: i have cc. what is htc magic? -- 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 unsubscr

[symfony-users] Re: strange problem with date

2009-12-21 Thread mirfan
i have cc. what is htc magic? -- 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 email to symfony-users+unsubscr...@googlegroups.com. For mo

Re: [symfony-users] Re: strange problem with date

2009-12-21 Thread Alexandru-Emil Lupu
have you cc? sent via htc magic On Dec 21, 2009 2:33 PM, "mirfan" wrote: i have installed the latest version of pear but it still give me the same problem cache folder has 777 permission, if this is not right then what it should be? these are ther versions PEAR Version: 1.4.9 PHP Version: 5.1.6

[symfony-users] Re: strange problem with date

2009-12-21 Thread mirfan
i have installed the latest version of pear but it still give me the same problem cache folder has 777 permission, if this is not right then what it should be? these are ther versions PEAR Version: 1.4.9 PHP Version: 5.1.6 -- You received this message because you are subscribed to the Google Grou

Re: [symfony-users] strange problem with date

2009-12-21 Thread Alexandru-Emil Lupu
Make sure that you have the right permissions on tha cache folder. As well, i think that class is a pear class. I am not sure though. Alecs sent via htc magic On Dec 21, 2009 1:56 PM, "mirfan" wrote: Hi, I was working on project in UBUNTU operating system everything is fine and good but now it

[symfony-users] strange problem with date

2009-12-21 Thread mirfan
Hi, I was working on project in UBUNTU operating system everything is fine and good but now it seems strange when i migrate to Centos 5 when i access any page which is printing date a Fatal Error occurs saying class DateTime not found. I generate a new and fresh project in Centos which also give

[symfony-users] Re: problema with build-schema in command line

2009-12-21 Thread Maicol
The problem was permissions on Windows Vista On 21 Dic, 08:47, Alexandru-Emil Lupu wrote: > Maybe he did not had anything in his db? > Build schema is to translate the db tables into a schema representation > > sent via htc magic > > On Dec 18, 2009 7:16 PM, "ruigoncalves" wrote: > > What was th