Re: [symfony-users] [Symfony2] How to customize a container alias ?

2010-12-19 Thread Frank He
Hi, Please forgive my ignorance. Your config tag service id=/ is absolutely new to me. As I just started examing sym2 within last two days, I checked their doc and can not find this at all. Can you point me to the right location that I can find its definition and use instructions? Thanks

Re: [symfony-users] [Symfony2] How to customize a container alias ?

2010-12-19 Thread Frank He
Great, Thanks. I was just wondering why there is no doc for DI from Sym2 Reloaded Documentation. I guess sym2 DI is a mirror of spring, but I will have a close check. Thanks for this valuable link for me. On Sun, Dec 19, 2010 at 8:27 AM, gordonslondon jules.boussek...@gmail.comwrote: for the

Re: [symfony-users] Anyone ever used nu_coder to encode symfony project

2010-09-30 Thread Frank He
Once you used php symfony cc to clear cache, it will start working. This is the same as that of nu-coder. have you every cleared cache in the encoded project? Or you never clear cache for it once encoded? 2010/9/30 Gürkan SEVİNÇ gurkansev...@gmail.com On 29.09.2010 22:29, xhe wrote: If I use

Re: [symfony-users] Anyone ever used nu_coder to encode symfony project

2010-09-30 Thread Frank He
sorry I mean stop working, not start working. Pardon me On Thu, Sep 30, 2010 at 11:19 AM, Frank He hexuf...@gmail.com wrote: Once you used php symfony cc to clear cache, it will start working. This is the same as that of nu-coder. have you every cleared cache in the encoded project? Or you

[symfony-users] Re: how to use get_partial from service function

