2008年12月3日星期三

Re: [fw-formats] include_path assumption elimination

Actually, if its not in your systems include_path (as opposed to the set for
the project in say the .htaccess or vhost), the typical place users are
expected to set this value is in the bootstrap or index file.

Have a look at this page of the quickstart:

http://framework.zend.com/docs/quickstart/create-a-bootstrap-file

That should explain a few things.. Take notice to the set_include_path
call.

-ralph

PS. Notice the PATH_SEPARATOR const. It will save you many keystrokes :)

On 12/3/08 9:09 AM, "gherson" <gherson@snet.net> wrote:

>
> That's another solution, thanks. Why not remove the hurdle, though, such as
> per my ini_set('include_path',...) suggestion? It appears there's a base
> script per ZF library in which that can be cleanly done.
>
> best,
> George
>
> Ralph Schindler-2 wrote:
>>
>> Why don't you simply have ZF in your include_path? Is there a compelling
>> reason for it to NOT be in there?
>>
>> -ralph
>>

--
Ralph Schindler
Software Engineer | ralph.schindler@zend.com
Zend Framework | http://framework.zend.com/

没有评论: