[fw-general] ZF1 EventManager, where to put the events?

2012-10-10 Thread Vladas Diržys
Hello fellow Zend'ers, I was thinking about this for a long time, and now decided to ask you guys. I try to integrate the EventManager in a ZF1 application, and I ran into a question, how to manage or where to put the events? What's the best practice? I created a gist (https://gist.github.com/386

[fw-general] Re: Benchmark comparison

2012-08-20 Thread Vladas Diržys
I just now realized that this was quite old benchmark, and that it was tested against ZF2 beta1. So not sure if this benchmark is still valid.. Hope newest version is performing much better :) - Vladas On Mon, Aug 20, 2012 at 8:21 PM, Vladas Diržys wrote: > Hi guys, > > I'

[fw-general] Benchmark comparison

2012-08-20 Thread Vladas Diržys
g.com/blog/view/b6f0e42cf705.html -- Best Regards, Vladas Diržys about.me/vladas

Re: [fw-general] ZF without vhost

2012-01-06 Thread Vladas Diržys
You have to set baseUrl in your frontController. One way to do it, would be to set it in the application.ini resources.frontController.baseUrl = "/project" You might also want to set "RewriteBase project" in your .htaccess, if you haven't already done it. - Vladas On Fri, Jan 6, 2012 at 14:18,

[fw-general] Zend coding style and multiline string concatenation

2011-11-17 Thread Vladas Diržys
WHERE `name` = 'Susan' 3. ORDER BY `name` ASC "; Or should it be always like this? 1. $sql = "SELECT `id`, `name` FROM `people` " 2. . "WHERE `name` = 'Susan' " 3. . "ORDER BY `name` ASC "; -- Best Regards, Vladas Diržys

[fw-general] Zend Framework code coverage

2011-08-05 Thread Vladas Diržys
Hi, I'm wondering if there is a public access to Zend Framework's tests code coverage? It would be interesting to see it, but sadly I couldn't find anything. -- Best Regards, Vladas Diržys about.me/vladas

Re: [fw-general] Zend_form_element_file and Zend_test problems

2010-08-28 Thread Vladas Diržys
I use this adapter only in testing environment. -- Best Regards, Vladas Diržys 2010/8/27 Anderson Luiz Silvério > Thanks Vladas, > > but you use this File_Transfer_Adapter you created to the whole application > or just in the testing environment? I would like to use this new class

Re: [fw-general] Zend_form_element_file and Zend_test problems

2010-08-25 Thread Vladas Diržys
Hi, file upload unit testing is a bit tricky. The way I solved this problem, was to create another File_Transfer_Adapter which removes 'Upload' validator from File element. I extend Zend_Form_Element_File as well, to be able easily to override the transfer adapter. -- Best Regards, Vla

Re: [fw-general] Unable to set infinite lifetime with cache manager

2010-02-03 Thread Vladas Diržys
Zend_Cache_Core::load() Second parameter enables you to ignore validity testing: $cache->load('my_object', true); //should not test expiration More info: http://framework.zend.com/apidoc/1.10/Zend_Cache/Zend_Cache_Core.html#load -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 w

Re: [fw-general] Zend Framework Widgets

2010-01-21 Thread Vladas Diržys
I think there is already a solution which handles kind of "Widgets". Then you call action('my-widget-action', 'my-widget') ?> from your view, you can have similar effect. But the downside of this solution is performance. -- Regards, Vladas Diržys On Wed, J

Re: [fw-general] Rendering Response when Unit Testing Controllers

2010-01-07 Thread Vladas Diržys
Okay, that's why... :-) -- Regads, Vladas Diržys On Thu, Jan 7, 2010 at 14:13, Pádraic Brady wrote: > There's a view option to enable the stream conversion ;). > > Pádraic Brady > > http://blog.astrumfutura.com > http://www.survivethedeepend.com > OpenID Europe

Re: [fw-general] Rendering Response when Unit Testing Controllers

2010-01-06 Thread Vladas Diržys
Iteresting only, why Zend_View_Stream doesn't converts short tags to long tags?... -- Regards, Vladas Diržys On Wed, Jan 6, 2010 at 21:32, bparise wrote: > > I feel like such a noob... > Thanks! > > > Vladas Diržys wrote: > > > > Maybe you have short_open_t

Re: [fw-general] Rendering Response when Unit Testing Controllers

2010-01-06 Thread Vladas Diržys
Maybe you have short_open_tag disabled? -- Regards, Vladas Diržys On Wed, Jan 6, 2010 at 21:01, bparise wrote: > > I have controller testing with PHPUnit setup, but the response is just > rendering the PHP code(not actually rendering the views). > > class SiteControl

Re: [fw-general] problem with headers already sent

