[symfony-users] Re: variables in layout.php?

2009-05-24 Thread John Masson
Not sure what you are doing, (if it's just one variable) using the session like the guys have described above is probably easiest, but if you wanted to do anything more complex, you might want to check out using slots for setting up dynamic areas in your layout which can be populated by each actio

[symfony-users] Re: Best Practices for Schema Changes

2009-05-24 Thread pghoratiu
We usually change the schema and then do a propel build model and prepare an SQL script that changes the database to the desired structure. One of the elements I was missing when using MySQL is a nice schema synchronization tool which allows the developer to load the schema from the development an

[symfony-users] How to create mysql partitioning table with symfony?

2009-05-24 Thread chrisyue
I am a newbie in symfony, recently I am studying symfony by the jobeet tutorials, but I am used to creating partitioning for large table to improve performance. wish somebody would help me with this question, thx a lot. --~--~-~--~~~---~--~~ You received this messa

[symfony-users] functional testing and the dispatcher

2009-05-24 Thread Ian P. Christian
Everytime a new request is made with sfTestFunctional, a new sfEventDispatcher is created. I'm trying to test that an event is fired when certain data is posted. here's the test: $listener = new Listener(); sfContext::getInstance()->getEventDispatcher()->connect('user.register', array($liste

[symfony-users] Re: How to create mysql partitioning table with symfony?

2009-05-24 Thread Ian P. Christian
2009/5/24 chrisyue > I am a newbie in symfony, recently I am studying symfony by the jobeet > tutorials, but I am used to creating partitioning for large table to > improve performance. wish somebody would help me with this question, > thx a lot. No ORM I know can do this. I'd suggest creating a

[symfony-users] JSON Response after uploading file

2009-05-24 Thread santail
I have a page which uploads some file. I need to return JSON response to the page after file is uploaded. I have the next code in action: $this->getResponse()->setHttpHeader('Content-Type','application/json; charset=utf-8'); $result = array( "success" => true, "picture" => array(

[symfony-users] Re: Best Practices for Schema Changes

2009-05-24 Thread James Cauwelier
I did some research and it turns out that the master solution in my earlier response should work. Just make sure that your application doesn 't use 'unnamed insert/update', always use the column names for update/insert. More information on the mysql performance blog: http://www.mysqlperformance

[symfony-users] New Snippet: Case-insensitive URLs/routes

2009-05-24 Thread Nickolas Daskalou
I needed this in my application and couldn't find an available solution, so thought it might be useful for others too: http://snippets.symfony-project.org/snippet/339 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[symfony-users] Can I put a global component into layout.php?

2009-05-24 Thread Stephen
Hi there, I want to put a global (can be used by all modules in one application, but not belongs to any module) component into a layout.php. Can I do that? If I can, where should I put this component file? Regards, Jishi --~--~-~--~~~---~--~~ You received this mes

[symfony-users] Re: How to create mysql partitioning table with symfony?

2009-05-24 Thread chrisyue
Thanx for your reply. So how about creating patition manually, I mean for example I split a very large user table `my_users` to 100 tables called `my_users_00`, `my_users_01`, ... `my_users_99`, the last 2 number of the user_id decide which table it would belong to. I can easily define them in sc

[symfony-users] How to install sfSimpleCMSPlugin in Symfony 1.2

2009-05-24 Thread yalc...@gmail.com
Hi, i'm trying to install sfSimpleCMSPlugin in Symfony 1.2, but the follow error is generated: You try to install a symfony 1.0 plugin. Please read the help message of this task to know how to install a plugin for the current version of symfony. I've been searching in groups and forums wit

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-24 Thread Nickolas Daskalou
Yes you can, put it in apps/yourapp/templates/_myglobaltemplate.php and include it in layout.php (or any other view/template) like this: The important part is the "global" bit. Also note though that layout.php gets run AFTER your actual view file. 2009/5/25 Stephen > >

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-24 Thread Nickolas Daskalou
Oh, I just read your question again, you said component, not partial, sorry. So the answer is... I'm not sure. 2009/5/25 Nickolas Daskalou > Yes you can, put it in apps/yourapp/templates/_myglobaltemplate.php and > include it in layout.php (or any other view/template) like this: > > > >

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-24 Thread Stephen
Hey, Thanks very much for your reply. Partial in layout is also what I'm looking for. Still waiting for the answer of component. Regards On May 25, 1:13 pm, Nickolas Daskalou wrote: > Oh, I just read your question again, you said component, not partial, sorry. > > So the answer is... I'm not

[symfony-users] Re: Can I put a global component into layout.php?

2009-05-24 Thread Frank Stelzer
A component does not make sense without any module. It has to execute some logic and this logic should be placed in some module (otherwise you should prefer using a partial). When this logic does not match any other used module, then create a new "internal" module, where you place your "gl

[symfony-users] batch script+send email

2009-05-24 Thread kusum
Hi how we can send email in a batch script using sendEmail method.And how we can set request parameter for this.I am using symfony 1.0. Thanks, Kusum --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony use