Re: [fw-general] Using subdomains

2008-07-19 Thread till
Btw, guys. Check out this blog post:
http://www.dasprids.de/blog/2008/07/19/zend-framework-gets-hostname-routing

What you need is in the upcoming release!

Till


Re: [fw-general] Using subdomains

2008-07-19 Thread till
On Sat, Jul 19, 2008 at 10:49 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
> This sounds like a DNS nightmare.  I would suggest www.site.com/username
> unless you have some type of automated DNS updater.

It's called a wildcard. :-) Most DNS servers support this.

Till


Re: [fw-general] Using subdomains

2008-07-19 Thread Micah Gersten
This sounds like a DNS nightmare.  I would suggest www.site.com/username
unless you have some type of automated DNS updater.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.comi



José de Menezes Soares Neto wrote:
> Hi friends,
>
> I would like to create a script with ZF that:
>
> 1. Access www.username.site.com 
> 2. Prints username profile
>
> I think I need to create an controller USER with action profile
> (http://www.site.com/user/profile/username), and, somehow link it to
> www.username.site.com  by .htaccess...
>
> But I don´t know how... any suggestions?
>
> Regards,
>
> José


Re: [fw-general] 1.6RC1 Release Notes

2008-07-19 Thread Micah Gersten
This could be a problem as Debian Etch is at 5.2.0.  I don't think there
are any plans to upgrade pass that version until the next Debian release
which at present has 5.2.6 in it.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



mbneto wrote:
> Hi Wil,
>
> THe requirements page mentions 5.1.4 with strongly recommended 5.2.3.
>    Are there any known components of the 1.6 that will
> really require 5.2.3 (i.e does not work)?
>
> I use RedHat Enterprise/Centos and they are all based on 5.1.6 so I'd
> like to know if I can adopt the new ZF with some restrictions or 
> stick the 1.5.x.
>
>
> On Fri, Jul 18, 2008 at 5:34 PM, Wil Sinclair <[EMAIL PROTECTED]
> > wrote:
>
>
> SYSTEM REQUIREMENTS
> ---
>
> Zend Framework requires PHP 5.2.3 or later. Please see our reference
> guide for
> more detailed system requirements:
>
> http://framework.zend.com/manual/en/requirements.html
>
>


Re: [fw-general] Zend_Feed import problem

2008-07-19 Thread [EMAIL PROTECTED]
Thanks Matthew for a quick reply. I'll try to find some other alternatives
other than directly call Zend_Feed::import

Thanks,
art

On Sun, Jul 20, 2008 at 2:39 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
wrote:

> -- [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote
> (on Sunday, 20 July 2008, 01:36 AM +0800):
> > I just noticed this error using Zend_Feed::import()
> >
> > DOMDocument cannot parse XML: DOMDocument::loadXML()
> [domdocument.loadxml]:
> > Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65
> in
> > Entity, line: 26
> >
> > It shows that the Zend_Feed does not work with   or equivalent characters
> in
> > the xml.
>
> Actually, it's not Zend_Feed that doesn't work with it... it's PHP's own
> DOMDocument.
>
> Typically, these sorts of issues are due to mixing encodings -- make
> sure you are actually receiving UTF-8 when you pass data to Zend_Feed.
>
> > Is there any workaround with this? Did somebody experienced this
> > error?
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>



-- 
Fran Lebowitz  - "Food is an important part of a balanced diet."


Re: [fw-general] Zend_Feed import problem

2008-07-19 Thread Matthew Weier O'Phinney
-- [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote
(on Sunday, 20 July 2008, 01:36 AM +0800):
> I just noticed this error using Zend_Feed::import()
> 
> DOMDocument cannot parse XML: DOMDocument::loadXML() [domdocument.loadxml]:
> Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65 in
> Entity, line: 26
> 
> It shows that the Zend_Feed does not work with   or equivalent characters in
> the xml. 

Actually, it's not Zend_Feed that doesn't work with it... it's PHP's own
DOMDocument.

Typically, these sorts of issues are due to mixing encodings -- make
sure you are actually receiving UTF-8 when you pass data to Zend_Feed.

> Is there any workaround with this? Did somebody experienced this
> error?

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Smarty?

2008-07-19 Thread Matthew Weier O'Phinney
-- Benjamin.Gonzales <[EMAIL PROTECTED]> wrote
(on Saturday, 19 July 2008, 10:53 AM -0700):
> Zend Framework -> Zend Company (creators of php)
> Samarty -> Zend Company (creators of php)
> 
> For the company Zend, no longer drives Samrty, gives no maintenance and are
> not plans to migrate to PHP5?
> 
> My goal is not to create a religious war, is known its views and possible
> applications and coexistence with the framework, thank everyone for their
> comments.
> 
> Someone from the company Zend I can answer?

Umm... Zend did not create Smarty and has never maintained the library;
if you look at the copyright, it's actually "New Digital Group, Inc.".
It is a community driven project that operates in parallel to ZF and has
no relation to ZF. You would need to ask the developers of Smarty what
the status of maintenance and PHP 5 migration are. (BTW, from what I can
see, they appear to have new releases about once a year, and primarily
bugfix/security patch releases.)

> PS: forgiveness for my English
> 
> Benjamín Gonzales
> 
> 
> Benjamin.Gonzales wrote:
> > 
> > A curiosity. 
> > Zend_Layout is becoming better and does not need any extra template. 
> > 
> > Smarty (created by PHP), does no longer has a future? How can we say that
> > this discontinued? I can say

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Using subdomains

2008-07-19 Thread Tobias Gies
Hi,

you can read more about using the new hostname routing on Ben's blog:
http://www.dasprids.de/blog/2008/07/19/zend-framework-gets-hostname-routing

Best regards
Tobias

2008/7/19 Robin Skoglund <[EMAIL PROTECTED]>:

> On Sat, Jul 19, 2008 at 4:05 PM, Lars Strojny <[EMAIL PROTECTED]> wrote:
>
>> Hi Jose,
>>
>> Am Samstag, den 19.07.2008, 10:50 -0300 schrieb José de Menezes Soares
>> Neto:
>> >
>> > I would like to create a script with ZF that:
>> >
>> > 1. Access www.username.site.com
>> > 2. Prints username profile
>> >
>> > I think I need to create an controller USER with action profile (
>> > http://www.site.com/user/profile/username), and, somehow link it to
>> > www.username.site.com by .htaccess...
>> >
>> > But I don´t know how... any suggestions?
>>
>> You could write your own router resolving $user.host.com to your user
>> controller. In your index.php there would be something like this:
>>
>> > if (!$is_maindomain) {
>>$front->setRouter(new My_Custom_Router());
>> }
>>
>> Or you extend the current router and handle both cases in the router
>> itself.
>>
>> cu, Lars
>>
>
> Actually, I think this something that is now supported natively in the new
> class Zend_Controller_Router_Route_Abstract that will be in 1.6-RC1 on
> monday (currently it's in the standard trunk). I haven't looked at it much
> yet, so I'm not exactly sure how to use it, but you should be able to figure
> it out by looking at the source. Hopefully someone will chime in on this
> with details.
>
> Robin
>


Re: [fw-general] Smarty?

2008-07-19 Thread Benjamin.Gonzales

Zend Framework -> Zend Company (creators of php)
Samarty -> Zend Company (creators of php)

For the company Zend, no longer drives Samrty, gives no maintenance and are
not plans to migrate to PHP5?

My goal is not to create a religious war, is known its views and possible
applications and coexistence with the framework, thank everyone for their
comments.

Someone from the company Zend I can answer?

PS: forgiveness for my English

Benjamín Gonzales


Benjamin.Gonzales wrote:
> 
> A curiosity. 
> Zend_Layout is becoming better and does not need any extra template. 
> 
> Smarty (created by PHP), does no longer has a future? How can we say that
> this discontinued? I can say
> 
> Benjamín
> 

-- 
View this message in context: 
http://www.nabble.com/Smarty--tp18537490p18547122.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Feed import problem

2008-07-19 Thread [EMAIL PROTECTED]
I just noticed this error using Zend_Feed::import()
DOMDocument cannot parse XML: DOMDocument::loadXML()
[domdocument.loadxml]:
Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65 in
Entity, line: 26It shows that the Zend_Feed does not work with ñ or
equivalent characters in the xml. Is there any workaround with this? Did
somebody experienced this error?

Thanks,
art


-- 
Laurence J. Peter  - "Originality is the fine art of remembering what you
hear but forgetting where you heard it."


Re: [fw-general] Using subdomains

2008-07-19 Thread Michał Minicki

José de Menezes Soares Neto wrote:

Hi friends,

I would like to create a script with ZF that:

1. Access www.username.site.com 
2. Prints username profile

I think I need to create an controller USER with action profile 
(http://www.site.com/user/profile/username), and, somehow link it to 
www.username.site.com  by .htaccess...


But I don´t know how... any suggestions?


If you want to achieve what you described, use htaccess rules similar to those 
(untested):

RewriteEngine On

RewriteCond %{HTTP_HOST} www\.(.+)\.site\.com
RewriteRule ^(.*)$ http://www.site.com/user/profile/%1?path=$1


José


--
Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | 
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell


Re: [fw-general] Using subdomains

2008-07-19 Thread Robin Skoglund
On Sat, Jul 19, 2008 at 4:05 PM, Lars Strojny <[EMAIL PROTECTED]> wrote:

> Hi Jose,
>
> Am Samstag, den 19.07.2008, 10:50 -0300 schrieb José de Menezes Soares
> Neto:
> >
> > I would like to create a script with ZF that:
> >
> > 1. Access www.username.site.com
> > 2. Prints username profile
> >
> > I think I need to create an controller USER with action profile (
> > http://www.site.com/user/profile/username), and, somehow link it to
> > www.username.site.com by .htaccess...
> >
> > But I don´t know how... any suggestions?
>
> You could write your own router resolving $user.host.com to your user
> controller. In your index.php there would be something like this:
>
>  if (!$is_maindomain) {
>$front->setRouter(new My_Custom_Router());
> }
>
> Or you extend the current router and handle both cases in the router
> itself.
>
> cu, Lars
>

Actually, I think this something that is now supported natively in the new
class Zend_Controller_Router_Route_Abstract that will be in 1.6-RC1 on
monday (currently it's in the standard trunk). I haven't looked at it much
yet, so I'm not exactly sure how to use it, but you should be able to figure
it out by looking at the source. Hopefully someone will chime in on this
with details.

Robin


Re: [fw-general] Using subdomains

2008-07-19 Thread Lars Strojny
Hi Jose,

Am Samstag, den 19.07.2008, 10:50 -0300 schrieb José de Menezes Soares
Neto:
> 
> I would like to create a script with ZF that:
> 
> 1. Access www.username.site.com
> 2. Prints username profile
> 
> I think I need to create an controller USER with action profile (
> http://www.site.com/user/profile/username), and, somehow link it to
> www.username.site.com by .htaccess...
> 
> But I don´t know how... any suggestions?

You could write your own router resolving $user.host.com to your user
controller. In your index.php there would be something like this:

setRouter(new My_Custom_Router());
}

Or you extend the current router and handle both cases in the router
itself.

cu, Lars


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[fw-general] Using subdomains

2008-07-19 Thread José de Menezes Soares Neto
Hi friends,

I would like to create a script with ZF that:

1. Access www.username.site.com
2. Prints username profile

I think I need to create an controller USER with action profile (
http://www.site.com/user/profile/username), and, somehow link it to
www.username.site.com by .htaccess...

But I don´t know how... any suggestions?

Regards,

José


Re: [fw-general] Smarty?

2008-07-19 Thread Jani Hartikainen

Indeed we don't. But perhaps a well argumented discussion ;)
I took this to my blog (codeutopia.net) since it's really getting
kind of off-topic here I think.

On Sat, 19 Jul 2008 16:07:40 +0300, Tobias Gies  
<[EMAIL PROTECTED]> wrote:


folks, do we really need another religious war about whether or not  
smarty is good or bad?


Best regards
Tobias





Re: [fw-general] Smarty?

2008-07-19 Thread Tobias Gies
folks, do we really need another religious war about whether or not smarty
is good or bad?

Best regards
Tobias

-- 
Religious wars: Fights between adult people about who has the cooler
imaginary friend.

2008/7/19 mbneto <[EMAIL PROTECTED]>:

> I do not agree.   The syntax of smarty is much easier to the designer that
> using the phtml with echo etc.
>
> On Fri, Jul 18, 2008 at 4:50 PM, Benjamin.Gonzales <[EMAIL PROTECTED]>
> wrote:
>
>>
>> A curiosity.
>> Zend_Layout is becoming better and does not need any extra template.
>>
>> Smarty (created by PHP), does no longer has a future? How can we say that
>> this discontinued? I can say
>>
>> Benjamín
>> --
>> View this message in context:
>> http://www.nabble.com/Smarty--tp18537490p18537490.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>


Re: [fw-general] Smarty?

2008-07-19 Thread mbneto
I do not agree.   The syntax of smarty is much easier to the designer that
using the phtml with echo etc.

On Fri, Jul 18, 2008 at 4:50 PM, Benjamin.Gonzales <[EMAIL PROTECTED]> wrote:

>
> A curiosity.
> Zend_Layout is becoming better and does not need any extra template.
>
> Smarty (created by PHP), does no longer has a future? How can we say that
> this discontinued? I can say
>
> Benjamín
> --
> View this message in context:
> http://www.nabble.com/Smarty--tp18537490p18537490.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] 1.6RC1 Release Notes

2008-07-19 Thread mbneto
Hi Wil,

THe requirements page mentions 5.1.4 with strongly recommended 5.2.3.   Are
there any known components of the 1.6 that will really require 5.2.3 (i.e
does not work)?

I use RedHat Enterprise/Centos and they are all based on 5.1.6 so I'd like
to know if I can adopt the new ZF with some restrictions or  stick the
1.5.x.


On Fri, Jul 18, 2008 at 5:34 PM, Wil Sinclair <[EMAIL PROTECTED]> wrote:

>
> SYSTEM REQUIREMENTS
> ---
>
> Zend Framework requires PHP 5.2.3 or later. Please see our reference
> guide for
> more detailed system requirements:
>
> http://framework.zend.com/manual/en/requirements.html
>
>


Re: [fw-general] 1.6RC1 Release Notes

2008-07-19 Thread Tobias Gies
Hi,

found a typo.

* Zend_Table save handler for DbTable


should be: *Zend_Session save handler for DbTable

Best regards
Tobias