2009-12-06 Thread Vladas Diržys
BOM or not. > If you want to set a BOM for a file or if you want to remove it from a file, > just use the document menu and toggle the checkbox. -- Regards, Vladas Diržys 2009/12/7 Jigal Sanders > I am using geany. How can i check it? > > > On 6 dec 2009, at 21:13, Vladas Diržys

Re: [fw-general] problem with headers already sent

2009-12-06 Thread Vladas Diržys
Hi, Are you sure there is no BOM at the beginning of EventController.php? Which editor are you using? -- Regards, Vladas Diržys On Fri, Dec 4, 2009 at 14:09, Jigal sanders wrote: > Hello I have a strange problem. > > I am trying to enable Zendx_JQuery_Form > > So I have cre

Re: [fw-general] weird problem

2009-11-30 Thread Vladas Diržys
Maybe you are including 2 ZF libraries? And one of them is a bit older?... -- Regards, Vladas On Sun, Nov 29, 2009 at 22:43, Apostol Victor wrote: > this is the code > > $flickr = new Zend_Service_Flickr('xxx'); > > $results = $flickr->userSearch($email); > > foreach ($results a

Re: [fw-general] I18N Webinar

2009-11-15 Thread Vladas Diržys
+1 for Translating routes (urls) -- Regards, Vladas Diržys On Sun, Nov 15, 2009 at 12:13, Саша Стаменковић wrote: > Hi, glad to see webinar on this subject. > > Topics: > >- Caching translations ad optimization. >- Best practices and how to pick right adapter. >

Re: [fw-general] The best way to store dates

2009-10-12 Thread Vladas Diržys
n/5.1/en/time-zone-support.html -- Regards, Vladas Diržys On Fri, Oct 9, 2009 at 13:22, MarkW508 wrote: > > Hello everyone, > > I've never used the Zend Framework before, and starting a new application I > have a particular concern surrounding the best way to store dates. I r

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-09-25 Thread Vladas Diržys
Can you provide more detailed information about the fatal error? -- Regards, Vladas Diržys On Fri, Sep 25, 2009 at 13:18, Aycko wrote: > > > > Aycko wrote: > > > > Hello together, > > > > i set up a basic environment for unit testing my Zend_Application.

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread Vladas Diržys
Can you tell your name, surname? Would be interesting to know identity of the person, who can be so damn stupid. -- Regards, Vladas Diržys On Wed, Sep 23, 2009 at 11:59, aoohralex wrote: > > My critical subject about Zend Framework was deleted. Somebody from Zend > deleted my

Re: [fw-general] 2 actions my controller must be access for only loged users

2009-09-21 Thread Vladas Diržys
Seems that aoohralex has a new name - aaabbbcccdaabb... :-) -- Regards, Vladas Diržys On Mon, Sep 21, 2009 at 14:36, aaabbbcccdaabb wrote: > > My login action is in controller AuthController in action LoginAction(). > > If I use Zend_Auth_Storage_Session() to store username logged p

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread Vladas Diržys
uthors'), 'b.id = a.id_book', array('authors'=>new Zend_Db_Expr('GROUP_CONCAT(author)'))) ->group('b.id'); return $this->getAdapter()->fetchAll($select); } -- Regards, Vladas Diržys On Thu, Sep 17, 2009 at 16:06, aoohralex wrote: > &g

Re: [fw-general] HYDRATION like in Doctrine ORM in Symfony Framework

2009-09-17 Thread Vladas Diržys
->from(array('b' => 'books'), array('id')) ->join(array('a' => 'authors'), 'b.id = a.id_book', array('authors'=>new Zend_Db_Expr('GROUP_CONCAT(author)'))) ->group('b.

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Vladas Diržys
I have followed this discussion, and I must agree with you :-) -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Wed, Sep 16, 2009 at 18:52, Sean Utt wrote: > Interesting how people jump to conclusions. > > These kinds of threads all run the same course. They start

Re: [fw-general] SpiffyCalendar for the Zend Framework

2009-09-16 Thread Vladas Diržys
Hi, I would like to test and to use it in one of my projects. I also would give you a feedback what I (didn't) liked or what features I miss. So if it would be possible, please sent me this package or the download link :-) Anyway, I think calendar could be very useful. -- Kind Regards, V

Re: [fw-general] Problem with zend_form file element name using subform

2009-08-09 Thread Vladas Diržys
Ok, thanks Thomas. I have overlooked this notice. My fault ;-) -- Regards, Vladas Diržys On Sun, Aug 9, 2009 at 23:47, Thomas Weidner wrote: > Vladas, > > sometimes reading the manual helps: > > " File elements in Subforms > When you use file elements in subforms yo

