[fw-general] error Zend_Controller_Router_StaticRoute

2007-03-18 Thread Roman1975

Fatal error: Class Zend_Controller_Router_StaticRoute contains 1 abstract
method and must therefore be declared abstract or implement the remaining
methods (Zend_Controller_Router_Route_Interface::getInstance) in
C:\home\t\texrdcom\libnewcms\library\Zend\Controller\Router\StaticRoute.php
on line 101
-- 
View this message in context: 
http://www.nabble.com/error-Zend_Controller_Router_StaticRoute-tf3422078s16154.html#a9537901
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] error Zend_Controller_Router_StaticRoute

2007-03-18 Thread Andries Seutens

Roman1975 schreef:

Fatal error: Class Zend_Controller_Router_StaticRoute contains 1 abstract
method and must therefore be declared abstract or implement the remaining
methods (Zend_Controller_Router_Route_Interface::getInstance) in
C:\home\t\texrdcom\libnewcms\library\Zend\Controller\Router\StaticRoute.php
on line 101


http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

Best,

Andriesss


[fw-general] Forms the ZF way

2007-03-18 Thread Jean-Marc Fontaine

Hello,

As the Zend Framework is reaching its beta stage, I wonder if something 
has been decided regarding the ZF way to handle forms.


I have seen a proposal with many comments but it seems paused if not dead.

In short, what is the ZF way to handle HTML forms ?

Regards.

Jean-Marc


Re: [fw-general] error Zend_Controller_Router_StaticRoute

2007-03-18 Thread Roman1975

Excuse for the hasty message,
Has not been removed ZF 0.8 and has simply written down ZF 0.9
In also has received not clear mistakes.
Thanks for the reference:)
-- 
View this message in context: 
http://www.nabble.com/error-Zend_Controller_Router_StaticRoute-tf3422078s16154.html#a9538209
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Right way to use Zend_Db_Table::fetchRow()

2007-03-18 Thread xagrez

Same issue for me

the issue is that, whether if  a row is fetched in the fetchRow, it will
still return an object.

There must be a way to access functions in that object to know if a row(s)
is fetched.


Shahar Evron wrote:
 
 Hi,
 
 This might be a report, but I didn't find anything in the archives.
 
 I have some code like this:
 
 ?php
   // Assume that Users is a class extends Zend_Db_Table
   $table = new Users();
   $row = $table-fetchRow(user_name = 'bob');
 ?
 
 What is the proper way to check whether I actually got a result or not?
 I have noticed that fetchRow always returns a Zend_Db_Row object, and
 that if there are no results (ie no rows where 'user_name' = 'bob') all
 the data in the row is NULL.
 
 Does this make sense? If so, what's the intended way to check if results
 were returned?
 
 TIA,
 
 Shahar.
 
 

-- 
View this message in context: 
http://www.nabble.com/Right-way-to-use-Zend_Db_Table%3A%3AfetchRow%28%29-tf2128552s16154.html#a9538266
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Media Temple Grid Server

2007-03-18 Thread fendtele83

I'm trying to setup the zend framework on the media temple grid server but
I'm having a problem. I keep getting the following error message


Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (index)' in
/home/2241/domains/anacapribeads.com/html/library/Zend/Controller/Dispatcher/Standard.php:176
Stack trace: #0
/home/2241/domains/anacapribeads.com/html/library/Zend/Controller/Front.php(750):
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #1
/home/2241/domains/anacapribeads.com/html/index.php(101):
Zend_Controller_Front-dispatch() #2 {main} thrown in
/home/2241/domains/anacapribeads.com/html/library/Zend/Controller/Dispatcher/Standard.php
on line 176


How do i resolve this? I've tried everything. It works locally but not when
i upload it... Here is a link to the bootstrap file:

http://anacapribeads.com/index.txt

I thought the problem was the setBaseUrl() function, but i've tried
everything. Can someone please help.
-- 
View this message in context: 
http://www.nabble.com/Media-Temple-Grid-Server-tf3423022s16154.html#a9540487
Sent from the Zend Framework mailing list archive at Nabble.com.


Re: [fw-general] Zend_Filter_Input...

2007-03-18 Thread Adam Balgach

so this functionality has gone away for good ?

On 3/18/07, Jason Qi [EMAIL PROTECTED] wrote:


Please to see Rob's  Goodbye Zend.php

http://akrabat.com/

Hope it helps

Jason.

*Adam Balgach [EMAIL PROTECTED]* wrote:

All,

How does the functionality change from .8 - .9 for Zend_Filter_Input...

I was using something like:

Zend::register('post', new Zend_Filter_Input($_POST, false));
Zend::register('get', new Zend_Filter_Input($_GET, false));


but i see this class has gone away...



--
TV dinner still cooling?
Check out Tonight's 
Pickshttp://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/on Yahoo! TV.




Re: [fw-general] Right way to use Zend_Db_Table::fetchRow()

2007-03-18 Thread Waldemar Schott
You can use this:
if (is_null($row-primary_key))
{
// row doesn't exist
}

