Re: [fw-general] Allowing global variables with Zend Framework

2007-07-07 Thread Eric Coleman
If your migrating TO the zend framework, wouldn't it make more sense  
to just fix the spots that rely on globals, esp since php 6 removed  
them afaik



On Jul 7, 2007, at 8:34 PM, kevin7654 wrote:



Hello,

I'm trying to slowly migrate an app I've written over to the zend  
framework.
The app currently relies on global variables, ie global $my_name,  
and it

also relies on get and post values.  Can I enable this with the zend
framework?


Thanks,

Kevin
--
View this message in context: http://www.nabble.com/Allowing-global- 
variables-with-Zend-Framework-tf4042358s16154.html#a11483587

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





[fw-general] Can't convert Zend_XmlRpc_Response object automatically?

2007-07-07 Thread guoqiang qian

hi,
I use Zend_Xmlrpc_Server,If I write a xmlrpc of method, need to return to a
Zend_XmlRpc_Response object?


[fw-general] Allowing global variables with Zend Framework

2007-07-07 Thread kevin7654

Hello,

I'm trying to slowly migrate an app I've written over to the zend framework. 
The app currently relies on global variables, ie global $my_name, and it
also relies on get and post values.  Can I enable this with the zend
framework?


Thanks,

Kevin
-- 
View this message in context: 
http://www.nabble.com/Allowing-global-variables-with-Zend-Framework-tf4042358s16154.html#a11483587
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Naming convention for module view helpers/filters

2007-07-07 Thread Matthew Weier O'Phinney
-- PotatoBob <[EMAIL PROTECTED]> wrote
(on Friday, 06 July 2007, 08:25 PM -0700):
> Is there a naming convention for module view helpers or filters.
> (application/modules/blog/views/helpers)
> Blog_Views_Helpers_MyHelper?

Use singular instead of plural:

Blog_View_Helper_MyHelper, Blog_View_Filter_MyFilter

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] configure default Zend_Locale for Zend_Date

2007-07-07 Thread Thomas Weidner

Hy Philip,

I would expect to have the locale within the session.
There is no need of grabbing the locale from Registry or Cache or to 
recreate it if you have the locale in your session.


Btw: You dont need to give the locale-object... it's enough to give the 
locale-definition-string... f.e. "en_US" instead of the instance.


Related to Zend_Locale::FRAMEWORK...
This work is stopped until we have Zend_Environment which was proposed to 
store framework-wide settings.


Greetings
Thomas
I18N Team Leader


- Original Message - 
From: "Philip Iezzi" <[EMAIL PROTECTED]>

To: "Thomas Weidner" <[EMAIL PROTECTED]>
Cc: 
Sent: Saturday, July 07, 2007 3:48 PM
Subject: Re: [fw-general] configure default Zend_Locale for Zend_Date



Hi Thomas,

Thanks for your solution. This is not really appropriate as I initiate a 
lot of Zend_Date instances and it would be a huge code change. I'd prefer 
to set a default locale for the whole framework in my bootstrap instead of 
grabbing the locale in each controller from Zend_Registry / Zend_Cache and 
change all those Zend_Date initializations.
If currently there is no simply solution for this, I hope someone is 
working on Zend_Locale::FRAMEWORK as described in:

http://framework.zend.com/manual/en/zend.locale.html#zend.locale.selection
That would be wonderful!

Regards,
Philip


Thomas Weidner wrote:

Hy Philip,

you just have to do:

$locale = new Zend_Locale(Zend_Locale::ENVIRONMENT);
$date = new Zend_Date($locale);

Just get sure that you store your locale, f.e. within Zend_Cache
and initiate every date instance with the given locale.

This way you override the standard settings from your clients browsers.

Greetings
Thomas
I18N Team Leader

- Original Message - From: "Philip Iezzi" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, July 07, 2007 1:04 PM
Subject: [fw-general] configure default Zend_Locale for Zend_Date



This may have been discussed earlier on this list but I cannot find
the thread...

