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
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'
g.com/blog/view/b6f0e42cf705.html
--
Best Regards,
Vladas Diržys
about.me/vladas
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,
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
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
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
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
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
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
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
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
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
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
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
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
+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.
>
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
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.
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
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
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
->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.
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
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
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
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
]
*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
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
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
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
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
#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:
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:
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
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:
>
&
my question is, is someone developing this? Or are there no plans for
that at the moment?
--
Vladas Diržys
www.dirzys.com
perTitle', 'viewhelper'); -- works.
--
Pagarbiai,
Vladas Diržys
Tel.: +370 620 69020
www.dirzys.com
>
>
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
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
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
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
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
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,
>
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
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
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
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
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
$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
}
$_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
ently do it like this:
> >
> > $viewRenderer =
> > Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
> > $view = new Zend_View(array('encoding' => 'utf-8'));
> > $view->doctype('XHTML1_STRICT');
>
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
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; );
54 matches
Mail list logo