Wow some great replies and I'm really glad I asked the question now.
This one from Abu Hurayrah* was the kind of insight I was after when
I said "particularly from those who have a database admin leaning and
have opinions about its efficiency"...
Additionally, ORM will enforce consistent qu
While not intended to define an end all be all standard of class
organization conventions, I would like to toss out an idea for a "loose"
convention perhaps we should try to stick to (even if remotely closely)
in order to achieve some better code readability.
These represent a logical hierarch
Trust me, the ONLY difference in software between my development server and demo laptop is Zend Platform. We have the same OS, the same packages, even the same release of the package, on all the laptops and development servers.
We've had issues with different software versions in the past and ou
I can't claim to know how Zend Platform works but I don't see how:
return isset($this->_vars[$key]) ? $this->_vars[$key] : null;
would attempt to return $this->_vars[$key] by reference. Wouldn't the normal
behaviour be to return a copy of that variable's content in PHP?
If Zend Platform is cha
No, All i have to do to reproduce the error on my development server is to comment out the loading of the ZendPlatform library in the zend extension manager.LeeOn 10/25/06,
Keith Pope <[EMAIL PROTECTED]> wrote:
Could it be php 5.0.x bug maybe?
Does Zend Platform use its own version of PHP,
Could it be php 5.0.x bug maybe?
Does Zend Platform use its own version of PHP, it could be
fixed in that version?
Keith
From: Lee Saferite
[mailto:[EMAIL PROTECTED] Sent: 25 October 2006
16:01To: Zend Framework GeneralSubject: Re: [fw-general]
Weird Issue (Slightly OT)
Wow, I'm not
Ok, So I guess I'm answering my own questions here. =)I did some research and ternary statments apparently don't return references? Yet when you have the Zend Platform running, they do?Anyway, I'll be submitting a bug for Zend_View_Abstract to fix this.
As an aside. This link: http://www.ze
Wow,
I'm not a master PHP programmer, so this confuses me.
This fails:
public function __get($key)
{
/**
* @todo exception?
*/
if ($key[0] != '_') {
return isset($this->_vars[$key]) ? $this->_vars[$key] : null;
}
}
Yet this doe
Ok, so I tried changing the __get method of the Zend_View_Abstract class to one I found here:http://framework.zend.com/issues/browse/ZF-298And not it works.
So, could someone explain to me what is going on exactly?I mean, the Zend_View_Abstract code works fine using Zend Platform, yet chokes withou
=) Good call. Too much Cut and Paste. we DO use ZF on the laptops.And as an update, I have further isolated it to the __get/__set functions having the issue.Lee.
On 10/25/06, Christopher Östlund <[EMAIL PROTECTED]> wrote:
Just making sure the below quote was a typo. Not using Zend Framework on t
Just making sure the below quote was a typo. Not using Zend Framework on the demo laptops running the Zend Framework application?On 10/25/06, Lee Saferite
<[EMAIL PROTECTED]> wrote:
Software details:Apache 2.0.52PHP
5.0.4Zend Framework 0.1.5 (not on demo laptops)
Hi all, I just ran into a strange problem and since the project uses ZF and you guys are the only PHP community I am part of, I thought I'd present it to you all.We currently run with Zend Platform on our testing and live servers without any problems. We also have a series of laptops running lin
Hi Nick (et al),
I've probably mentioned it on the list before, but at last year's
Zend/PHP Conference, I was quite impressed by a presentation by Mike Ho
on the Qcodo framework (http://www.qcodo.com/).
This software has a code generator that you run against your database
schema. The code generat
[Chris..]
> I use CakePHP for a project at work and all those queries only happen
> when you're in debugging mode and it's not caching anything. In
> production mode, it will cache all those queries that tell it what the
> database structure is.
Ah OK, that's better then!
> It's important to r
Simon R Jones schrieb:
This is suboptimal for production because you insert yet another
layer (parsing)
impacting on performance. You'd better have a generator divided in
two parts.
One to read database schema and one to output it, so the second can
be made
to output php code or xml plus ph
On 10/25/06, Simon R Jones <[EMAIL PROTECTED]> wrote:
To answer your first question Nick, we are using Zend_Db_Table on two live
e-commerce sites successfully, though only for the admin side of things.
We have used Cake framework in the past and have been rather shocked at the
number of SQL requ
> This is suboptimal for production because you insert yet another
> layer (parsing)
> impacting on performance. You'd better have a generator divided in
> two parts.
> One to read database schema and one to output it, so the second can
> be made
> to output php code or xml plus php code to p
On 25/ott/06, at 13:38:04, Simon R Jones wrote:
I understand Stefan's point on extending PHP classes, though I
don't see
that DB mapping requires the complexity of PHP. It may be neater to
use a
format such as XML or YAML to achieve this. I see the point of auto-
complete
but unless I've m
On 25/ott/06, at 12:33:08, Markus Wolff wrote:
Abu Hurayrah schrieb:
We got around this by actually caching the result of the SHOW
COLUMNS call per each request, and then simply checking for the
presence of this key (the table name) within the cache. If it
existed, we used the cached res
Things like DESCRIBE in Zend_Db_Table and other "overhead style methods
that could easily be cached" throughout ZF should have an option or
check for an available Zend_Cache object and use it if available.
It shouldn't be "required" to use Zend_Cache, but it should be a built
in option.
I so
To answer your first question Nick, we are using Zend_Db_Table on two live
e-commerce sites successfully, though only for the admin side of things.
We have used Cake framework in the past and have been rather shocked at the
number of SQL requests it makes to understand a table structure. So I'm
ce
On 10/25/06, Markus Wolff <[EMAIL PROTECTED]> wrote:
Abu Hurayrah schrieb:> We got around this by actually caching the result of the SHOW COLUMNS> call per each request, and then simply checking for the presence of this> key (the table name) within the cache. If it existed, we used the
> cached re
Markus Wolff wrote:
Abu Hurayrah schrieb:
We got around this by actually caching the result of the SHOW COLUMNS
call per each request, and then simply checking for the presence of
this key (the table name) within the cache. If it existed, we used
the cached result. This boosted performance s
Abu Hurayrah schrieb:
We got around this by actually caching the result of the SHOW COLUMNS
call per each request, and then simply checking for the presence of this
key (the table name) within the cache. If it existed, we used the
cached result. This boosted performance significantly, such th
Nick Lo wrote:
> I've just recently had time to test out Zend_Db_Table and while I
> realise it has a new proposal (which I can't get to right now as the
> wiki appears to be down) I'm curious as to how many are really using or
> planning to use it?
I'm using it for one app. Fortunately, that app
Nick,
At my workplace, I implemented an ActiveRecord-like class (named
db_object) that used to work exactly as you've described - namely,
prior to every query to fetch actual record data, a call to SHOW
COLUMNS FROM table name would be required. Very quickly we
realized that this was doubling
26 matches
Mail list logo