How do I configure a default locale for all Zend_Date instances?
I need to override browser detection (Zend_Locale::BROWSER) as wget
does not seem to provide any HTTP_ACCEPT_LANGUAGE environment variable.
Is there a way to set the default locale by PHP's setlocale() in
combination with Zend_Locale::ENVIRONMENT or is Zend_Locale::FRAMEWORK
already implemented in ZF 1.0 ? Setting component defaults is a must
for ZF, in my eyes.

If there is currently no way to do this, can anybody pls tell me how
to set HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?

Thanks a lot
Philip 




RE: [fw-general] End of php4 -> gophp5

2007-07-07 Thread Andi Gutmans
I am already looking into this.
We currently don't require PHP 5.2.x but I believe we can sign up and agree 
that by Feb 2008 we will.
It will take me a few more days to look into this but it's likely I will sign 
us up.

Thanks,

Andi

> -Original Message-
> From: Bruno Friedmann [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 06, 2007 11:16 PM
> To: Zend Framework General
> Subject: [fw-general] End of php4 -> gophp5
> 
> I All,
> 
> Specially Bill,
> 
> Perharps ZF has some interest to be present of this website 
> http://gophp5.org/ as we use all the requirement and now we 
> are released ... :-)
> 
> 
> Enjoy
> 
> -- 
> 
>  Bruno Friedmann  [EMAIL PROTECTED]
> 
> Ioda-Net Sàrl   - www.ioda-net.ch
>   2830 Vellerat - Switzerland
>   
>   Tél : ++41 32 435 7171
>   Fax : ++41 32 435 7172
>   gsm : ++41 78 802 6760
> 
> C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com
> 
> 
> 


Re: [fw-general] configure default Zend_Locale for Zend_Date

2007-07-07 Thread Philip Iezzi
> If there is currently no way to do this, can anybody pls tell me how to set 
> HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?

ok, here's my workaround for the moment:

wget --header='Accept-Language: de-ch'

e.g. in .bashrc:
alias wget="wget --header='Accept-Language: de-ch'"


I'm still looking greatly forward to ZF component defaults.
Thanks to the I18N-Team for the great work you have done so far!

Regards,
Philip


Re: [fw-general] configure default Zend_Locale for Zend_Date

2007-07-07 Thread Philip Iezzi
Hi Thomas,

Thanks for your solution. This is not really appropriate as I initiate a lot of 
Zend_Date instances and it would be a huge code change. I'd prefer to set a 
default locale for the whole framework in my bootstrap instead of grabbing the 
locale in each controller from Zend_Registry / Zend_Cache and change all those 
Zend_Date initializations.
If currently there is no simply solution for this, I hope someone is working on 
Zend_Locale::FRAMEWORK as described in:
http://framework.zend.com/manual/en/zend.locale.html#zend.locale.selection
That would be wonderful!

Regards,
Philip


Thomas Weidner wrote:
> Hy Philip,
> 
> you just have to do:
> 
> $locale = new Zend_Locale(Zend_Locale::ENVIRONMENT);
> $date = new Zend_Date($locale);
> 
> Just get sure that you store your locale, f.e. within Zend_Cache
> and initiate every date instance with the given locale.
> 
> This way you override the standard settings from your clients browsers.
> 
> Greetings
> Thomas
> I18N Team Leader
> 
> - Original Message - From: "Philip Iezzi" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, July 07, 2007 1:04 PM
> Subject: [fw-general] configure default Zend_Locale for Zend_Date
> 
> 
>> This may have been discussed earlier on this list but I cannot find
>> the thread...
>>
>> How do I configure a default locale for all Zend_Date instances?
>> I need to override browser detection (Zend_Locale::BROWSER) as wget
>> does not seem to provide any HTTP_ACCEPT_LANGUAGE environment variable.
>> Is there a way to set the default locale by PHP's setlocale() in
>> combination with Zend_Locale::ENVIRONMENT or is Zend_Locale::FRAMEWORK
>> already implemented in ZF 1.0 ? Setting component defaults is a must
>> for ZF, in my eyes.
>>
>> If there is currently no way to do this, can anybody pls tell me how
>> to set HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?
>>
>> Thanks a lot
>> Philip 


