>
> 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
>
Thanks for this.
I made an extra test and still see a difference behaviour between Zend 1.7.1
and 1.6.2.
The test is similar to what I described, it just contains the essential
files only.
Here it is, if you wanna give it a look.
http://www.nabble.com/file/p21106851/htdocs.rar htdocs.rar
Whats strange is that by ONLY changing the Zend library from 1.6.2 to 1.7.1,
it stops working when trying to look at the Base Action Controller into the
same directories as the controllers. This situation works with Zend 1.6.2
instead.
By putting the Base Action Controller into the include path, it always work,
with both version.
I tested the above both with PHP version 5.2.6 and 5.2.8, result is the
same.
My point is: if it changes behaviour by only changing Zend library, and
nothing else, isnt that related -- by logic -- to some difference into the
Zend ?
Even though I had errors somewhere else in my environment, well it still
does work with Zend 1.6.2, so I suppose something got changed with Zend
1.7.1
If you may try the example provided that would be helpful for this puzzle
:-)
thank you and nice weekend.
--
View this message in context: http://www.nabble.com/Action-Controllers-extending-custom-one-and-include-path-in-version-1.7.1-tp21021017p21106851.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论