[fw-general] Re: Problem with zend_form file element name using subform

2009-08-09 Thread Vladas Diržys
I can see that Issue Tracker has an issue for this bug: http://framework.zend.com/issues/browse/ZF-5835<http://framework.zend.com/issues/browse/ZF-5835>Are there plans to solve it? :-) -- Regards, Vladas Diržys 2009/8/9 Vladas Diržys > Hi, > > I have a form with 3 subforms. A

[fw-general] Problem with zend_form file element name using subform

2009-08-09 Thread Vladas Diržys
] *subform2[image]* Is this wanted behavior or is this a bug? PS.: I've debuged a bit, and I could notice, that File Decorator doesn't use getFullyQualifiedName() method to create the element name. -- Regards, Vladas Diržys

Re: [fw-general] Debugging the Zend

2009-08-07 Thread Vladas Diržys
Hi, You should make sure that throwExeptions option is enabled on your development environment. In your application.ini it should look like this: resources.frontController.throwExceptions = 1 -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Fri, Aug 7, 2009 at 13:49

[fw-general] routing question (hostname chain)

2009-08-03 Thread Vladas Diržys
can be routed. And if I try to route the path first, and only then the hostname, its not working: $pathRoute->chain($hostRoute); -- $hostRoute is not triggered. Would be thankful for any help ;-) -- Regards, Vladas Diržys

Re: [fw-general] Zend_Acl When / Where to check your ACL?

2009-07-16 Thread Vladas Diržys
Why an action helper, why not a plugin? -- Regards, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Thu, Jul 16, 2009 at 14:24, Matthew Weier O'Phinney wrote: > -- J DeBord wrote > (on Thursday, 16 July 2009, 09:30 AM +0200): > > I created a front controller plugin fo

Re: [fw-general] Inserting Zend_Form_Elements into a Zend_Form

2009-07-16 Thread Vladas Diržys
functionality. -- Regards, Vladas Diržys On Thu, Jul 16, 2009 at 08:38, Mary Nicole Hicks < webmas...@marynicolehicks.com> wrote: > > I am finding the Zend_Form hard to use. Currently all form elements usable > in > a Zend_Form have "order" property that specify an integer. T

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread Vladas Diržys
#x27;YourNamespaceHere_', 'basePath' => dirname(__FILE__), )); return $autoloader; } Replace *YourNamespaceHere* with your namespace ;-) This should work, tell me if it doesn't. -- Pagarbiai, Vladas Diržys On Thu, Jun 11, 2009 at 22:40, spaceage wrote:

Re: [fw-general] How to get an application resource inside a controller action

2009-05-27 Thread Vladas Diržys
I want to get the select object ($db->select()) from the db adapter, add some sorting or filtering rules and pass it later to the model. -- Pagarbiai, Vladas Diržys On Wed, May 27, 2009 at 10:10, Dalibor Karlović wrote: > On Tuesday 26 May 2009 20:40:38 Vladas Diržys wrote:

[fw-general] How to get an application resource inside a controller action

2009-05-26 Thread Vladas Diržys
Hi, what is the right way to get a db (or any other) resource in the controller? Now I'm using following line: $this->getFrontController()->getParam('bootstrap')->getResource('db'); Is there a better way? -- Pagarbiai, Vladas Diržys

Re: [fw-general] Server issue or Code? Domain to ZF module masking...?

2009-05-26 Thread Vladas Diržys
Hi,I never used it, but i think that you need is *hostname routing*: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Mon, May 25, 2009 at 22:35, drj201 wrote: > &

[fw-general] Zend_OpenId status

2009-05-20 Thread Vladas Diržys
my question is, is someone developing this? Or are there no plans for that at the moment? -- Vladas Diržys www.dirzys.com

[fw-general] Zend_Application_Module_Autoloader loading viewhelper question

2009-05-15 Thread Vladas Diržys
perTitle', 'viewhelper'); -- works. -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com > >

[fw-general] Zend_Pdf: How to create/add a bookmark?

2009-03-30 Thread Vladas Diržys
Hi,im starting to use Zend_Pdf, and I have some problems. wanted to add a bookmark to a page in a PDF document. But I can't find how to do it. Can anyone help me? -- Pagarbiai, Vladas Diržys

Re: [fw-general] Call a stored procedure

2009-03-06 Thread Vladas Diržys
Hi, As far I know, Zend_Db doesn't try to support stored procedures. But you can try following: $conn = $db->getConnection();$conn->query('call dosomething();'); -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Fri, Mar 6, 2009 at 12:46 PM, debus

[fw-general] Zend_Form input element 'error' class on validation error

