2008年12月17日星期三

Re: [fw-mvc] Action Controllers extending custom one and include path in version 1.7.1

By default, without "." in your include_path, php will check the current
directory relative to the current include calling script *last*.

More details here (2nd paragraph):
http://us2.php.net/include/

If, for example, you wanted php to check the path relative to the current
script FIRST (assuming the path did not start with a ./ or ../), then you
would want to put the "." first in your include path.

Personally, I leave the "." out, since php will resolve my
"Path/To/File.php" statements (notice I didn't say "./Path/To/File.php")
anyway.

-ralph


On 12/16/08 7:09 AM, "iosonogio" <iosonogio99@yahoo.com> wrote:

>
>> Honestly? BaseAction.php in your controllers directory should never have
>> been found during autoloading unless you had '.' on your include path.
>> Is it possible that changed?
>
> it may be, I will check.
>
> By the way, is it a best practice to include '.' into the onclude path, or
> better not ?
>
> Thank you

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

1 条评论:

匿名 说...

I really like this blog, the author is very talented at blogging! I enjoyed viewing it. Check out my internet speed test blog. Comments welcome! =)

--->Free Internet Speed Test<---