Re: [fw-general] pdf manual

2007-04-12 Thread zengpu zhang
May be should Download by self and Change to pdf.



?? 2007-04-12 20:05 -0700??Marcelo Araujo??
> Hello,
> 
> Is there a pdf manual for the zend framework available at the official
> website?
> 
> Regards,
> 
> --Marcelo


signature.asc
Description: 	这是信件的数	字签名部分


[fw-general] pdf manual

2007-04-12 Thread Marcelo Araujo

Hello,

Is there a pdf manual for the zend framework available at the official
website?

Regards,

--Marcelo


[fw-general] The direction ZF is going

2007-04-12 Thread frosty1

I just downloaded v0.92 and was a little suprised by what I saw.  I feel that
several features have become more complicated.  Two quick examples are the
variable naming in db results and filtering input.  I feel that the the most
important feature of a framework is that it makes it easier and quicker to
write more secure and consistant code.  I have been regularly programming
with ZF since v0.2 and have always found compelling reasons to adopt each
new release.  With my short intro to 0.92 I am now considering waiting to
1.0 before I refactor code.  I truly appreciate all of the work that has
gone into building this incredible framework, and hope that moving forward
it will continue to evolve into a simple solution to many of programmings
day to day challenges.
-- 
View this message in context: 
http://www.nabble.com/The-direction-ZF-is-going-tf3568312s16154.html#a9968460
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] PDOException with message SQLSTATE[HY000]: General error: 2036

2007-04-12 Thread [EMAIL PROTECTED]

Thanks for the excellent post, and following up on how you arrived at the
final solution.  It worked great for me!

-- 
View this message in context: 
http://www.nabble.com/PDOException-with-message-SQLSTATE-HY000-%3A-General-error%3A-2036-tf3239563s16154.html#a9966402
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Classes extending or implementing without require_once first

2007-04-12 Thread John Baldock

Sure thing, I'll check it against the latest SVN as you suggest. :)

Cheers,
John


Darby Felton wrote:
> 
> Hi John,
> 
> Good spot! Indeed, all classes should require_once their dependencies.
> Would you mind filing JIRA issue(s) against the components for which
> this requirement is unfulfilled?
> 
> By the way, you might check the latest SVN. Some of the Yahoo component
> classes I had fixed earlier this week, but I did miss one. :)
> 
> Thank you kindly for the report!
> 
> Best regards,
> Darby
> 

-- 
View this message in context: 
http://www.nabble.com/Classes-extending-or-implementing-without-require_once-first-tf3565902s16154.html#a9963747
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Classes extending or implementing without require_once first

2007-04-12 Thread Darby Felton
Hi John,

Good spot! Indeed, all classes should require_once their dependencies.
Would you mind filing JIRA issue(s) against the components for which
this requirement is unfulfilled?

By the way, you might check the latest SVN. Some of the Yahoo component
classes I had fixed earlier this week, but I did miss one. :)

Thank you kindly for the report!

Best regards,
Darby

John Baldock wrote:
> Hi there,
> 
> I found one class that didn't require_once the class it extended by accident
> and thought I would check for others. I am still new here and I am unsure if
> it would be right to create lots of issues of the following so I thought I
> would post here instead. I checked the issue finder for each of the
> following and they do not seem to have been reported. 
> 
> These classes do not require_once the class they extend or implement:
> 
> Zend/Cache/Backend/ZendPlatform.php
> Zend/Gdata/Calendar.php
> Zend/Gdata/CodeSearch.php
> Zend/Gdata/Spreadsheets.php
> Zend/Locale/Math/PhpMath.php
> Zend/Memory/AccessController.php
> Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php
> Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php
> Zend/Search/Lucene/Search/Similarity/Default.php
> Zend/Service/Delicious/Post.php
> Zend/Service/Yahoo/ImageResult.php
> Zend/Service/Yahoo/ImageResultSet.php
> Zend/Service/Yahoo/LocalResult.php
> Zend/Service/Yahoo/LocalResultSet.php
> Zend/Service/Yahoo/NewsResult.php
> Zend/Service/Yahoo/NewsResultSet.php
> Zend/Service/Yahoo/WebResult.php
> Zend/Service/Yahoo/WebResultSet.php
> Zend/Session/Namespace.php
> Zend/XmlRpc/Value/String.php
> 
> I put the above into a file along with the code needed to fix them, e.g.:
> 
> Zend/Cache/Backend/ZendPlatform.php
> /**
>  * Zend_Cache_Backend
>  */
> require_once 'Zend/Cache/Backend.php';
> 
> It's quite long so stuck it on my site:
> http://www.baldock-web-development.com/temp/missingRequires.txt
> 
> This is the code I used to find these (feel free to use/change/etc it):
> http://www.baldock-web-development.com/temp/code.txt
> 
> Hope this helps,
> John Baldock


Re: [fw-general] CRON JOB

2007-04-12 Thread Matthew Weier O'Phinney
-- Ian Warner <[EMAIL PROTECTED]> wrote
(on Thursday, 12 April 2007, 04:47 PM +0100):
> I want to run a cron job on a controller, 

Don't you mean the other way around, a controller from a cron job?

> its coming up with errors as I have made the path the file path and
> not the URL path so it is struggling to find all the correct includes
> etc.
> 
> So just wanted to know how people are tackling the Pathing and also the 
> separation of showing CLI output or normal HTML output. depending on 
> where the request comes from.
> 
> Also how people are handling the pathing
> 
> ie. /var/html/htdocs/controllers/parse.php instead of 
> http://www.domain.com/parse

You have several options. Probably the easiest is to create a request
object that you pass to your front controller:

$request = new Zend_Controller_Request_Http('http://www.domain.com/parse');
$front->dispatch($request);

This requires a slightly different bootstrap file, obviously, but
hopefully you can abstract the portion that creates and instantiates the
front controller into an include file.

Another possibility is to use a CLI request object when running from a
CLI script or cronjob. The current one is pretty minimal, but Cal Evans
has put up a nice proposal for one on the wiki; it makes good use of
Zend_Console_Getopt, and allows passing in the controller and action
(and, I think, module) via commandline parameters to your script.

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


[fw-general] CRON JOB

2007-04-12 Thread Ian Warner

Hi

I want to run a cron job on a controller, its coming up with errors as I 
have made the path the file path and not the URL path so it is 
struggling to find all the correct includes etc.


So just wanted to know how people are tackling the Pathing and also the 
separation of showing CLI output or normal HTML output. depending on 
where the request comes from.


Also how people are handling the pathing

ie. /var/html/htdocs/controllers/parse.php instead of 
http://www.domain.com/parse


Cheers

Ian


[fw-general] Classes extending or implementing without require_once first

2007-04-12 Thread John Baldock

Hi there,

I found one class that didn't require_once the class it extended by accident
and thought I would check for others. I am still new here and I am unsure if
it would be right to create lots of issues of the following so I thought I
would post here instead. I checked the issue finder for each of the
following and they do not seem to have been reported. 

These classes do not require_once the class they extend or implement:

Zend/Cache/Backend/ZendPlatform.php
Zend/Gdata/Calendar.php
Zend/Gdata/CodeSearch.php
Zend/Gdata/Spreadsheets.php
Zend/Locale/Math/PhpMath.php
Zend/Memory/AccessController.php
Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php
Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php
Zend/Search/Lucene/Search/Similarity/Default.php
Zend/Service/Delicious/Post.php
Zend/Service/Yahoo/ImageResult.php
Zend/Service/Yahoo/ImageResultSet.php
Zend/Service/Yahoo/LocalResult.php
Zend/Service/Yahoo/LocalResultSet.php
Zend/Service/Yahoo/NewsResult.php
Zend/Service/Yahoo/NewsResultSet.php
Zend/Service/Yahoo/WebResult.php
Zend/Service/Yahoo/WebResultSet.php
Zend/Session/Namespace.php
Zend/XmlRpc/Value/String.php

I put the above into a file along with the code needed to fix them, e.g.:

Zend/Cache/Backend/ZendPlatform.php
/**
 * Zend_Cache_Backend
 */
require_once 'Zend/Cache/Backend.php';

It's quite long so stuck it on my site:
http://www.baldock-web-development.com/temp/missingRequires.txt

