Hi again,
I'm trying to put together simple item paginators (ala the
http://framework.zend.com/manual/en/zend.paginator.usage.html example), and
I'm just wondering what the best practice for something like this is when
used with the Dojo grid. The Dojo grid takes care of the search pagination,
so
Karol is correct. ZSE prior to 6.1 will not work correctly. Also, be sure to
set your php inclusion paths.
- Jonathan
Themselves wrote:
This is a very common issue with Eclipse, it dies in the arse with large
projects. The building workspace thing has cost me a handful of days in
lost
Hello, I wanted to post some observations on my usage of ZF, fairly random:
Grid
I had to deploy a ZF based site on an MT Grid package. The performance was
very sporadic - page serves anything from 8s - 25s on a bad day. Grid is a
terrible hosting environment, so I'm not for a second saying the
Hi Ben.
I have a question about Zend_Controller_Router_Route_Hostname.
How configure this URL?
subdomain.fengone.com/home/index
module - subdomain , controller - home , action - index
If you can't busy, pls help me. Thanks.
--
Mills Guo
Matthew Weier O'Phinney-3 wrote:
You miss several important issues: it's not necessarily about testing on
Windows, it's the entire methodology. If you want to have a good
benchmark on windows, use a reasonable production environment: dedicated
machine, using IIS + FastCGI. Apache on
Good point Karol and Jonathan. I haven't upgraded from 6.0 yet. I will try
that and see if it makes a difference.
On Mon, Nov 3, 2008 at 4:23 AM, jkush1121 [EMAIL PROTECTED] wrote:
Karol is correct. ZSE prior to 6.1 will not work correctly. Also, be sure
to
set your php inclusion paths.
-
I have been using this since the beginning of thte framework for the
simplest of projects (the ones that only require one controller and no
modules and where the extra 'index' in the url only hurts the eyes):
- This is a snippet from an INI config file:
[main]
; Settings for routing engine
On Fri, Oct 31, 2008 at 11:07 PM, Rob Allen [EMAIL PROTECTED] wrote:
I would probably extend Zend_Db_Table_Abstract and automatically add the
prefix when setting up the table name. Something like this:
class App_Db_Table_Abstract extends Zend_Db_Table_Abstract
{
[...]
hi,
where would it be
Replace the label with these:
array(array('labelTdClose'='HtmlTag'),
array('tag'='td', 'closeOnly'=true, 'placement'='prepend')),
'Label',
array(array('labelTdOpen'='HtmlTag'),
array('tag'='td', 'openOnly'=true,
'class'='y_class', 'placement'='prepend')),
It looks weird
Setting up a proper environment that at least a bit resembles what's used in
production is a matter of professionalism, I don't think you will convince
anyone here otherwise. It puts into questions author's technical abilities
as a whole. You have no way to tell how this choice affected the
Matthew Weier O'Phinney is working on a performance guide as an appendix
to our manual. It covers a lot of practices that should improve the
performance of your ZF app. In addition, the 1.7 release contains
several performance enhancements in the MVC components and elsewhere.
An important fact to
I suggest you just run it through a profiler and analyse bottlenecks, try
Xdebug+KCachegrind.
If bottlenecks are in ZF code that you have no control over you can always
suggest an improvement or at least raise an issue.
Some generic tips that might help: enable APC, put ZF library at the
Hi,
Seeing as we're talking speed, I have a question. One of my controllers is
close to 3,000 lines long, that section of my site has many, many pages.
Before I ZF'd my site, I just had a lot of .php files. How come I need to
merge all these into one controller? Why does the parser need to
Don't put businesses logic into the controllers. Controllers should contain
application logic. You business logic should be in your models.
On Mon, Nov 3, 2008 at 3:17 PM, monk.e.boy [EMAIL PROTECTED]wrote:
Hi,
Seeing as we're talking speed, I have a question. One of my controllers is
It seems like you didn't understand what I was trying to explain. Have you
received my E-mail containing my benchmarks? If so compare them to the ones
the Yii author performed.
My benchmarks (quoted because I didn't intend to perform real benchmarks)
were performed on a Windows XP
Karol Grecki wrote:
You have no way to tell how this choice affected the benchmarks, you
cannot assume that every framework was slowed down equally. For example if
I/O was particularly slow, that would penalize frameworks with larger
number of includes more than others, skewing the
Hey all
I've been using Zend_Pdf to create some stuff, and now I ran into an issue
with
the finnish letters Ä and Ö. On my dev box, which is Win XP in finnish,
the characters
show up just fine in the PDF, but on the *nix server which isn't in
finnish,
when the pdf generation encounters the
Martin Martinov-2 wrote:
The bare fact that they say the tests were run on a windows vista pc
says much by itself :-)
2008/11/3 ekerazha [EMAIL PROTECTED]:
Karol Grecki wrote:
You have no way to tell how this choice affected the benchmarks, you
cannot assume that every framework was
Isaak Malik-3 wrote:
It seems like you didn't understand what I was trying to explain.
Don't worry, I perfectly understand it :-)
Isaak Malik-3 wrote:
My benchmarks (quoted because I didn't intend to perform real
benchmarks)
were performed on a Windows XP everyday-computer (meaning a
I realized my solution only solves the duplicate content problem, not
the routing problem. You'd still have to manually define your routes to
the index controller.
I'll give yours a shot. Looks simpler than manually defining every
single route.
Dan Bowen
Web Developer
On Mon, Nov 3, 2008 at 11:23 AM, O'BRIEN, Steven X
[EMAIL PROTECTED] wrote:
Guys,
Has anyone got some tips on how to speed up Zend Framework applications?
Indeed I do (sorry for the shameless plug):
http://till.vox.com/library/post/zendframework-performance.html
I'm working on a follow-up
vladimirn wrote:
Alert you suggested me to make wont work as well :(
phtml:
? $this-dojo()-javascriptCaptureStart() ?
function validateForm() {
var form = dijit.byId(signup);
if (!form.validate()) {
alert(Invalid form);
return false;
}
return true;
}
nwhiting wrote:
Matthew Weier O'Phinney-3 wrote:
-- nwhiting [EMAIL PROTECTED] wrote
(on Friday, 31 October 2008, 07:34 AM -0700):
I am having a small problem with validating input
I have everything setup correctlybut it seems that every time I
submit
the form it will
hi,
i am trying to verify the text submitted to match that of the captcha. If
valid(same) echo 'validated'.
class JoinController extends Zend_Controller_Action
{
public function indexAction(){
$this-_helper-layout-setLayout('layout-site');
With your benchmark I mean the pmjones' ones, I did not receive your
benchmarks Isaak.
--
View this message in context:
http://www.nabble.com/Framework-speed-shotoutquestion-tp19914787p20305143.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Guys,
Has anyone got some tips on how to speed up Zend Framework applications?
I have noticed that using Zend framework although speeding up development time,
does slow down the runtime app.
The information in this e-mail is confidential. The contents may not be
disclosed or used by
-- ekerazha [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 02:43 AM -0800):
That's insignificant, he didn't test some frameworks on a personal computer
with Windows Vista and other frameworks on a supercomputer; his test was
perfectly fair. Absolute results of that benchmark are
Can you please show us an example how to realize tagged-memcache-caching with
this new two-level backend?
Fabien MARTY wrote:
Hi,
Please have a look at the TwoLevels backend in 1.7 trunk (or in 1.7
PR), it's want you want.
It does exactly this.
Feedback welcome
Regards,
Isaak Malik-3 wrote:
*As for Yii:*
Yii:
144.51 RPC without APC
153.62 RPC without APC
Yiilite:
153.15 RPC without APC
129.01 RPC without APC
Yii:
150.61 RPC with APC
151.99 RPC with APC
Yiilite:
150.61 RPC with APC
156.76 RPC with APC
Ok. Using these benchmarks Isaak, I
What does $paginator-setView($view) do vs $this-view-paginator
= $paginator; ?
They serve two different purposes. You do not need to call setView() if you
use the ViewRenderer, but you always need to assign the paginator to the
view.
-Matt
On Sun, Nov 2, 2008 at 9:19 PM, frank.quosdorf
Note that I didn't perform *real* benchmarks so the results are not exact
from *real* benchmarks, they were just to show that these were much
different from Dandan's, where his ZFW benchmarks performed much worse than
Yii and mine slightly better, and how unreliable it can be to perform
benchmarks
If the class is App_Db_Table_Abstract or i prefer My_Db_Table_Abstract and
you're using the autoloader in bootstrap it would map to
application/../library/My/Db/Table/Abstract.php. Assuming of course that you
have the the lib in the include_path.
e.g.
/**
* 1. Set the include_path to include
Forgot to mention that captcha being the name i gave the textfield to check
the captcha value with.
-
dee
--
View this message in context:
http://www.nabble.com/Zend_Capcha-tp20300142p20300315.html
Sent from the Zend Framework mailing list archive at Nabble.com.
David Mintz-3 wrote:
I think he wants to know one routing recipe whereby all the actions in his
index controller can be accessed as example.org/action instead of
example.org/index/action. I have wondered the same thing but was afraid to
ask :-) Though I could image an intelligent 404
http://framework.zend.com/issues/browse/ZF-4494
Themselves wrote:
Hi guys,
I'm trying to build some autocomplete dropdowns using Zend + Dojo, but I
can't seem to work out how to get the select to submit the id and display
the name. As per the documentation, a ComboBox submits the value
THE DECORATOR:
$elementDecorators = array(
'ViewHelper', //generates the
input tag
'Errors', //appends
errors, if any
'Description',
Isaak Malik-3 wrote:
Also, I've run only 2 benchmarks per framework and they were all warm
benchmarks, in theory real benchmarks should be performed several times
and
the average should be calculated out of those. And if we do that for my
benchmarks this brings up the following results:
I genuinely can't fathom how a controller could be 3000 lines long without a
serious organization problem. Give us some examples of what your URLs look
like.
-Matt
On Mon, Nov 3, 2008 at 6:22 AM, Christopher Östlund
[EMAIL PROTECTED] wrote:
Don't put businesses logic into the controllers.
On Mon, Nov 3, 2008 at 6:52 PM, Jan Pieper [EMAIL PROTECTED] wrote:
Someone can tell me why I am always getting email from Linux Game Publishing
Antispam service after sending mail to zf mailinglist?
-- Jan
Because some people who are subscribed to the list use it.
It's a service where you
Steve, can you remove the duplicate disclaimer?
-Matt
On Mon, Nov 3, 2008 at 2:23 AM, O'BRIEN, Steven X
[EMAIL PROTECTED] wrote:
Guys,
Has anyone got some tips on how to speed up Zend Framework applications?
I have noticed that using Zend framework although speeding up development
time,
-- Matthew Ratzloff [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 09:49 AM -0800):
I genuinely can't fathom how a controller could be 3000 lines long without a
serious organization problem. Give us some examples of what your URLs look
like.
I'm going to have to agree here. The rule of
I got one too..
I figured it was someone who was signed up on the list that has a email
acceptance validation.
If you don't validate they keep rejecting your mail and you keep getting
that message.
Terre
-Original Message-
From: Jan Pieper [mailto:[EMAIL PROTECTED]
Sent: Monday,
-- Jan Pieper [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 06:52 PM +0100):
Someone can tell me why I am always getting email from Linux Game Publishing
Antispam service after sending mail to zf mailinglist?
Somebody is using the you must reply to me form of anti-spam with an
account
I think we need to reign in the personal attacks in this thread. Labels
like 'so-called' professionals and incompetent do nothing to further the
discussion.
Now that Qiang Xue has re-ran the tests against RHEL 5 using Apache 2 and
the latest PHP release, it's evident that Yii Framework is quite a
I just created a Gmail filter to automatically delete these obnoxious
e-mails.
-Matt
On Mon, Nov 3, 2008 at 10:05 AM, Matthew Weier O'Phinney
[EMAIL PROTECTED]wrote:
-- Jan Pieper [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 06:52 PM +0100):
Someone can tell me why I am always
I was able to get your _createElement function to create elements that did
validate as expected. I have something similar but it's not using the
zend_form class, so I have to manaually test each field for validation.
Though, after making this test code - I am likely to redo my original form
I changed the array item:
'name' = 'captcha' instead and now i have a bad captcha value is wrong
error. - though am entering the right characters
dele454 wrote:
hi,
i am trying to verify the text submitted to match that of the captcha. If
valid(same) echo 'validated'.
class
That's insignificant, he didn't test some frameworks on a personal computer
with Windows Vista and other frameworks on a supercomputer; his test was
perfectly fair. Absolute results of that benchmark are insignificant, you
should care about relative results.
As I've already said (I quote myself)
-- Matthew Ratzloff [EMAIL PROTECTED] wrote
(on Monday, 03 November 2008, 10:45 AM -0800):
I think we need to reign in the personal attacks in this thread. Labels like
'so-called' professionals and incompetent do nothing to further the
discussion.
Now that Qiang Xue has re-ran the tests
vRandom wrote:
I was able to get your _createElement function to create elements that did
validate as expected. I have something similar but it's not using the
zend_form class, so I have to manaually test each field for validation.
Though, after making this test code - I am likely to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Most certainly cookies disabled or denied by security software.
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
This would be a simple Zend_Tool provider to create; want to give it a try?
Sure, I'll take a look once Zend_Tool is code complete.
-Matt
On Mon, Nov 3, 2008 at 11:24 AM, Matthew Weier O'Phinney
[EMAIL PROTECTED]wrote:
-- Matthew Ratzloff [EMAIL PROTECTED] wrote
(on Monday, 03 November
Of course; think about how sessions work and their relationship with
in-memory objects. You must serialize all the information necessary to
recreate that object in its current state, then handle its corresponding
deserialization.
http://www.php.net/~helly/php/ext/spl/interfaceSerializable.html
Other validators are working, but ImageSize is not for some reason. I've
attempted to add the validator to both the form and the transfer adapter
using trunk and 1.7. Is this known not to work yet or am I doing something
wrong? In a form, I've tried something akin to:
$image = new
Stupid question:
Do you really want to accept ONLY images which have exactly one pixel height
and width ?
I would think that only one picture will be accepted by this settings... a
placeholder 1x1 picture. :-)
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
Matt--thanks for your reply.
So, I think I'm clear about the need to implement the __sleep() method in
the object to perform serialization--return an array with the list of
properties you want serialized.
I have a couple more questions on this:
a) if I have properties in my class which are
Hi,
Jan Pieper a écrit :
Can you please show us an example how to realize tagged-memcache-caching with
this new two-level backend?
something like that (not tested) :
?php
$slowBackend = 'File';
$fastBackend = 'Memcached';
$slowBackendOptions = array(
'cache_dir' = '/tmp/'
);
Matthew Ratzloff wrote:
- Multiple classes in a single file. I doubt ZF will ever do this, as it
is
a maintenance headache.
Where do you see this? I've opened many files (maybe I've been unlucky :-D)
but the only file I found with multiple classes is the CApplication.php file
where there
Anything prefixed by over- is bad by definition :P
-Original Message-
From: ekerazha [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2008 5:12 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Framework speed shotout -- question
Matthew Ratzloff wrote:
- Multiple
I've also found CApplication.php
It seems like this is done only in a very few cases (atm I've found 2
files), with very small support-classes, avoiding over-engineering and file
invasion.
ekerazha wrote:
Matthew Ratzloff wrote:
- Multiple classes in a single file. I doubt ZF will
Pardon, CComponent.php
ekerazha wrote:
I've also found CApplication.php
It seems like this is done only in a very few cases (atm I've found 2
files), with very small support-classes, avoiding over-engineering and
file invasion.
ekerazha wrote:
Matthew Ratzloff wrote:
-
Sorry for the double message, the last one is the good one.
--
View this message in context:
http://www.nabble.com/Framework-speed-shotoutquestion-tp19914787p20312491.html
Sent from the Zend Framework mailing list archive at Nabble.com.
No, I just did that to shorten the message. The actual values are coming from
a config file but either way the validator doesn't seem to fire.
thomasW wrote:
Stupid question:
Do you really want to accept ONLY images which have exactly one pixel
height
and width ?
I would think that
And what's the reason why you supressed the second parameter for the
ImageSize validator ?
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: Matthew Lurz [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Tuesday,
The database classes, for instance.
One class per file is not over-engineering.
-Matt
On Mon, Nov 3, 2008 at 2:12 PM, ekerazha [EMAIL PROTECTED] wrote:
Matthew Ratzloff wrote:
- Multiple classes in a single file. I doubt ZF will ever do this, as it
is
a maintenance headache.
Hi,
before running into the wrong direction, I would like to hear your
opinion about how to realize the nested form, that i sketched earlier.
The form should list some fields for each record, links related to this
record and a list of tags associated with every record.
I currently fetch the
a) A-B-C: A has object B has object C. A's serialization method should
call serialize() on B. B's serialization method should call serialize() on
C. The only automatic aspect is that serialize() called on an object calls
its __sleep() method.
b) Not sure. I'll let Ralph or someone else answer
Hello,
I have never worked with Lucene before and I would like to get some help on
this topic. Anyways, what I want to achieve is to be able to index and
search all 4 tables at once.
I have an event table that contains all user created events.
The eventsPeople table contains all user id and
That makes perfect sense (each object calling its own serialize method(s))...
I learned that omitting the __sleep method in the object will result in all
properties getting serialized (as one would expect from $_SESSION
functionality).
My issue seems to be that I had a Zend_Db_Select object as
Waigani wrote:
Is it possible? I want to throw an exception in the preDispatch of a plugin
if you are not allowed to view the page. I then want to handle that
exception via the errorController. I can wrap the $front-dispatch() in a
try / catch and catch the exception in the bootstrap, but then
The Plugin Broker (Zend_Controller_Plugin_Broker) _should_ catch any
exceptions thrown by controller plugins. Well, not should, it does.
Perhaps this is an issue with how you're instantiating your plugins??
Waigani wrote:
Thanks for the run down. Is it possible to throw an error in a plugin
Matthew Ratzloff wrote:
The database classes, for instance.
In the framework/db/ dir I can't see any file with multiple classes.
Matthew Ratzloff wrote:
One class per file is not over-engineering.
It does depend on the situation.
--
View this message in context:
The code
throw new Zend_Exception('test');
in the predispatch hook of a plugin returns
Fatal error: Uncaught exception 'Zend_Exception' with message 'test' …
I am registering my plugins via $frontController-registerPlugin() method.
Is this not the expected behaviour?
Jason Webster
Thanks for the run down. Is it possible to throw an error in a plugin though?
So far the errorController has missed it.
Jason Webster wrote:
Waigani wrote:
Is it possible? I want to throw an exception in the preDispatch of a
plugin
if you are not allowed to view the page. I then want to
74 matches
Mail list logo