[symfony-users] Re: symfony1.2 dynamic routes tutorial

2009-01-13 Thread matt marcum
will do the job. Or put ur routing configuration in separate table and update it when it's need (new subcategories, etc). So you don't need to fetch it from product, it's bad business logic. 2009/1/8 matt marcum mgmar...@gmail.com: I would  agree.  Obviously every site's requirements

[symfony-users] Re: symfony1.2 dynamic routes tutorial

2009-01-08 Thread matt marcum
, Цырульник Вячеслав neema...@gmail.com wrote: $categories=Doctrine::getTable('Category')-findAll(); $products=Doctrine::getTable('Product')-findAll(); What if you have 500 000 records for category and even more for products? Application will freeze computing this requests. 2009/1/8 matt marcum mgmar

[symfony-users] symfony1.2 dynamic routes tutorial

2009-01-07 Thread matt marcum
Hi, I spent a little time trying to figure out how to generate routes (semi)dynamically in symfony1.2 and I think I finally figured it out. I wrote up a quick tutorial if anyone's interested. Give it a read and let me know what you think.

[symfony-users] symfony1.2/ doctrine file upload, generateFilename function ?

2008-12-22 Thread matt marcum
Hi, I saw in the jobeet doctrine tutorial a method of having a function in your form the would generate filenames for uploaded files: if a generateLogoFilename() method exists in the form, it will be called by the validator and the result will override the default generated logo filename. The

[symfony-users] Re: symfony1.2/ doctrine file upload, generateFilename function ?

2008-12-22 Thread matt marcum
Sorry, the lines I changed to get this to work or 503-505: else if (method_exists($this, $method)) { return $this-getValue($field)-save($this-$method($this- getValue($field))); } basically, change $this-object to $this On Dec 22, 4:25 pm, matt marcum mgmar...@gmail.com wrote: Hi