Forwarding to fw-general...

-------- Original Message --------
Subject: Re: [fw-general] How get Zend_Controller_Dispatcher_Token from
     index.php
Date: Mon, 13 Nov 2006 16:48:51 -0600
From: Darby Felton <[EMAIL PROTECTED]>
To: Abu Hurayrah <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>    <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>    <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>    <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Hi Abu,

Certainly you have to consider whether it is appropriate for your own
development cycle. It is indeed possible that doing so would prove too
long, depending on the length of your normal cycle and how often you
need to update the framework for your applications.

For example, if you are pegging your application to a particular
release, and you do not anticipate upgrading any time soon, then it
probably makes no sense to use svn:externals. If on the other hand, you
would like to stay abreast of the latest changes, feature additions, and
bug fixes, using svn:externals can help you do this by requiring only a
simple svn update. An alternative approach, requiring only an untar or
unzip of a release or nightly build is also very reasonable and can be
scripted.

You're not too critical at all - it is important to determine whether
any integration method well suits your particular situation. :)

Best regards,
Darby

Abu Hurayrah wrote:
> I considered this method myself for my own projects, but the amount of
> time it would take to the normal checkout/update/commit cycle seemed a
> bit excessive.  Additionally, in this thread, we'd have to deal with two
> separate branches of the entire framework - library under both trunk &
> incubator.
> 
> Perhaps for a release that is pegged to a specific tag, it would make
> more sense, but for development, it seems like an awful lot of work.  Am
> I being too critical?
> 
> Darby Felton wrote:
>> Hi all,
>>
>> Here is another idea for integrating your applications with Zend
>> Framework; I hope it is useful to someone.
>>
>> If you manage your application code in Subversion (SVN), you can use the
>> handy "svn:externals" property to manage your application's use of the
>> Zend Framework:
>>
>> http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.externals
>>
>>
>> or, tinyurl:
>>
>> http://tinyurl.com/yfvbou
>>
>> In this way, you have complete control of each application's use of the
>> Zend Framework. It gives you the ability to update each application
>> separately, and it lets you set the /version/ of the framework code on a
>> per-application basis.
>>
>> Your mileage may vary, of course, depending on the availability of
>> various systems to you (e.g., a Subversion-capable server).
>>
>> Best regards,
>> Darby
>>
>> Matthew Ratzloff wrote:
>>  
>>> Mauro,
>>>
>>> Instead of
>>> ".;C:\Programmi\php\ext;C:\Programmi\php\ext\core;C:\Programmi\php\ext\incubator"
>>>
>>>
>>> Use
>>> ".;C:\Programmi\php\ext;C:\Programmi\php\ext\incubator;C:\Programmi\php\ext\core"
>>>
>>>
>>> In other words, swap the position of incubator and core files so that
>>> PHP
>>> looks in the incubator before it looks in core.
>>>
>>> However, I would recommend setting this dynamically at the top of your
>>> bootstrap file instead, and keeping the directory structure of the
>>> framework so you can easily update it.  You may also want multiple
>>> copies
>>> of the framework so you can update one application at a time instead of
>>> all at once.
>>>
>>> Hope that helps,
>>>
>>> -Matt
>>>
>>>    
>>>> Hi,
>>>> thank you for your help..
>>>>
>>>> I have in C:\Programmi\php\ext\incubator
>>>> Zend.php of incubator and all the library of incubator and in
>>>> C:\Programmi\php\ext\core
>>>> Zend.php of core and all the library of core.
>>>>
>>>> The application run without problems if i put:
>>>>
>>>> ".;C:\Programmi\php\ext;C:\Programmi\php\ext\core;C:\Programmi\php\ext\incubator"
>>>>
>>>>
>>>> But I need to use the new classes of incubator... I dont know how to
>>>> use
>>>> this new classes...
>>>>
>>>> I hope that i have explained better my problem...
>>>>
>>>>
>>>> Thank you all for your help.
>>>> Mauro Casula.
>>>>
>>>>
>>>> Abu Hurayrah-2 wrote:
>>>>      
>>>>> Mauro,
>>>>>
>>>>> I think you need to be including the /library/ directory of both the
>>>>> incubator and the core, not just the entire Zend directory or
>>>>> Zend.php.
>>>>>
>>>>> So, for example, if you have the zend framework release in the
>>>>> directory
>>>>> C:\Programmi\zf-release-0.2.0, then you want to include in PHP
>>>>> C:\Programmi\zf-release-0.2.0\library.  Always include the /library/
>>>>> directory.
>>>>>
>>>>> I hope this helps!
>>>>>
>>>>> Mauro Casula wrote:
>>>>>        
>>>>>> I have put in my  php.ini:
>>>>>>
>>>>>> include_path =
>>>>>> ".;C:\Programmi\php\ext;C:\Programmi\php\ext\incubator;C:\Programmi\php\ext\core"
>>>>>>
>>>>>>
>>>>>> inside incubator there in Zend.php of the incubator
>>>>>> inside core Zend.php of core.
>>>>>>
>>>>>> I think there is something that i dont know because when i restart
>>>>>> Apache
>>>>>> and start the application
>>>>>> i get the error that its impossible to found Zend_registry...
>>>>>>
>>>>>> ... what i have to do?
>>>>>>
>>>>>> Regards.
>>>>>>
>>>>>> Mauro Casula.
>>>>>>
>>>>>>
>>>>>> Matthew Weier O wrote:
>>>>>>
>>>>>>          
>>>>>>> -- Mauro Casula <[EMAIL PROTECTED]> wrote
>>>>>>> (on Monday, 13 November 2006, 08:06 AM -0800):
>>>>>>>
>>>>>>>            
>>>>>>>> I have undestand the mechanism you suggest and i'm trying to
>>>>>>>> implement
>>>>>>>> that..
>>>>>>>>
>>>>>>>> But I have a question.
>>>>>>>> I have to write  myself this method you have suggest ?
>>>>>>>>
>>>>>>>>
>>>>>>>>              
>>>>>>>>> $this->getRequest();
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>> Extending the abstract class of Plugin i dont have this method..
>>>>>>>>
>>>>>>>>               
>>>>>>> Again, you need to use the MVC components in the incubator; make
>>>>>>> sure
>>>>>>> that the incubator/library/ path is before the library/ path when
>>>>>>> you
>>>>>>> set the include_path. Zend_Controller_Plugin_Abstract::getRequest()
>>>>>>> exists in the incubator version.
>>>>>>>
>>>>>>> -- 
>>>>>>> Matthew Weier O'Phinney
>>>>>>> PHP Developer            | [EMAIL PROTECTED]
>>>>>>> Zend - The PHP Company   | http://www.zend.com/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>             
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/How-get-Zend_Controller_Dispatcher_Token-from-index.php-tf2621448s16154.html#a7323003
>>>>
>>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>>
>>>>
>>>>       
>>>
>>>     
> 
> 

Reply via email to