Re: [fw-general] css class to option tags

2009-10-29 Thread Саша Стаменковић
I achieved this with my custom view helper: ?php /** * Select with custom css helper. * * @package Forms * @author Sasa Stamenkovic umpir...@gmail.com */ /** * Select brand helper, options class customization. * * @package Forms */ class Umpirsky_View_Helper_FormSelectCustom extends

[fw-general] Blog Post on Zend_Entity and Yadif

2009-10-29 Thread keith Pope
Hi, I just published a blog post on Zend_Entity and injecting dependencies into Domain Objects using the Yadif Container. http://www.thepopeisdead.com/main/comments/zend_entity_notes_on_rich_domain_objects/ This is just a quick prototype so I would be interested in hearing any views on the

Re: [fw-general] Problems using Zend_Dom

2009-10-29 Thread drm
oportell wrote: $xmlfile = BASE_PATH . '/language/all_languages.tmx'; if (file_exists($xmlfile)) { $xml = file_get_contents($xmlfile); $dom = new Zend_Dom_Query(); $dom-setDocumentXml($xml); $xpath = //t...@xml:lang='en']; $results = $dom-queryXPath($xpath); $rows =

Re: [fw-general] passing values to view from decorators

2009-10-29 Thread Matthew Weier O'Phinney
-- Ralikwen balazs.kl...@gmail.com wrote (on Wednesday, 28 October 2009, 06:31 AM -0700): I am generating javascript code for form elements in custom decorators. As opposed to normal decorator functionality the generated code should not go within the form but to the final view rendered. I'd

Re: [fw-general] Problems using Zend_Dom

2009-10-29 Thread Matthew Weier O'Phinney
-- prodigitalson ant.cunning...@gmail.com wrote (on Wednesday, 28 October 2009, 01:43 PM -0700): Well i havent used Zend_Dom either but i assume its using SimpleXml for its underlying functionality. Nope -- it uses the DOM extension. If this is indeed the case im thinking that maybe its the

[fw-general] How can I to print Json formated response?

2009-10-29 Thread Enkhbilguun Erdenetsogt
Hello, I wanted to print json formatted response, which is passed from controller passing to a view script. The response, which is catched with firebug is: |{ai80:1050,ai92:1100,diesel:1300}| But I can't see any of those values on my browser. Please advice me what I made wrong. In the

[fw-general] Saving dependent rowsets

2009-10-29 Thread Jurian Sluiman
Hi all, I have a table row with a dependent rowset (e.g. blog articles and a i18n table which contains blog title + text for the blog_id / language combination). Now to insert tables it's a simple $dbtable-insert() for the article and for each i18n row a $dbtableI81n-insert(). BUT: if you have

Re: [fw-general] How can I to print Json formated response?

2009-10-29 Thread drm
Enkhbilguun Erdenetsogt wrote: function getPriceJson(volume) { $.post( /async/getprice, { volume :volume }, function(response) { $(#ai92).append(a href='#'+response.diesel+/a); $(#ai80).append(response.ai80);

[fw-general] [ Zend_Soap_Client ] - How to add extra headers?

2009-10-29 Thread Juan Felipe Alvarez Saldarriaga
Hey!. I'm trying to add some soap headers using SoapHeader class, so I create a new class that extends from Zend_Soap_Client, I'm using the callback (_doRequest) to get the current SoapClient instance and add my soap headers, but cause the method method returns void I got an exception:

[fw-general] Zend_Locale

2009-10-29 Thread Ed Lazor
Hi, I'm trying to clean up my bootstrap. Is there a way to move these lines to application.ini? setlocale(LC_ALL, 'en_US.utf8'); Zend_Locale::setDefault('en'); I read through the manual and it looks like this is required in the bootstrap, but I'd like to double check. Thanks, Ed

Re: [fw-general] css class to option tags

2009-10-29 Thread drm
Саша Стаменковић wrote: class Umpirsky_View_Helper_FormSelectCustom extends Zend_View_Helper_FormSelect { Hi Saša, Good solution, which I would have suggested if same classes for all the options wouldn't suffice. Little suggestion: name your class Umpirsky_View_Helper_FormSelect and add

[fw-general] Rowsets and empty()

2009-10-29 Thread Hector Virgen
Calling empty() on a rowset (Zend_Db_Table_Rowset) always returns false, even if the rowset has zero rows. Is there a way to make rowsets (or any iterator) work with empty()? Or is !count($rowset) the only way to test for an empty rowset? -- Hector

Re: [fw-general] Rowsets and empty()

2009-10-29 Thread prodigitalson
Hector Virgen wrote: Calling empty() on a rowset (Zend_Db_Table_Rowset) always returns false, even if the rowset has zero rows. Is there a way to make rowsets (or any iterator) work with empty()? Or is !count($rowset) the only way to test for an empty rowset? You need to use count() or

Re: [fw-general] Rowsets and empty()

2009-10-29 Thread Hector Virgen
Thanks for the reply. It seems like using count() is the only way to test for empty rowsets. The question is more about iterators in general, since they can (almost) be drop-in replacements for arrays. I'm OK with using count(). I was just curious if it's possible to make an object work with

[fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Benjamin Eberlei
Hello everyone, I just want to inform everyone that I will discontinue development on Zend Entity and in return invest time to integrate Doctrine with Zend Framework on a large scale. I changed my mind for several reasons 1. It drains up all my free time and I got quite a blockade from it. 2. I

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Antonio José García Lagar
I'm so sorry for this decision but otherwise I know this was a hard work that you have done mostly alone. Although the project is not finished, I congratulate you: your work has been excellent. Do you plan to integrate Doctrine 1.x with ZF? I think that I'm not the only one tied to PHP 5.2. I

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Matthew Weier O'Phinney
-- Antonio José García Lagar a...@garcialagar.es wrote (on Thursday, 29 October 2009, 07:24 PM +0100): I'm so sorry for this decision but otherwise I know this was a hard work that you have done mostly alone. Although the project is not finished, I congratulate you: your work has been

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread prodigitalson
I dont know if its even possible but id really like to see some general abstraction for ORM integration that these would be based on... Just to make it easier to integrate Propel for instance. Granted this would have to be pretty abstract given vendor differences - or even differences in major

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Antonio José García Lagar
2009/10/29 Matthew Weier O'Phinney matt...@zend.com Ideally, we'll have both Doctrine 1.x and 2.x integration, for this very reason - though likely as separate implementations (Zend_Doctrine, Zend_Doctrine2). There are some commonalities between them that we can leverage immediately

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Matthew Weier O'Phinney
-- prodigitalson ant.cunning...@gmail.com wrote (on Thursday, 29 October 2009, 12:04 PM -0700): I dont know if its even possible but id really like to see some general abstraction for ORM integration that these would be based on... Just to make it easier to integrate Propel for instance.

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Matthew Weier O'Phinney
-- Antonio José García Lagar a...@garcialagar.es wrote (on Thursday, 29 October 2009, 08:17 PM +0100): 2009/10/29 Matthew Weier O'Phinney matt...@zend.com Ideally, we'll have both Doctrine 1.x and 2.x integration, for this very reason - though likely as separate implementations

Re: [fw-general] Zend_Locale

2009-10-29 Thread admirau
Ed Lazor-3 wrote: Hi, I'm trying to clean up my bootstrap. Is there a way to move these lines to application.ini? setlocale(LC_ALL, 'en_US.utf8'); Zend_Locale::setDefault('en'); I read through the manual and it looks like this is required in the bootstrap, but I'd like to double

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread keith Pope
29 Matthew Weier O'Phinney matt...@zend.com: -- Antonio José García Lagar a...@garcialagar.es wrote (on Thursday, 29 October 2009, 08:17 PM +0100): 2009/10/29 Matthew Weier O'Phinney matt...@zend.com     Ideally, we'll have both Doctrine 1.x and 2.x integration, for this very     reason -

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Matthew Weier O'Phinney
-- keith Pope mute.p...@googlemail.com wrote (on Thursday, 29 October 2009, 08:19 PM +): 29 Matthew Weier O'Phinney matt...@zend.com: -- Antonio José García Lagar a...@garcialagar.es wrote (on Thursday, 29 October 2009, 08:17 PM +0100): 2009/10/29 Matthew Weier O'Phinney

[fw-general] mail attachments

2009-10-29 Thread Tim Rupp
Hi list, I'm using Zend_Mail and trying to send an attachment. When I attach something like so $mail = new Zend_Mail(); $options = $config-mail-smtp-params-toArray(); $transport = new Zend_Mail_Transport_Smtp($config-mail-smtp-server, $options); $body = 'Attached are the results';

Re: [fw-general] Action Helpers not found

2009-10-29 Thread asagala
I tried the above. Still no luck. My Action Helpers still cant be found. I know the Helpers work because when I place them in library\Zend\Controller\Action\Helper. They are found. For some reason I cant get them to get found elsewhere even after trying all of the above. Hector Virgen wrote:

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-10-29 Thread Benjamin Eberlei
Hello Keith, you should take a look at Doctrine 2. As Zend Entity it implements the JPA specification and is a true data mapper with models decoupled from Database completly. greetings, Benjamin On Thursday 29 October 2009 09:19:50 pm keith Pope wrote: 29 Matthew Weier O'Phinney

Re: [fw-general] Zend_Locale

2009-10-29 Thread Ed Lazor
I'm trying to clean up my bootstrap.  Is there a way to move these lines to application.ini? setlocale(LC_ALL, 'en_US.utf8'); Zend_Locale::setDefault('en'); I read through the manual and it looks like this is required in the bootstrap, but I'd like to double check. Take a look at

[fw-general] How would you handle needing HTML in a Facebook Call

2009-10-29 Thread Ian Warner
Hi I need to set the Profile box for a user in facebook - which essentially contains HTML / CSS etc - all view stuff However the Call to Facebook I would put into a Controller. How would you handle this - can calling a view / partial simply return the HTML for that? Trying reading this but