This is the code I used to find these (feel free to use/change/etc it):
http://www.baldock-web-development.com/temp/code.txt

Hope this helps,
John Baldock
-- 
View this message in context: 
http://www.nabble.com/Classes-extending-or-implementing-without-require_once-first-tf3565902s16154.html#a9960793
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Multiple applications with ZF

2007-04-12 Thread Xavier Vidal Piera

Yes, it works

The application's index.php only has a few lines now:

- error_reporting
- the ini_set('include_path') because we want to work in the application's
path
- bootstrap call (the kernel's index.php via include)

The kernel's index.php contains the included libraries, initializations with
config.ini, etc...

Thanks !!

2007/4/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


If, as I think I understand (apologies if I don't), you want to re-use the
bootstrap from a central location. The problem could be resolved by
replacing the link with an include shell. Basically an index.php with an
include statement pointing to a centralised bootstrap file (say
kernel_index.php). Similar effect, but you now have two PHP files, on two
paths, linked together.

Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Xavier Vidal Piera <[EMAIL PROTECTED]>
To: Adler Medrado <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 11:36:14 AM
Subject: Re: [fw-general] Multiple applications with ZF

The lib's soft link works perfect, because there are only libraries but no
executable files.

Otherwise, the index.php is the problematic one, because in the first
lines i'm getting the file path with dirname(__FILE__) and i'm getting the
kernel path instead of the application path where i'm executing the file.

2007/4/12, Adler Medrado <[EMAIL PROTECTED]>:
>
> Try to put the kernel/lib on your include_path.
> It may works fine.
>
> 2007/4/12, Xavier Vidal Piera < [EMAIL PROTECTED]>:
> >
> > Hi
> >
> > I'm developing a couple of different applications, using ZF, and now
> > i'm planning the application layout for each development. One thing i'm
> > trying to avoid is replicate a lot of code, specially the lib folder and the
> > bootstrap file ( index.php). If I can manage to centralize as much
> > code as possible it will be very good.
> >
> > The lib library is outside the application layout thanks a soft link
> > from linux, so the application thinks the libs is inside the application
> > layout, but i want to improve all this stuff. The bootstrap file follows the
> > same design.
> >
> > Now i get to this point:
> >
> > Kernel/
> > lib/
> > www/
> >.htaccess
> >.index.php
> >
> > Application1/
> > etc/
> > lib/ (link to kernel/lib)
> > ...
> > www/
> >@.htaccess (link to kernel/www/.htaccess)
> >@index.php (link to kernel/www/index.php)
> >
> > Application2/
> > ...
> >
> > There's a problem, as the kernel's index.php is in kernel's path
> > instead of application#'s path, so it get useless.
> >
> > Anybody knows a better way to make a good layout to achieve
> > reutilization?
> >
> > Thanks
> >
> > --
> > Xavier Vidal Piera
> > Enginyer Tècnic Informàtic de Gestió
> > Tècnic Especialista Informàtic d'equips
> > [EMAIL PROTECTED]
> > 610.68.41.78
>
>
>
>
> --
> adler medrado
>
> Consultor
> http://adler.neshertech.net




--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
610.68.41.78


--
The fish are biting.
 Get more 
visitorson
 your site using Yahoo!
Search Marketing.





--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
610.68.41.78


Re: [fw-general] Multiple applications with ZF

2007-04-12 Thread padraic . brady
If, as I think I understand (apologies if I don't), you want to re-use the 
bootstrap from a central location. The problem could be resolved by replacing 
the link with an include shell. Basically an index.php with an include 
statement pointing to a centralised bootstrap file (say kernel_index.php). 
Similar effect, but you now have two PHP files, on two paths, linked together.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Xavier Vidal Piera <[EMAIL PROTECTED]>
To: Adler Medrado <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 11:36:14 AM
Subject: Re: [fw-general] Multiple applications with ZF

The lib's soft link works perfect, because there are only libraries but no 
executable files.

Otherwise, the index.php is the problematic one, because in the first lines i'm 
getting the file path with dirname(__FILE__) and i'm getting the kernel path 
instead of the application path where i'm executing the file.


2007/4/12, Adler Medrado <[EMAIL PROTECTED]>:
Try to put the kernel/lib on your include_path. 
It may works fine.

2007/4/12, Xavier Vidal Piera <
[EMAIL PROTECTED]>:
Hi

I'm developing a couple of different applications, using ZF, and now i'm 
planning the application layout for each development. One thing i'm trying to 
avoid is replicate a lot of code, specially the lib folder and the bootstrap 
file (
index.php). If I can manage to centralize as much code as possible it will be 
very good.

The lib library is outside the application layout thanks a soft link from 
linux, so the application thinks the libs is inside the application layout, but 
i want to improve all this stuff. The bootstrap file follows the same design.


Now i get to this point:

Kernel/
lib/
www/
   .htaccess
   .index.php

Application1/
etc/
lib/ (link to kernel/lib)

...
www/
   @.htaccess (link to kernel/www/.htaccess)
   @index.php (link to kernel/www/index.php)

Application2/
...

There's a problem, as the kernel's index.php is in kernel's path instead of 
application#'s path, so it get useless.


Anybody knows a better way to make a good layout to achieve reutilization?

Thanks

-- 
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips

[EMAIL PROTECTED]
610.68.41.78





-- 
adler medrado

Consultor 

http://adler.neshertech.net




-- 
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]

610.68.41.78






   

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

Re: [fw-general] Multiple applications with ZF

2007-04-12 Thread Xavier Vidal Piera

The lib's soft link works perfect, because there are only libraries but no
executable files.

Otherwise, the index.php is the problematic one, because in the first lines
i'm getting the file path with dirname(__FILE__) and i'm getting the kernel
path instead of the application path where i'm executing the file.

2007/4/12, Adler Medrado <[EMAIL PROTECTED]>:


Try to put the kernel/lib on your include_path.
It may works fine.

2007/4/12, Xavier Vidal Piera <[EMAIL PROTECTED]>:
>
> Hi
>
> I'm developing a couple of different applications, using ZF, and now i'm
> planning the application layout for each development. One thing i'm trying
> to avoid is replicate a lot of code, specially the lib folder and the
> bootstrap file ( index.php). If I can manage to centralize as much code
> as possible it will be very good.
>
> The lib library is outside the application layout thanks a soft link
> from linux, so the application thinks the libs is inside the application
> layout, but i want to improve all this stuff. The bootstrap file follows the
> same design.
>
> Now i get to this point:
>
> Kernel/
> lib/
> www/
>.htaccess
>.index.php
>
> Application1/
> etc/
> lib/ (link to kernel/lib)
> ...
> www/
>@.htaccess (link to kernel/www/.htaccess)
>@index.php (link to kernel/www/index.php)
>
> Application2/
> ...
>
> There's a problem, as the kernel's index.php is in kernel's path instead
> of application#'s path, so it get useless.
>
> Anybody knows a better way to make a good layout to achieve
> reutilization?
>
> Thanks
>
> --
> Xavier Vidal Piera
> Enginyer Tècnic Informàtic de Gestió
> Tècnic Especialista Informàtic d'equips
> [EMAIL PROTECTED]
> 610.68.41.78




--
adler medrado

Consultor
http://adler.neshertech.net





--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
610.68.41.78


[fw-general] Multiple applications with ZF

2007-04-12 Thread Xavier Vidal Piera

Hi

I'm developing a couple of different applications, using ZF, and now i'm
planning the application layout for each development. One thing i'm trying
to avoid is replicate a lot of code, specially the lib folder and the
bootstrap file (index.php). If I can manage to centralize as much code as
possible it will be very good.

The lib library is outside the application layout thanks a soft link from
linux, so the application thinks the libs is inside the application layout,
but i want to improve all this stuff. The bootstrap file follows the same
design.

Now i get to this point:

Kernel/
   lib/
   www/
  .htaccess
  .index.php

Application1/
   etc/
   lib/ (link to kernel/lib)
   ...
   www/
  @.htaccess (link to kernel/www/.htaccess)
  @index.php (link to kernel/www/index.php)

Application2/
   ...

There's a problem, as the kernel's index.php is in kernel's path instead of
application#'s path, so it get useless.

Anybody knows a better way to make a good layout to achieve reutilization?

Thanks

--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
610.68.41.78