Re: [fw-general] configure default Zend_Locale for Zend_Date

2007-07-07 Thread Thomas Weidner

Hy Philip,

you just have to do:

$locale = new Zend_Locale(Zend_Locale::ENVIRONMENT);
$date = new Zend_Date($locale);

Just get sure that you store your locale, f.e. within Zend_Cache
and initiate every date instance with the given locale.

This way you override the standard settings from your clients browsers.

Greetings
Thomas
I18N Team Leader

- Original Message - 
From: "Philip Iezzi" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, July 07, 2007 1:04 PM
Subject: [fw-general] configure default Zend_Locale for Zend_Date


This may have been discussed earlier on this list but I cannot find the 
thread...


How do I configure a default locale for all Zend_Date instances?
I need to override browser detection (Zend_Locale::BROWSER) as wget does 
not seem to provide any HTTP_ACCEPT_LANGUAGE environment variable.
Is there a way to set the default locale by PHP's setlocale() in 
combination with Zend_Locale::ENVIRONMENT or is Zend_Locale::FRAMEWORK 
already implemented in ZF 1.0 ? Setting component defaults is a must for 
ZF, in my eyes.


If there is currently no way to do this, can anybody pls tell me how to 
set HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?


Thanks a lot
Philip 




[fw-general] configure default Zend_Locale for Zend_Date

2007-07-07 Thread Philip Iezzi
This may have been discussed earlier on this list but I cannot find the 
thread...

How do I configure a default locale for all Zend_Date instances?
I need to override browser detection (Zend_Locale::BROWSER) as wget does not 
seem to provide any HTTP_ACCEPT_LANGUAGE environment variable.
Is there a way to set the default locale by PHP's setlocale() in combination 
with Zend_Locale::ENVIRONMENT or is Zend_Locale::FRAMEWORK already implemented 
in ZF 1.0 ? Setting component defaults is a must for ZF, in my eyes.

If there is currently no way to do this, can anybody pls tell me how to set 
HTTP_ACCEPT_LANGUAGE for wget on a Debian Etch system?

Thanks a lot
Philip


Re: [fw-general] CMS sample app

2007-07-07 Thread Christian Fischer

Take a lok here:

http://framework.zend.com/fisheye/browse/Zend_Framework_Laboratory/zfdemo



Michael Trowe wrote:
> 
> Am Fri, 6 Jul 2007 01:07:08 -0700 (PDT) schrieb Christian Fischer:
> 
>> When its ready i will post the sample link here, but i think it will take
>> 2
>> Months till i got it so far :)
> 
> A long time... :(
> 
>> Here is the login data. Its not much but an example.
> 
> I'd already found it at the forum. But what I need are some sources - just
> to get a better overview how the framework is used. At some points the
> manuals are a bit unclear.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CMS-sample-app-tf4033949s16154.html#a11477357
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] zend_uri: ->getDir() missing?

2007-07-07 Thread mike55

hi, 

to convert relative links in a html page to full links, i need to get the
host and directory part of a url. e.g. from
"http://www.hostname.com/directory/file.html"; i need
"http://www.hostname.com/directory/"; with zend_uri you get the host part
with ->getHost(). but then there's only ->getPath() which returns  
"/directory/file.html" .

how do i get just the directory part with zend_uri?

or what is a bulletproff regex to extract the directory-part from the
path-part?

thanx
 mike
-- 
View this message in context: 
http://www.nabble.com/zend_uri%3A--%3EgetDir%28%29-missing--tf4039846s16154.html#a11477201
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] AMF implementation

2007-07-07 Thread batoon

This is very interesting topic.
-- 
View this message in context: 
http://www.nabble.com/AMF-implementation-tf4021449s16154.html#a11476363
Sent from the Zend Framework mailing list archive at Nabble.com.