Hmm, I don't think that's it.
Take a look at this page (from the trunk):
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/library/Zend
Look at the individual files (Acl.php, Auth.php, etc.). I see them all as
deleted and referencing DbTable-09. Things like Debug.php and Loader.php
Thanks for catching that bug, Art.
For the record, there *are* unit tests for Zend_Db_Table/Row/Rowset.
The code coverage is 68%. Look in
/tests/Zend/Db/Adapter/Common.php, there are 37 test functions
matching "testTable*".
I wish you would not say that there are no tests for these classes. I
Hi Simon, Art & friends,
Thanks to Art's awesome debugging prowess (I.e. he saw something that I
didn't) it turns out that this entire problem was due to a typo in
Zend_Db_Table_Abstract. The fix follows:
GOTO: Line 582
FIND CODE BLOCK:
$data = array(
'table'=> $this,
On 20/03/2007, at 8:17 AM, Art Hundiak wrote:
Almost as though the code was released without testing. Which I
guess is
consistent with the fact that there are no DB_Table/Row tests in the
delivered version.
On 20/03/2007, at 5:09 AM, Art Hundiak wrote:
Funny thing is that someone from Zend
Thanks Jude A
Your response, I believe is the way to go. But I modified it just a bit
because I was worried that I was doubling up on creating a router in my
bootstrap and in the controller when it was dispatched.
$router = $frontController->getRouter(); // router is a singleton
$request =
In Zend_Db_Table_Abstract::fetchAll() we have
$data = array(
'table'=> $this,
'data' => $this->_fetch('All', $where, $order, $count,
$offset),
'rowclass' => $this->_rowClass
);
return new $this->_rowsetClass($data);
And in Zend_D
Hi Simon,
Yup, setting protected $_rowClass = 'Account'; does work. However, I plan on
lazy loading a lot of my definitions so I can do something like:
class Accounts extends Custom_Db_Table_Which_Extends_Zend_Db_Table
implements Custom_Action_Insert_Delete_Authorize
{
public
Are you looking at the DbTable-09 branch in FishEye? I deleted the
branch after confirming that the changes were merged to the trunk.
Sometimes FishEye also seems to take a lunch break once in a while as it
updates revision data from svn. So if you have troubles, try again in
20 minutes or so.
Hi all,
Clearly there are some rough edges in the upgrade to Zend Framework
0.9.0.
I would like to suggest a plan to release an update to the Beta by the
end of this week. So we will revise the version number to 0.9.1 Beta,
and we'll focus on fixing bugs, improving doc, and writing more tests.
I will implement those changes tonightthanks
Simon Mundy wrote:
>
> * At the top of your bootstrap, include both 'Zend/Loader.php' and
> 'Zend/Registry.php' instead of 'Zend.php'
>
> * Rewrite all instances of Zend::loadClass(xxx) to
> Zend_Loader::loadClass(xxx)
> [However - read t
Hi Ryan
I had a quick look at your table/row definitions.
This will work:-
class Accounts extends Zend_Db_Table
{
protected $_name = 'accounts';
protected $_rowClass = 'Account';
}
You don't need the extra Rowset definition if there's no specific
functionality you need to add - in mo
* At the top of your bootstrap, include both 'Zend/Loader.php' and
'Zend/Registry.php' instead of 'Zend.php'
* Rewrite all instances of Zend::loadClass(xxx) to
Zend_Loader::loadClass(xxx)
[However - read the tip in the documentation. loadClass has no real
benefit if your class is not a var
On 19/03/07, ZegeeDotCom <[EMAIL PROTECTED]> wrote:
I agree that the work is very good. But please keep in mind that the code
you write is not for just yourselves. I think the documentation is more
important than the fact of having good API. Thats all.
I have used cakephp, symfony and zend.
Zend_Registry::set
- Original Message -
From: "Thomas Weidner" <[EMAIL PROTECTED]>
To: "ZegeeDotCom" <[EMAIL PROTECTED]>;
Sent: Monday, March 19, 2007 1:18 PM
Subject: Re: [fw-general] Here is my 0.8 version. Please help me convert it
to 0.9.
>From viewing you bootstrap I found 2
I think ZF is wonderful. +1 +1. I've been following it since it was
announced. I've written some php scripts in the past to make some desktop
applications information available on the web but had not attempted a full
blown application in php until now, and I'm very happy with the progress
I've mad
From viewing you bootstrap I found 2 quick eyecatcher...
Zend::loadClass has been changed to Zend_Loader::loadClass
Zend::register has also changed (Zend_Registy::register ??)
Greetings
Thomas
- Original Message -
From: "ZegeeDotCom" <[EMAIL PROTECTED]>
To:
Sent: Monday, March 19, 2
Update:
Now I know I've missed something.
In my debugging process, here's what I did.
Open: Zend/DB/Table/Rowset/Abstract.php
Goto Line: 71
Replace Value of: protected $_rowClass = 'Zend_Db_Table_Row'
With: protected $_rowClass = 'Account'
Have access to Account->helloWorld();
if you could package it as a zip that would have been wonderful...I will do
anything to get this working
Rob Allen-3 wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> ZegeeDotCom wrote:
> atch();
>>
>> Can someone give a FULL working example of setting up a bootstrap and
>>
My bootstrap file:
error_reporting(E_ERROR|E_WARNING);
define('HREF_BASE','localhost');
date_default_timezone_set('America/New_York');
set_include_path('../phplib'.'.'. PATH_SEPARATOR . '../library/' .
PATH_SEPARATOR . './application/models/' . PATH_SEPARATOR .
get_include_path());
function bo
I agree that the work is very good. But please keep in mind that the code
you write is not for just yourselves. I think the documentation is more
important than the fact of having good API. Thats all.
I have used cakephp, symfony and zend. With zend 0.8 I was able to install
and use it withi
Three thumbs up from over here as well!
I decided to take the bitter with the sweet months ago and develop new
projects in the Zend-Framework, knowing I would probably have to revisit
all projects multiple times due to refactoring. I have, but the design
has always changed for the better. Than
Hi guys, this email will be a little long to explain my confusion, please
bear with me.
I am trying to create some domain logic in my result objects so I have
access to methods on rowsets and rows. It kinda works, but kinda doesn't.
Unfortunately I think I am either missing something completely
Jon wrote:
> I don't understand why the camel case conversion has been dropped?
>
> As far as I can see all variables (in ZF) are camelCased, even the PDF
> document "Best Practices of PHP Development" written by Zend states that all
> variables should be camelCased. So why change it for Zend_Db?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
ZegeeDotCom wrote:
atch();
>
> Can someone give a FULL working example of setting up a bootstrap and a
> controller together to display a hello world?
>
If you have SVN, do:
svn checkout http://svn.akrabat.com/svn/zf-tutorial/trunk/ tutoria
Just FYI, The 0.9.0 svn tag is missing:
http://framework.zend.com/svn/framework/tag/
On 3/19/07, Simon R Jones <[EMAIL PROTECTED]> wrote:
I third that!
We looked around hard and wide for a decent framework to use for our company
and settled on Zend Framework 6 months ago. The progress since th
FYI, you can also do this:
$db->getConnection();
No need to execute a dummy query. The getConnection() method initiates
the connection if one has not already been made.
Regards,
Bill Karwin
> -Original Message-
> From: Jude Aakjaer [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 19,
+1
Wonderfull work, and really a pleasure to develop with :-)
Aurélien.
> I third that!
> We looked around hard and wide for a decent framework to use for our company
> and settled on Zend Framework 6 months ago. The progress since then has been
> fabulous and has certainly validating my de
I third that!
We looked around hard and wide for a decent framework to use for our company
and settled on Zend Framework 6 months ago. The progress since then has been
fabulous and has certainly validating my decision to go with ZF.
Excellent work everyone :-)
Si
Not currently. But I am trying to implement support for sequences,
natural keys, and compound keys soon.
Some database experts say that a table without a primary key is not a
table. :-)
Regards,
Bill Karwin
From: Adam Balgach [mailto:[EMAIL PROTECTED
Thanks for the speedy reply Tony
best wishes,
Simon
I second this statement. I've been working with ZF since 0.2 and I grow
increasingly impressed with it! 0.9 is, obviously, the best release EVAH!
-Original Message-
From: Teemu Välimäki [mailto:[EMAIL PROTECTED]
Sent: March 19, 2007 12:55 PM
To: fw-general@lists.zend.com
Subject: [fw-gen
is Zend_Db_Table capable of handling a table in the db, where there is no
primary key defined?
Just wondering...
Thank you so much!
What can I say, I'm developing several big applications which ZF and even with
the API changes from 0.8 took a while to fix I applaud for them. Sure there are
bugs and inconsistencies both in manual and the framework itself but it does
not make it unusable. I understand that
Hi Simon
it caused some problems in other components (see for instance http://
framework.zend.com/issues/browse/ZF-673). So now you have to null
$_POST yourself if you want the previous behaviour.
cheers
Tony
On 19 Mar 2007, at 18:21, Simon R Jones wrote:
Quick question I hope isn't too du
Quick question I hope isn't too dumb..
I've noticed ZF 0.9 has dropped the functionality of accessing the $_POST
superglobal via Zend_Filter_Input. Pre 0.9 once you'd accessed POST via
Zend_Filter_Input you were forced to access POST subsequently via
Zend_Filter_Input. This seemed to me, at the t
I did say that changing it might cause more problems. And sure enough it
appears that other components assume column names are lower case. So
basically I don't think you can have mixed case column names.
Funny thing is that someone from Zend just committed this change to svn.
Wonder if they ran
Thanks, that's perfect.
:)
On 19 Mar 2007, at 17:45, Matthew Weier O'Phinney wrote:
-- Nick Thornley <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 05:24 PM +):
I'm trying to forward from within the init() function of a
Controller to an
action in a different controller, but it is on
-- Nick Thornley <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 05:24 PM +):
> I'm trying to forward from within the init() function of a Controller to an
> action in a different controller, but it is only using the action argument -
> forwarding only within the current controller.
>
> f
Hi
I'm trying to forward from within the init() function of a Controller
to an action in a different controller, but it is only using the
action argument - forwarding only within the current controller.
for example, in my class
firstController extends Zend_Controller_Action
I add i
I remember a post by a month ago that stated something similar to the
following: maintain field names from tables when accessing/manipulating data
form a Row. In other words one should assume they can access properties of
the Row as they are described in the field names. I think this approach is
I tried this solution, modifiying /Zend/Db/Pdo/Abstract line 95:
// force names to lower case
$this->_connection->setAttribute(PDO::ATTR_CASE,
PDO::CASE_LOWER);
to
// force names to lower case
$this->_connection->setAttribute(PDO::ATTR
All files in trunk are shown as "deleted", and reference DbTable-09.
-Matt
"Doesn't seem to make much sense as an element of consistency has been lost
here."
Hmm. Good point.
-Original Message-
From: Jon [mailto:[EMAIL PROTECTED]
Sent: March 19, 2007 10:53 AM
To: fw-general@lists.zend.com
Subject: RE: [fw-general] Zend_Db_Table_Row __get()
I don't understand w
There are several other request types, GET, HEAD, PUT, DELETE, TRACE,
CONNECT etc. I'm not sure of which can be associated with PHP, but I know
that HEAD at least can be handled by PHP/framework.
The getHeader methods in Zend_Response should probably be unified like
Request as well for consist
I don't understand why the camel case conversion has been dropped?
As far as I can see all variables (in ZF) are camelCased, even the PDF
document "Best Practices of PHP Development" written by Zend states that all
variables should be camelCased. So why change it for Zend_Db? Doesn't seem
to make
Basic problem is that the pdo adapter has:
// force names to lower case
$this->_connection->setAttribute(PDO::ATTR_CASE,
PDO::CASE_LOWER);
You will have to figure out how to change it to CASE_NATURAL. Even then I
suspect you might have trouble with case sensitivity.
I mys
It appears that all column preparation has been removed on each row.
0.8 Usage:
CREATE TABLE `accounts` (
`id` int(11) NOT NULL auto_increment,
`date_entered` datetime default NULL,
`date_modified` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
foreach($this->account as $acc
Hello,
Prior to 0.9, I was using underscored field names in my MySQL database and
relying on Zend_Db's inflector to produce nice Camel-cased field names
within the Zend framework. Since 0.9 with the inflector gone, I switched my
field name in the database to camel case so I didn't have to refacto
Are you doing:
include 'Zend/Loader.php';
at the top of the bootstrap?
On 3/19/07, ZegeeDotCom <[EMAIL PROTECTED]> wrote:
Still nothing...here is the revised bootstrap file:
Zend_Loader::loadClass('Zend_Controller_Front');
$front = Zend_Controller_Front::getInstance();
You might have not noticed that your are using a *preview* versionthis
means the API has become stable only with the 0.9 release
Anyway if you want us to help you I think you should reply to the questions
sent to youin particular Matthew Weier O'Phinney asked you to try some
code to
ZegeeDotCom schreef:
I was so happy with the 0.7 and 0.8 versions but now I am seeing
that the more you do the less I will be able to learn!!!
Unless you really need something in the latest version, it's probably
better to stick with what you have working and wait until 1.0 to
update/rewri
I would like to help, but how can I help if I dont know the features of the
framework.
The basics should be covered. The docs on the framework are spanning 10
different versions and each version differs.
It is just a headache - thats all. And if it is a headache to me - others
must be frustrated
ZegeeDotCom schreef:
Why do you release new versions without any documentation I was so
happy with the 0.7 and 0.8 versions but now I am seeing that the more you do
the less I will be able to learn!!!
So I am installing Symfony again, gosh - I hope they had added more docs...
Most of
Some of you have given conflicting answers to me.
One person said that:
include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Controller_Front');
$front = Zend_Controller_Front::getInstance();
$front->throwExceptions(true);
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:38 AM -0700):
>
> Still nothing...here is the revised bootstrap file:
>
> Zend_Loader::loadClass('Zend_Controller_Front');
> $front = Zend_Controller_Front::getInstance();
> $front->throwExceptions
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:33 AM -0700):
>
> I did exactly what you say but I was getting a "class not found" error.
Did you load the Zend_Registry class?
require_once 'Zend/Registry.php';
// or, if Zend_Loader is already loaded:
Zend_Load
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:30 AM -0700):
> still cant see a thing.
>
> I read every piece of documentation and not in a single one there is a
> good example of what the bootstrap file looks like under new 0.9. This
> is discouraging, since it worked fine
Still nothing...here is the revised bootstrap file:
Zend_Loader::loadClass('Zend_Controller_Front');
$front = Zend_Controller_Front::getInstance();
$front->throwExceptions(true);
$front =
Zend_Controller_Front::run('../application/controllers');
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 08:22 AM -0700):
> Can someone provide a good example for the bootstrap file ???
> The changes to the 0.9 versions are not clear.and all my code that
> worked under 0.8 doesnt do anything, I cant even see any exceptions - zero,
I did exactly what you say but I was getting a "class not found" error.
[EMAIL PROTECTED] wrote:
>
> On 19/03/07, Nick Lo <[EMAIL PROTECTED]> wrote:
>> Zend_Registry::set('config',$config);
>> Zend_Registry::get('config');
>>
>> http://framework.zend.com/manual/en/zend.registry.html
>>
>
>
still cant see a thing.
I read every piece of documentation and not in a single one there is a good
example of what the bootstrap file looks like under new 0.9. This is
discouraging, since it worked fine under 0.8 and all docs are for previous
versions. I am tempted to just abandon using ZF if t
ZegeeDotCom schreef:
Can someone provide a good example for the bootstrap file ???
The changes to the 0.9 versions are not clear.and all my code that
worked under 0.8 doesnt do anything, I cant even see any exceptions - zero,
nada.
Please give a more thorough explanation for how the control
Can someone provide a good example for the bootstrap file ???
The changes to the 0.9 versions are not clear.and all my code that
worked under 0.8 doesnt do anything, I cant even see any exceptions - zero,
nada.
Please give a more thorough explanation for how the controller and views are
set u
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 07:57 AM -0700):
>
> I am not seeing anything. No errors, no html and I thought that maybe I am
> setting up the controller incorrectly:
>
> include "Zend/Loader.php";
> Zend_Loader::loadClass('Z
-- ZegeeDotCom <[EMAIL PROTECTED]> wrote
(on Monday, 19 March 2007, 07:49 AM -0700):
> include "Zend/Loader.php";
> Zend_Loader::loadClass('Zend_Registry');
> // STAGE 1. Prepare the front ( primary ) controller
> Zend_Loader::loadClass('Zend_C
I am not seeing anything. No errors, no html and I thought that maybe I am
setting up the controller incorrectly:
include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Controller_Front');
$front =
Zend_Controller_Front::run('../application/
On 19/03/07, Nick Lo <[EMAIL PROTECTED]> wrote:
Zend_Registry::set('config',$config);
Zend_Registry::get('config');
http://framework.zend.com/manual/en/zend.registry.html
Zend_Registry::set('config',$config); replaces Zend::register()
Zend_Registry::get('config'); replaces Zend::registry()
Also,
When I do :
include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Registry');
// STAGE 1. Prepare the front ( primary ) controller
Zend_Loader::loadClass('Zend_Controller_Front');
$front
=Zend_Controller_Fron
NIck -
I want to achieve a "singleton" behavior with the view and I thought, that's
where the registry comes handy. IF I am using parameters to pass view object
back and forth, why is there a registry to begin with?
Thanks
Paul
Nick Lo-2 wrote:
>
> The now deprecated Zend.php file used to n
Fixed!! Rediculous problem!!! my classes did not begin with capital letters
and the zend framework was calling them with capitals... So i had to change
my classes to begin with capitals.
--
View this message in context:
http://www.nabble.com/Media-Temple-Grid-Server-tf3423022s16154.html#a955337
Hi,
I don't understand why it was removed. Instead of writing
Zend_Loader::loadClass('Zend_Filter_Input');
$input = new Zend_Filter_Input($this->_getAllParams());
$id = $input->getDigits('id');
$name = $input->getAlpha('name');
$login = $input->getAlnum('login');
I have to use
Zend_Loader::loadC
Hello,
Would you mind creating an issue in the JIRA issue tracker for this,
please? Here is a link to create an issue:
http://framework.zend.com/issues/secure/CreateIssue!default.jspa
If you do not yet have posting privileges, you can request posting
privileges by mailing [EMAIL PROTECTED]
Than
-- Eric Coleman <[EMAIL PROTECTED]> wrote
(on Saturday, 17 March 2007, 02:01 PM -0400):
> Didn't look at the code / docs, but is there a way to change the path
> a bit?
Several ways, actually:
* Reset the view script path manually. Calling initView() initializes
the $view property, so all
Hi , I see that Zend_Filter_Input is dead. Right.
I have an improvement to ask :
While using Zend_Filter_StringToLower::filter() as well as
Zend_Filter_StringTrim::filter() as well as any filter function that expects
a string to be passed as param; you should cast the param to String in the
funct
Hi,
There is a list of tutorials on the wiki :
http://framework.zend.com/wiki/display/ZFUSER/External+Resources+-+Tutorials%2C+Articles%2C+and+Examples
Cheers,
Philippe
--
Philippe Le Van
mail : [EMAIL PROTECTED]
web : http://www.kitpages.fr
ReynierPM wrote:
Hi every one:
I'm newbiew using
-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Sunday, 18 March 2007, 05:50 PM -0700):
> and also create isGet (or isQuery) to complement isPost
A request is either a POST or a GET. If you want to see if something was
a GET request, use:
if (!$request->isPost()) {
// GET request
*grin*
I can't take all the credit.
Matthew wrote the autoload() function and helpfully provided usage
examples in the docblock comment. I just happened to notice the svn
update email for it :)
Regards,
Rob...
Nick Lo wrote:
> Ok Rob you win this time but mark my words, I'll be back, I'll be
Ok Rob you win this time but mark my words, I'll be back, I'll be back!
...but erm, I'll take that bit of code with me.
Nick
Yes.
However,
spl_autoload_register(array('Zend_Loader', 'autoload'));
is "cleaner" to my eyes at least :)
Regards,
Rob...
Nick Lo wrote:
Or keep going and jus
Yes.
However,
spl_autoload_register(array('Zend_Loader', 'autoload'));
is "cleaner" to my eyes at least :)
Regards,
Rob...
Nick Lo wrote:
> Or keep going and just autoload the lot:
>
> include 'Zend/Loader.php';
> function __autoload( $class )
> {
> Zend_Loader::loadClass( $class );
>
Or keep going and just autoload the lot:
include 'Zend/Loader.php';
function __autoload( $class )
{
Zend_Loader::loadClass( $class );
}
Nick
Try adding:
Zend_Loader::loadClass('Zend_Registry');
in you bootstrap file under the Zend_Loader::loadClass('Zend_View');
Regards,
Rob...
The now deprecated Zend.php file used to need to be included in the
bootstrap and that was where Zend::registry() was coming from. You
don't specify where you are getting that error but I suspect you've
not actually included the Zend_Registry file...
include 'Zend/Registry.php';
...in your
Try adding:
Zend_Loader::loadClass('Zend_Registry');
in you bootstrap file under the Zend_Loader::loadClass('Zend_View');
Regards,
Rob...
ZegeeDotCom wrote:
> WHen I do this in my boot-strapper:
> Zend_Loader::loadClass('Zend_View');
> $view = new Zend_Vie
Excellent thanks. I've added in a "SELECT 1" query inside my try/catch
block to grab a connection error now
-Jude A.
On Mon, 19 Mar 2007 17:11:54 +0900, Alexander Netkachev
<[EMAIL PROTECTED]> wrote:
Zend_Db_Adapter does not create a connection to the database when you
create
it. The "r
I'm not sure if this is what you were aiming to do, but this sounded like
a similar problem I was tackling. I wanted to know what module was going
to be used before I dispatched as there would be varying requirements for
each. In my case it is the difference between an admin section and a
c
On 3/19/07, Jude Aakjaer <[EMAIL PROTECTED]> wrote:
I'm not sure if this is a related issue or a different one, but using the
following code I cannot catch the failing exception
try {
$db = Zend_Db::factory($config->db->adaptor, array('host' =>
'localhost',
'username' =>'noexistant', '
85 matches
Mail list logo