2009-02-27 Thread Vladas Diržys
Hello folks, Is where any easy way to add a 'error' class to the input element, if there was validation errors? For example: Or its just possible with overriding some class? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

Re: [fw-general] Zend_Validate_NotEmpty and setRequired()

2009-02-12 Thread Vladas Diržys
Hi,I didn't tested it, but I think in your case, you should use $username->setAutoInsertNotEmptyValidator(false) or you can if you want to add a message to an already existing validator you should use: $username->getValidator('NotEmpty')->setMessage("Message or what

[fw-general] website

2008-11-27 Thread Vladas Diržys
Hi, in the download page of website (http://framework.zend.com/download/latest)<http://framework.zend.com/download/latest> section "Next Release (Unstable) 1.7.0 Preview Release Full" IMHO should be removed, renamed or whatever ;-) -- Pagarbiai, Vladas Diržys

[fw-general] Re: Zend_Uri_Http OR Zend_Validate_Hostname BUG

2008-11-24 Thread Vladas Diržys
e is not allowed hostname character. A bit confusing is that browsers (FF, Chrome) allows underscore to be used in at least local hostnames. -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Mon, Nov 24, 2008 at 4:28 PM, Vladas Diržys <[EMAIL PROTECTED]>wrote: > Hello, >

[fw-general] Zend_Uri_Http OR Zend_Validate_Hostname BUG

2008-11-24 Thread Vladas Diržys
nd_Validate_Hostname::ALLOW_ALL); but in the Zend_Validate_Hostname there is no place where it would check for this constant. At least I cant understand the logic... My question is, should validating my local address work? Or is it a BUG and it will be fixed? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

[fw-general] Zend_Controller_Action_Helper_Url BUG or expected bahavior?

2008-11-18 Thread Vladas Diržys
Why Zend_Controller_Action_Helper_Url::simple() doesn't set the baseUrl? It's a bit confusing, because another method Zend_Controller_Action_Helper_Url::url() does setting the baseUrl. -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

[fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG

2008-11-13 Thread Vladas Diržys
uld look like this: // Get messages and errors from hostnameValidator foreach ($this->hostnameValidator->getMessages() as $error => $message) { $this->_messages[$error] = $message; } or in both classes ;-) -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

[fw-general] Zend_File_Transfer - is this a BUG?

2008-11-12 Thread Vladas Diržys
ad_tmp_dir', but the _getTmpDir method just looks for sys_get_temp_dir() and doesn't tries to look for ini_get('upload_tmp_dir'); So is this a bug, or exists here some workaround? -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

Re: [fw-general] Zend_Scheduler Component

2008-10-26 Thread Vladas Diržys
Hello, I agree, this would be very useful component. -- Regards, Vladas Diržys www.dirzys.com On Fri, Oct 24, 2008 at 2:17 PM, Christian Münch <[EMAIL PROTECTED]>wrote: > Hi, > > in the laboratory is the Zend_Scheduler component. I think this component > could be ver

Re: [fw-general] How to generate a range of dates using Zend_Date?

2008-08-21 Thread Vladas Diržys
$dateFrom->addDay(1); } or somthing like that ;-) -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com On Thu, Aug 21, 2008 at 10:54 PM, Juan Felipe Alvarez Saldarriaga < [EMAIL PROTECTED]> wrote: > Hey! :) > > I have a question, how to generate a range o

[fw-general] [fw-db] Zend_Db (mysqli adapter) fetch nested queries

2008-04-30 Thread Vladas Diržys
} $_result->close(); } } $result->close(); } This prints only 1+5 results instead of 10*5. Is this behaviour a bug, or undocumented feature? :-) -- Pagarbiai // Gruß, Vladas Diržys tel.: +370 620 69020 (Omnitel) +370 677 17851 (Tele2) www.dirzys.com

Re: [fw-general] Zend Layout doctype at bootstrap question

2008-04-18 Thread Vladas Diržys
ently do it like this: > > > > $viewRenderer = > > Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); > > $view = new Zend_View(array('encoding' => 'utf-8')); > > $view->doctype('XHTML1_STRICT'); >

[fw-general] Zend_PDF: extracting images from PDF document

2008-03-21 Thread Vladas Diržys
hey guys, is it possible to extract images from an existing PDF document? if yes, how? :) -- Pagarbiai // Gruß, Vladas Diržys tel.: +370 677 17851 www.dirzys.com

[fw-general] Errors in documentation of Zend_Http_Cookies

2008-02-05 Thread Vladas Diržys
I think there is an error in documentation. http://framework.zend.com/manual/en/zend.http.cookies.html Example 17.22. and forward uses: $cookie = Zend_Http_*Client*('foo=two+words; ); but it should be: $cookie = Zend_Http_*Cookie*('foo=two+words; );