But a method exist()/valid() in Zend_Db_Table_Row_Abstract will be useful.


xagrez schrieb:
 Same issue for me
 
 the issue is that, whether if  a row is fetched in the fetchRow, it will
 still return an object.
 
 There must be a way to access functions in that object to know if a row(s)
 is fetched.
 
 
 Shahar Evron wrote:
 Hi,

 This might be a report, but I didn't find anything in the archives.

 I have some code like this:

 ?php
  // Assume that Users is a class extends Zend_Db_Table
  $table = new Users();
  $row = $table-fetchRow(user_name = 'bob');
 ?

 What is the proper way to check whether I actually got a result or not?
 I have noticed that fetchRow always returns a Zend_Db_Row object, and
 that if there are no results (ie no rows where 'user_name' = 'bob') all
 the data in the row is NULL.

 Does this make sense? If so, what's the intended way to check if results
 were returned?

 TIA,

 Shahar.


 



signature.asc
Description: OpenPGP digital signature


Re: [fw-general] Zend_Filter_Input...

2007-03-18 Thread Jason Qi
Bill once said that until 1.0, everything could be changed. If you use ZF for 
your real product, it is better to do the final check after 1.0

Adam Balgach [EMAIL PROTECTED] wrote: so this functionality has gone away for 
good ?

On 3/18/07, Jason Qi [EMAIL PROTECTED] wrote: Please to see Rob's  Goodbye 
Zend.php

http://akrabat.com/

 Hope it helps

Jason.

Adam Balgach [EMAIL PROTECTED]  wrote: All,

How does the functionality change from .8 - .9 for Zend_Filter_Input...

I was using something like: 

Zend::register('post', new Zend_Filter_Input($_POST, false));
Zend::register('get', new Zend_Filter_Input($_GET, false)); 


but i see this class has gone away...


  

   

-
TV dinner still cooling?
Check out Tonight's Picks  on Yahoo! TV.


 

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: [fw-general] Zend_Filter_Input...

2007-03-18 Thread Waldemar Schott
Hi Adam,
ZF has now two components called Zend_Filter_* and Zend_Validate_* for
this. But IMO it's quite harder compared too Zend_Filter_Input. Maybe
there will be something similar to Zend_Filter_Input after the 1.0
Release. Furthermore the class Zend is deprecated.


Adam Balgach schrieb:
 All,
 
 How does the functionality change from .8 - .9 for Zend_Filter_Input...
 
 I was using something like:
 
 Zend::register('post', new Zend_Filter_Input($_POST, false));
 Zend::register('get', new Zend_Filter_Input($_GET, false));
 
 
 but i see this class has gone away...
 
 



signature.asc
Description: OpenPGP digital signature


[fw-general] Zend_Db_Table ?

2007-03-18 Thread Adam Balgach

I am having some issues with 0.9.0 and a Zend_Table class, where the table
is outside the default database supplied by the adapter.

before I was [in the constructor of this class]

protected function _setup() {
   $this-_name='bug.issue_tracker';
   $this-_primary='issue_id';
   parent::_setup();
   }

now, when this is done, it is throwing the error:

*Fatal error*: Uncaught exception 'Zend_Db_Table_Exception' with message
'Primary key column(s) (issue_id) are not columns in this table ()' in
/opt/dev/ZendFramework-0.9.0-Beta/library/Zend/Db/Table/Abstract.php:359

is appears that the table name being defined in $this-_name  is not getting
picked up.  Anything I am doing particularly wrong?  [When the table is IN
the default DB then all works as expected.

Cheers,
Adam.


[fw-general] Zend_Mime_Decode, decode entire message

2007-03-18 Thread Jack Sleight

Hi, 
Urm, I'm new, so I hope this is the right place to mention this.

The Zend_Mime_Decode class doesn't currently have a method for decoding an
entire message, as received in its raw form from a mail server. From what I
can tell (there is no documentation for Zend_Mime_Decode yet) you have to do
this: Split the message to get the header and the body, get the boundary
value from the content-type header, parse the body through
splitMessageStruct, along with the boundary value. Then, if any of those
parts are multipart/alternative you need to do the whole lot again,
recursively.

What do you think about adding a method that will do all this for you, and
recursively detect and decode nested multipart/alternative parts. I have
written a method that can do it, but I'm not sure if this is the place to
post code (probably not) and I've not signed a CLA yet, so I'm not sure if
I'm allowed to post code.

Just an idea, would be good to hear what people think,
Jack

P.S. I literally only just started looking at ZF, and it looks awesome,
there is a very good chance I will be using it for my future work, and will
be contributing where I can.
-- 
View this message in context: 
http://www.nabble.com/Zend_Mime_Decode%2C-decode-entire-message-tf3424153s16154.html#a9543786
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Media Temple Grid Server

2007-03-18 Thread fendtele83

I'm using version 0.8.0, the url isn't live right now, but it's any
controller that i try to access... i think it has to do with the setBaseUrl.
Do you know what to set it to on Grid Server?
-- 
View this message in context: 
http://www.nabble.com/Media-Temple-Grid-Server-tf3423022s16154.html#a9544422
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Cleanup Zend_Request

2007-03-18 Thread Kevin McArthur
Going through Zend_Request, I'd like to suggest a quick change to deprecate 
getParams. 

All the other methods work on a null $key parameter to return the entire arary. 
getPost, getQuery, getCookie etc, all work the same way. Can we clean up 
getParam(s) for 1.0 to follow this common syntax?

Kevin

Re: [fw-general] Zend_Db Exception throwing?

2007-03-18 Thread Jude Aakjaer
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', 'password' = 'failme', 'dbname' = 'random'));

} catch (Exception $e) {
echo caught an exception! br /;
echo $e-getMessage();
exit;
}