2010-01-26 Thread Frank He
I know that in task, I can use partial as this: $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true); $context = sfContext::createInstance($configuration); $configuration-loadHelpers('Partial'); $message-attach( new

Re: [symfony-users] Re: Installation on shared hosting

2010-01-13 Thread Frank He
:29 am, Frank He hexuf...@gmail.com wrote: You can add multiple symfony projects in just one account, like what I did with hostmonster structure can be like this: public_html --web(all your web assets including index.php) --symfony-clb(all symfony files, apps, configue

Re: [symfony-users] Re: Installation on shared hosting

2010-01-12 Thread Frank He
You can add multiple symfony projects in just one account, like what I did with hostmonster structure can be like this: public_html --web(all your web assets including index.php) --symfony-clb(all symfony files, apps, configue...) And then in your webroot, modify your controller like this:

Re: [symfony-users] Anyone used symfony with Flash Builder 4 Data Service?

2010-01-10 Thread Frank He
If we don't user data service in Flash Builder 4, then symfony has no problem, we can use remoting with AMF format, or httpSercvice to provide XML format. But only if when you want to use data service, symfony seemed out of power. It seemed we have to make a choice, either syfmony or FB4 data

Re: [symfony-users] Re: How can I access sfUser session value from lib directory

2009-11-18 Thread Frank He
Agree, using sfContext::getInstance() is not working here in the lib directory. As I am using sfAmfplugin in the frontend, see public function executeAmf() { $this-setLayout(false); $gateway = new sfAmfGateway(); $response = sfContext::getInstance()-getResponse();

[symfony-users] Re: sfAmfPlugin can not pass key in associate array

2009-10-22 Thread Frank He
Using VO may be another solution, but it will require creation of many VO in AS3 sides as there may be many afm functions to be called. So if Associate Array can be pased correctly with Key value, it will be terrific. Have you ever passed associate array from PHP to AS3 succesfully with the name

[symfony-users] Re: sfAmfPlugin can not pass key in associate array

2009-10-22 Thread Frank He
at 12:33 PM, Frank He hexuf...@gmail.com wrote: Using VO may be another solution, but it will require creation of many VO in AS3 sides as there may be many afm functions to be called. So if Associate Array can be pased correctly with Key value, it will be terrific. Have you ever passed

[symfony-users] Re: sfAmfPlugin can not pass key in associate array

2009-10-22 Thread Frank He
simple untyped Object() is only in as3, in PHP, I can not find that type. So how can we pass untyped simple object from PHP to AS3? On Thu, Oct 22, 2009 at 1:03 PM, NairuS nicolas.sur...@gmail.com wrote: 2009/10/22 Frank He hexuf...@gmail.com Also in as3, we can use array as this; var

[symfony-users] Re: sfAmfPlugin can not pass key in associate array

2009-10-22 Thread Frank He
pass the key to flex. But If I put the same function to afmphpplugin in symfony, the response no longer include any key value, instead only 0,1,2... Please help... On Thu, Oct 22, 2009 at 1:40 PM, Frank He hexuf...@gmail.com wrote: simple untyped Object() is only in as3, in PHP, I can

[symfony-users] Re: sfAmfPlugin can not pass key in associate array

2009-10-22 Thread Frank He
Finally! We must use SabreAMF_ArrayCollection() to conver the associate array and pass back to flex in order to read the key! On Thu, Oct 22, 2009 at 2:22 PM, Frank He hexuf...@gmail.com wrote: I did an extensive research and found this may be the bug in amfPhpPlugin In order to prove it, I

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-09-30 Thread Frank He
Just found the problem is Google is only allowing a max of 64 results, and that is why if you try to translate a whole web page by using google ajax translate api, it won't do that. any good idea to overcome this? On Tue, Sep 29, 2009 at 10:51 PM, Frank He hexuf...@gmail.com wrote: Eno, I

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-09-30 Thread Frank He
They mentioned that translation speed is depending on google, blabla, so maybe they embeded the google service in their code. On Wed, Sep 30, 2009 at 11:58 AM, Eno symb...@gmail.com wrote: On Wed, 30 Sep 2009, Frank He wrote: Just found the problem is Google is only allowing a max of 64

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-09-29 Thread Frank He
I saw that before. But how can I translate the whole web page and display it back on the page? if you have a look at www.dishgods.tv, you will know what I need. Their processing of web translation is pretty good, just like using i18n in backend, but actually, they are using google translate.

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-09-29 Thread Frank He
://www.doctrine-project.org/extensions On Tue, 29 Sep 2009 20:10:45 +0200, Frank He hexuf...@gmail.com wrote: I saw that before. But how can I translate the whole web page and display it back on the page? if you have a look at www.dishgods.tv, you will know what I need. Their processing of web

[symfony-users] Re: Are there any good solution to implement instant webpage translation?

2009-09-29 Thread Frank He
, Sep 29, 2009 at 3:43 PM, Eno symb...@gmail.com wrote: On Tue, 29 Sep 2009, Frank He wrote: I saw that before. But how can I translate the whole web page and display it back on the page? I thought mentioning AJAX and Google Translate in my last post was a good clue... Or do you

[symfony-users] Re: Error - You must specify a moduleName

2009-07-27 Thread Frank He
the strange thing is even if I delete everthing and do this: 1. symfony init-app backend 2. symfony propel-init-admin backend article Article the exactly same error happened! Perhaps this is because my php? On Mon, Jul 27, 2009 at 9:52 AM, Alexandru-Emil Lupu gang.al...@gmail.comwrote:

[symfony-users] Re: text box Size

2009-05-27 Thread Frank He
?php echo input_tag(name,$defaultval, array(style=width:100px,size=x )? On Wed, May 27, 2009 at 3:21 PM, Eno symb...@gmail.com wrote: On Wed, 27 May 2009, Atznt wrote: I need to show a text box with certain large... How Can I do that? When I used the input_tan helper always show me

[symfony-users] Re: SETUP SERVER

2009-05-22 Thread Frank He
I also suspect the new server configuration does not support symfony's minimum requirement, such as PDO, php 5 or whatever. On Fri, May 22, 2009 at 1:21 PM, Eno symb...@gmail.com wrote: On Thu, 21 May 2009, janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can

[symfony-users] Re: SETUP SERVER

2009-05-21 Thread Frank He
Sounds like you have to update your configue file, such as database.yml, app.yml, settings.yml etc. You can use frontend_dev.php to see where is the error. On Thu, May 21, 2009 at 10:22 PM, janlar...@gmail.com wrote: hi im trying to replicate my server to a new pc, i can now run it but my

[symfony-users] Re: forum plugin for propel sf 1.2

2009-05-18 Thread Frank He
Yes, I like to have a try with this plugin also. Thanks. On Mon, May 18, 2009 at 5:28 PM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: do you have it developed? maybe you could upload it as pear package somwhere else... alecs On Tue, May 19, 2009 at 12:21 AM, Frank Stelzer

[symfony-users] Re: Chinese Lanuage in the URL, failed, please share some of your ideas, thanks

2009-05-17 Thread Frank He
I used Gabor's solution, just change the requirement in the routing.yml, change from \w+ to .+, then it works like a charm! I am using IE7, FF browser. On Sun, May 17, 2009 at 7:53 PM, gestadieu gestad...@gmail.com wrote: Chinese characters cannot be used in URL unfortunately, they are not

[symfony-users] Re: Why this first in the feed is always throwing error

2009-05-15 Thread Frank He
i used this one $ symfony plugin-install http://plugins.symfony-project.com/sfFeed2Plugin to install, why it always tell me this is symfony 1.0 plugin, I am having symfony 1.2 On Fri, May 15, 2009 at 5:42 PM, Frank Stelzer d...@bleedingmoon.de wrote: It is a interpreter problem. ? is

[symfony-users] Re: Propel Problem.....plz help

2009-04-28 Thread Frank He
poojau...@gmail.com wrote: Hi Frank This SQL query is going fine in MYSQL this is giving me results but in symfony i m having problem...plz help Regards Pooja On Apr 27, 5:54 pm, Frank He hexuf...@gmail.com wrote: I sugest you first use $c-toString() to print out the query and see

[symfony-users] Re: Propel Problem.....plz help

2009-04-27 Thread Frank He
I sugest you first use $c-toString() to print out the query and see where is the error. On Mon, Apr 27, 2009 at 8:11 AM, Pooja poojau...@gmail.com wrote: Hi All i have tired to convert below Sql query in symfonyIt is reporting Error Sql Query is.. select

[symfony-users] Re: csrf detection and cache

2009-04-23 Thread Frank He
The time delayed not by other parts on the page, but the form, that is why I want to cache it. I searched web for not csrf protecting the form, but no go. Any way? On Thu, Apr 23, 2009 at 1:11 PM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: hi! just try to make a slot(or a component) that

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-08 Thread Frank He
I used this solution, and it now works fine cd /home1/xxx/public_html/symfony-clb php -c /home1/xxx/public_html/symfony-clb/php.ini symfony cleanChatRooms On Thu, Apr 9, 2009 at 11:14 AM, Jan De Coster j...@we-create.be wrote: Eno schreef: On Tue, 7 Apr 2009, Frank He wrote

[symfony-users] Re: has anyone used shared hosting with PDO compiled as shared lib ever used sym1.2 in CLI ?

2009-04-07 Thread Frank He
Thanks. My provider finally informed me to set different extension-dir in web env and cli env, they said this is due to security issue. And then after callign different php.ini, it works. On Tue, Apr 7, 2009 at 7:18 AM, Ant Cunningham prodigital...@vectrbas-d.com wrote: I may be mistaken as

[symfony-users] Re: Admin gen: CSRF attack

2009-04-07 Thread Frank He
I only met this issue if I specifically copy/past csrf hidden field into a form and sutmit it. If the form are auto-generated, or use link-to, url-for, this won't happend. have you modified your form to manually add csrf field? On Tue, Apr 7, 2009 at 5:09 AM, HAUSa

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-07 Thread Frank He
I have changed structure of the websites. All the web contents are placed under directory1, and all the symfony contents are placed under directory2 public_html: --directory1: contents of web --directory2: contents of sym, such as apps, lib... the path that I set to symfony is

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-07 Thread Frank He
The first solution can be realized with as new script, but can you specify more about the second solution. And sample scripts? Thanks On Tue, Apr 7, 2009 at 11:28 PM, Eno symb...@gmail.com wrote: On Tue, 7 Apr 2009, xhe wrote: Don't know if you have ever met this issue. I want to run

[symfony-users] Re: Command line task in shared web hosting - PDO class is missing

2009-04-05 Thread Frank He
php -i will give a huge display in my putty, and I can not find out where is PDO, there should be a command find or something, by which I can find more specifically for the PDO, can anyone tell me how to do to that? On Sun, Apr 5, 2009 at 4:41 PM, Pablo Godel pgo...@gmail.com wrote: Looks like

[symfony-users] Re: Command line task in shared web hosting - PDO class is missing

2009-04-05 Thread Frank He
Yes I am using mysql, only in CLI, PDO is missing and I can not run my task in cron On Sun, Apr 5, 2009 at 4:42 PM, Eno symb...@gmail.com wrote: On Sun, 5 Apr 2009, xhe wrote: Fatal error: Class 'PDO' not found in /home1/transla1/public_html/

[symfony-users] Re: Command line task in shared web hosting - PDO class is missing

2009-04-05 Thread Frank He
...@gmail.com wrote: On Sun, 5 Apr 2009, Frank He wrote: php -i will give a huge display in my putty, and I can not find out where is PDO, there should be a command find or something, by which I can find more specifically for the PDO, can anyone tell me how to do to that? Learning some Unix comes

[symfony-users] Re: Command line task in shared web hosting - PDO class is missing

2009-04-05 Thread Frank He
, Apr 5, 2009 at 4:52 PM, Frank He hexuf...@gmail.com wrote: I used redirect to output into a file and load the file into my localcomputer php -i output.txt after checking that file, it is the same as the web display: './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif

[symfony-users] Re: Command line task in shared web hosting - PDO class is missing

2009-04-05 Thread Frank He
the provider is fixing this setting? has anyone met the same issue before? On Sun, Apr 5, 2009 at 5:17 PM, Pablo Godel pgo...@gmail.com wrote: you can try to specify your php.ini with php -c /path/to/php.ini Pablo On Sun, Apr 5, 2009 at 5:02 PM, Frank He hexuf...@gmail.com wrote

[symfony-users] Re: are there anyway to reduce the memory size

2009-04-03 Thread Frank He
I tested my app locally, and memory usage is 41526.5 KB Furthermore this is only the first page of backend.php, it is a login page, and all the backend was generated by using admin generator. I don't know there are any way to optimize the generator.yml. Is that true that admin generator itself

[symfony-users] Re: are there anyway to reduce the memory size

2009-04-03 Thread Frank He
will i18n consume? also I used _dev to see that it only consume huge memory when it first run, after that it will consume several MB memory. On Fri, Apr 3, 2009 at 8:51 AM, Frank He hexuf...@gmail.com wrote: I tested my app locally, and memory usage is 41526.5 KB Furthermore this is only the first

[symfony-users] Re: How do you manage your emails? I want to keep using sendEmail()

2009-03-31 Thread Frank He
yes that is what I have to do now, no longer to seperate email into a seperate action. Only that if many place need to send one similiar email? It is no longer as convenient as that in symfony 1.0, but hopefully, this kind of occurance is not high. On Tue, Mar 31, 2009 at 9:14 AM, Tom Boutell

[symfony-users] Re: batch script+send email+request parameter

2009-03-31 Thread Frank He
I asked this question before, 1. if you are using syfmony 1.2, no more sendEmail() function is good, just write it dierectly into your task 2. as running in cli, no request_uri is good, just hard code the url This is my experience On Tue, Mar 31, 2009 at 9:21 AM, kusum kusumdhin...@gmail.com

[symfony-users] Re: sfFormExtraPlugin sfWidgetFormJQueryDate in IE always fatally failed

2009-03-20 Thread Frank He
I see. The jquery I used is jquery-1.3.min.js, but if i use current stable jquery-ui, 1.7.1, then the IE browser is broken, i changed to legacy one with version of 1.5.3, then IE is fine. Thanks man for your advice. Frank On Fri, Mar 20, 2009 at 10:17 AM, Paolo Mainardi

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

2009-03-19 Thread Frank He
%GeneratorConfiguration.class.php On Thu, Mar 19, 2009 at 12:25 AM, Frank He hexuf...@gmail.com wrote: Where is that file you mentioned? I just know generator.yml, and that can not be updated based on some outside criteria, is that right? On Wed, Mar 18, 2009 at 3:11 AM, Alan Bem alan@gmail.com wrote: Look

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

2009-03-18 Thread Frank He
Where is that file you mentioned? I just know generator.yml, and that can not be updated based on some outside criteria, is that right? On Wed, Mar 18, 2009 at 3:11 AM, Alan Bem alan@gmail.com wrote: Look at *your_module*/lib/*your_module*GeneratorConfiguration.class.php. You can change

[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 maerl...@gmail.com 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

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

2009-03-17 Thread Frank He
to the criteria it returns, based on what user is logged in. Should be 3-4 lines of code... done. Seems elegant to me. Hope this helps, Daniel On Mar 17, 5:45 am, Frank He hexuf...@gmail.com wrote: Yes, I know that. But I want to take advantage of admin generator, which is using generator.yml

[symfony-users] Re: has anyone used link helper to generate absolute URL in command line task?

2009-03-12 Thread Frank He
But that has lost the flexibility of using url helper. maybe there are some solution just like using url helper in web interface and domain name will be added automatically if we set the absolut=true. On Thu, Mar 12, 2009 at 4:39 PM, danielwinter spinw...@gmail.com wrote: Save your domain

[symfony-users] Re: has anyone used link helper to generate absolute URL in command line task?

2009-03-12 Thread Frank He
:20 AM, Frank He hexuf...@gmail.com wrote: But that has lost the flexibility of using url helper. maybe there are some solution just like using url helper in web interface and domain name will be added automatically if we set the absolut=true. On Thu, Mar 12, 2009 at 4:39 PM

[symfony-users] Re: how to use propel class in task

2009-03-10 Thread Frank He
Sorry guys, it is my fault, they can be called. Love symfony so much! On Tue, Mar 10, 2009 at 12:54 PM, xhe hexuf...@gmail.com wrote: I used this line to create a task: class sendEmailAlertTask extends sfPropelBaseTask But whenever I want to use the propel class, I got fatal error, the

[symfony-users] Re: back button different effect in browser IE and Firefox, any solutions to handle it?

2009-02-22 Thread Frank He
I also considered this issue in first, and put these lines in the header: meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=Expires content=Mon, 26 Jul 1997 05:00:00 GMT / meta http-equiv=Cache-Control content=no-cache, must-revalidate / meta http-equiv=Pragma

[symfony-users] Re: can anyone help to tell me how to change session time?

2009-02-16 Thread Frank He
But if in php.ini, the session timeout is 30 minutes, but in config, I set the session_timeout to be 60 minutes, will the actual time out to be 30 or 60 minutes? On Mon, Feb 16, 2009 at 7:53 AM, shahin zabeti.sha...@gmail.com wrote: read

[symfony-users] Re: Some ideas seeking your suggestions

2009-02-06 Thread Frank He
Schussek bschus...@gmail.comwrote: Hi again, 2009/2/6 Frank He hexuf...@gmail.com: Any ideas for how to clear the activeuser table as user close the browser? As I have written before, you should rather use a cron job that periodically executes the query written in one of my previous mails

[symfony-users] Re: Some ideas seeking your suggestions

2009-02-05 Thread Frank He
Please parden my innocense, dude. Your suggestion is wonderful, but can you just show me something in more details? 1. how do I get the sessionid? 2. in order to be accurate, I think I should save three time in the active_users table, one is login time, one is fresh timestemp, another is session

[symfony-users] Re: Some ideas seeking your suggestions

2009-02-05 Thread Frank He
, 2009/2/5 Frank He hexuf...@gmail.com: Please parden my innocense, dude. Your suggestion is wonderful, but can you just show me something in more details? No problem mate. I warn you though - I'm just brainstorming here and don't have the opportunity to test this stuff :-) You could

[symfony-users] Re: Running symfony 1.2 in Shared Server - PDO issue

2009-01-31 Thread Frank He
unfortunately, what I did is not working there. See the phpinfo() here http://love.mediatube4.com/phpinfo.php Also the php.ini is http://love.mediatube4.com/php.ini when you use http://love.mediatube4.com/frontend_dev.php you will see the error there. Thanks On Sat, Jan 31, 2009 at 8:38 PM,

[symfony-users] Re: Running symfony 1.2 in Shared Server - PDO issue

2009-01-31 Thread Frank He
, Ant Cunningham prodigital...@vectrbas-d.com wrote: IS the estension actually present in either of these dirs?: /usr/local/lib/php/extensions/no-debug-zts-20060613 /home1/transla1/lib/extensions/no-debug-non-zts-20020429 Frank He wrote: unfortunately, what I did is not working

[symfony-users] Re: Running symfony 1.2 in Shared Server - PDO issue

2009-01-31 Thread Frank He
going to work. I think this extension_dir usr/local/lib/php/extensions/ no-debug-zts-20060613 Note there should be a foward slash on that... not sure you it was mission when you looked for it or not: /usr/local/lib/php/extensions/no-debug-zts-20060613 Frank He wrote: I think

[symfony-users] Re: Running symfony 1.2 in Shared Server - PDO issue

2009-01-31 Thread Frank He
. Is this because the shared hosting provider has strict requirement for the memory usage? If so, how much memory shall be used? On Sat, Jan 31, 2009 at 9:42 PM, Frank He hexuf...@gmail.com wrote: got you, thanks very much. On Sat, Jan 31, 2009 at 9:37 PM, Ant Cunningham prodigital...@vectrbas-d.com