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
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
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 =
-- 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
-- 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
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
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
Enkhbilguun Erdenetsogt wrote:
function getPriceJson(volume)
{
$.post(
/async/getprice,
{
volume :volume
},
function(response)
{
$(#ai92).append(a href='#'+response.diesel+/a);
$(#ai80).append(response.ai80);
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:
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
Саша Стаменковић 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
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
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
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
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
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
-- 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
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
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
-- 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.
-- 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
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
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 -
-- 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
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';
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:
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
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
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
29 matches
Mail list logo