I keep getting
Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[28000]  
[1045] Access denied for user 'nonexistant'@'localhost' (using password:  
YES)'


Without the database name I can successfuly catch an exception telling me  
that the dbname key hasn't been filled in, but I seemingly cannot catch  
the failed to connect to db exception


-Jude A.


On Sat, 10 Mar 2007 03:42:47 +0900, Bill Karwin [EMAIL PROTECTED] wrote:


That's a good point.  Using the PDO adapters should be transparent, and
the Zend_Db classes should throw exceptions that extend
Zend_Db_Exception in all cases.  So we need to catch PDOException in the
PDO adapters and re-throw as a more appropriate exception.

Can you please log a bug on this in JIRA, and I'll fix it.  If you have
time to help me out, can you please identify the places in the PDO
adapter code where usage of PDO methods may throw PDOException and need
to be caught and re-thrown.  I'll also make unit tests as part of the
fix.

Regards,
Bill Karwin


-Original Message-
From: Ralph Schindler [mailto:[EMAIL PROTECTED]
Sent: Friday, March 09, 2007 9:58 AM
To: Zend Framework General
Cc: Bill Karwin
Subject: [fw-general] Zend_Db Exception throwing?

Bill et. al.,

Out of curiosity, if I am using Zend_Db(_Adapter_Abstract) to execute

a

select object (query), should I be getting a Zend_Db_Exception or
derivative thereof when invalid sql is queried?  Ie., i cannot catch

the

following:



try {
   $s = $database_connection-select();
   $s-from('valid_table')
 -where('not_valid_column = ?', 'value');
   $database_connection-fetchAll($s);
} catch (Zend_Db_Exception $e) {
   echo pre;
   print_r($e);
   die();
}

Currently, I see the database connection is throwing a PDOException

when

there is invalid sql.. like the above (not a valid column)

Is this the proper behavior?

Thanks,
Ralph







[fw-general] unclear example of using of zend registry

2007-03-18 Thread ZegeeDotCom

Can someone give me an example of how I use the zend registry. I upgraded to
ZF 0.9 and my zend registry is not working.

here is the code in my bootstrap file:

function bootstrap(){

include Zend/Loader.php;  
Zend_Loader::loadClass('Zend_Controller_Front');
Zend_Controller_Front::run('../application/controllers');
 
Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_View');
$view = new Zend_View();
$view-setScriptPath('../application/views');
Zend_Registry::set('view',$view);   

Zend_Loader::loadClass('Zend_Config_Ini');  
$config = new
Zend_Config_InI('../application/config/config.ini','general');
Zend::register('config',$config);   

}

How do I register and deregister my registers? ;)


-- 
View this message in context: 
http://www.nabble.com/unclear-example-of-using-of-zend-registry-tf3425165s16154.html#a9546793
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] unclear example of using of zend registry

2007-03-18 Thread Nick Lo

Zend_Registry::set('config',$config);
Zend_Registry::get('config');

http://framework.zend.com/manual/en/zend.registry.html

Also if you're just using that config in a controller you may like to  
use...


$controller-setParam( 'config', $config )

...and retrieve that in the controllers with something like...

$this-_config = $this-getInvokeArg('config');

Nick

On 19/03/2007, at 4:34 PM, ZegeeDotCom wrote:



Can someone give me an example of how I use the zend registry. I  
upgraded to

ZF 0.9 and my zend registry is not working.

here is the code in my bootstrap file:

function bootstrap(){

include Zend/Loader.php;
Zend_Loader::loadClass('Zend_Controller_Front');
Zend_Controller_Front::run('../application/controllers');

Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_View');
$view = new Zend_View();
$view-setScriptPath('../application/views');
Zend_Registry::set('view',$view);   

Zend_Loader::loadClass('Zend_Config_Ini');  
$config = new
Zend_Config_InI('../application/config/config.ini','general');
Zend::register('config',$config);   

}

How do I register and deregister my registers? ;)


--
View this message in context: http://www.nabble.com/unclear-example- 
of-using-of-zend-registry-tf3425165s16154.html#a9546793

Sent from the Zend Framework mailing list archive at Nabble.com.