directories going on :) I would look at the dipatcher source code, you
are intrested in the wordDelimiter parts.
2009/2/23 vadim gavrilov <vadimg88@gmail.com>:
> @Ed, Thanks for that i did not know you could use dashes to specify sub
> directories inside a controller directory. I will sure look trough this
> tomorrow and try this.
>
> @Keith , Actually this is fairly a good structure for an application that
> will have both front-end and back-end controllers, that's why i used admin
> and site directories as modules. Then in each of those modules there will be
> controllers now if i have a member management controller that deals with
> everything related to the members & groups i will need to create several
> controllers for that starting with actually the index controller. Now doing
> so will allow me only adding one index controller in the entire controllers
> directory which is something i'd rather not do. I would like to have an
> index controller for each sub-directory in the controllers directory. And
> probably accessing each controller inside the sub directory of a controller
> by browsing to the requested file such as admin/members/index will load the
> file admin/controllers/members/indexcontroller.php and so on. Does anyone
> know if this can be accompliesed using slash and not dashes (maybe with a
> router?)
>
> Thanks.
>
> On Mon, Feb 23, 2009 at 10:12 PM, keith Pope <mute.pop3@googlemail.com>
> wrote:
>>
>> No Zend_Application is used to bootstrap/initialize your settings.
>> Your problem is more down to what settings you are using.
>>
>> Looking at your post, I dont quite understand why you want sub dirs
>> within your controller directories. The controller directory structure
>> is controlled by the dispatcher, this handles finding and executing
>> the controller actions. So to have sub directories within your
>> controller directories you would need to specialize the dispatcher.
>> Which is not pretty and definitely not for the faint hearted :)
>> Someone correct me if I am wrong please...
>>
>> You may want to look at your design a bit harder, you probably dont
>> need the extra directories.
>>
>> Hope this helps, not sure if I explained it that well :)
>>
>> 2009/2/23 vadim gavrilov <vadimg88@gmail.com>:
>> > Sorry if this is unrelated to the current subject being talked about but
>> > was
>> > wondering if the initializer your talking about and the new zend
>> > application
>> > prototype is something i could use to solve the issue i am having
>> > http://www.nabble.com/forum/ViewPost.jtp?post=22163221&framed=y
>> >
>> > I am new to ZF, And still trying to grasp the way it works.
>> >
>> > Thanks.
>> >
>> > On Mon, Feb 23, 2009 at 9:17 PM, keith Pope <mute.pop3@googlemail.com>
>> > wrote:
>> >>
>> >> Ok that would be great, I am currently writing a chapter that will
>> >> need to make use of Zend_Application, Autoloader etc at some point so
>> >> just trying to get my head around it early. I am happy to give
>> >> feedback etc as I progress.
>> >>
>> >> Great components btw a real plus for the framework imho, bootstrapping
>> >> will be a dream once we have this and with the autoloader my own
>> >> library can shrink loads now :)
>> >>
>> >> One thing that I was wondering was if the ResourceLoader action helper
>> >> will be in the 1.8 release?
>> >>
>> >> 2009/2/23 Matthew Weier O'Phinney <matthew@zend.com>:
>> >> > -- keith Pope <mute.pop3@googlemail.com> wrote
>> >> > (on Monday, 23 February 2009, 06:09 PM +0000):
>> >> >> I was having a bit of trouble getting the usecases to work from
>> >> >> dasprids branch, is it a fully working prototype or was I just being
>> >> >> stupid?
>> >> >
>> >> > I made a ton of updates over the weekend; make sure your checkout is
>> >> > up-to-date. If it is, and you're still having trouble, I'll work up
>> >> > more
>> >> > examples in the next day or so.
>> >> >
>> >> > (Both Ben and I are committing in that branch currently)
>> >> >
>> >> >> 2009/2/23 Matthew Weier O'Phinney <matthew@zend.com>:
>> >> >> > -- Ed Lazor <edlazor@internetarchitects.biz> wrote
>> >> >> > (on Monday, 23 February 2009, 09:25 AM -0800):
>> >> >> >> > You may want to look at the current Zend_Application prototype
>> >> >> >> > instead:
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > http://framework.zend.com/svn/framework/standard/branches/user/dasprid/Zend_Application
>> >> >> >>
>> >> >> >> Is that going to be the new standard?
>> >> >> >
>> >> >> > Yes.
>> >> >
>> >> > --
>> >> > Matthew Weier O'Phinney
>> >> > Software Architect | matthew@zend.com
>> >> > Zend Framework | http://framework.zend.com/
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> ----------------------------------------------------------------------
>> >> [MuTe]
>> >> ----------------------------------------------------------------------
>> >>
>> >
>> >
>> >
>> > --
>> > Vincent Gabriel.
>> > Lead Developer, Senior Support.
>> > Zend Certified Engineer.
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>> --
>> ----------------------------------------------------------------------
>> [MuTe]
>> ----------------------------------------------------------------------
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论