Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread prado
Thanks Gerard I have got that working what you said below. I have got a module that points to a sub-domain via htaccess. But this is all happening on my WAMP test server and I also created a sub-domain in the host file inside WIndows. But the web hosting company's production server (plesk)

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread drm
Hi, prado wrote: But the web hosting company's production server (plesk) also creates the folders with all that standard public_html folder and others once I create a sub-domain. Now I don't want that to happen, I want the sub-domain to exist but without its physical folders. I will be asking

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread prado
Thanks Gerard for your help again. I don't have a VPS account, it is just one of those standard shared hosting service. I am using a local company and I can get in touch with the domain manager who is helpful. I know that is my last option to use. thanks anyway! cheers Pradosh drm-4 wrote:

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread Daniel Latter
Plesk doesnt support wildcard domains. A possible work around is using the same root dir for all subdomains. Thanks Daniel 2009/12/10 prado prados...@hotmail.com: Thanks Gerard for your help again. I don't have a VPS account, it is just one of those standard shared hosting service. I am

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread prado
same root dir for all subdomains? could you clarify further? thanks Pradosh Daniel Latter wrote: Plesk doesnt support wildcard domains. A possible work around is using the same root dir for all subdomains. Thanks Daniel 2009/12/10 prado prados...@hotmail.com: Thanks Gerard

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread Daniel Latter
Well I use plesk and ZF. I have many subdomains running from a single ZF app. Now I cant have wilcard domains which means I will need a subfolder for each domain - this will become unwieldly, so I have a single sub-domain root dir and I just use this for each new subdomain I create. All the dir

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread prado
Unlike cpanel Plesk creates a separate account with all its httpdocs etc. so you are saying that you create one sub-domain and control all other sub domains via it. So does your index.php direct to the bootstrap/application.php on the main domain? I have a module www.example.com/blog which I

Re: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-10 Thread till
On Wed, Nov 25, 2009 at 9:52 PM, swilhelm st...@studio831.com wrote: Prompted by Fozzyuw's latest post, I will approach the issue from a different tack. I am looking open source projects that exemplify the best practice use of the Zend Framework and its advanced features.  Ideally these

Re: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-10 Thread Thorsten Suckow-Homberg
Just to quickly throw in my Open Source project: conjoon, a personal information manager build upon Ext JS and Zend Framework. More information here: http://www.conjoon.org It runs on ZF 1.9.4 - the ContextSwitch helper was a life saver when working with JSON encoded responses. There are

Re: [fw-general] sharing zend framework inside the main domain from the subdoamin

2009-12-10 Thread Daniel Latter
*Unlike cpanel Plesk creates a separate account with all its httpdocs etc. so you are saying that you create one sub-domain and control all other sub domains via it.* I create the subdomain as a sub-folder as cpanel gives you two options, I use Subdomain on subfolder option. The only small snag

Re: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-10 Thread Matthew Weier O'Phinney
-- swilhelm st...@studio831.com wrote (on Wednesday, 09 December 2009, 08:24 PM -0800): Any word from Forest regarding ZF core component use in current release and where find the 2.0 repository? If you're talking the ZF 2.0 repository, it hasn't been created yet. ;) wllm wrote: From

[fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Jason Austin
I am trying to use the redirector action helper to call gotoRoute. The page I need to go to is something like http://mywebsite.com/blog/documentation/tags/#add which would take me to the add anchor in the tags page. To go to that URL, my code is: $this-_helper-redirector-gotoRoute(array('module'

Re: [fw-general] ZF Open Source Project: Example of Best Practices?

2009-12-10 Thread Juan Felipe Alvarez Saldarriaga
wow, pretty nice :) On Thu, Dec 10, 2009 at 7:12 AM, Thorsten Suckow-Homberg t...@siteartwork.de wrote: Just to quickly throw in my Open Source project: conjoon, a personal information manager build upon Ext JS and Zend Framework. More information here: http://www.conjoon.org It runs on ZF

[fw-general] associative array in url

2009-12-10 Thread WebCorp s . r . o . | Jan Juříček
Hi, Is there a way to pass an associative array via URL to the request object? This /controller/action/arr/foo/arr/bar would be converted to $arr == array(foo, bar); and I would like to pass something like /controller/action/arr[foo1]/bar/arr[foo2]/bar so I would have $arr == array (foo1 =

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Hector Virgen
The gotoRoute() method doesn't support hashes, but you can accomplish this by using the url action helper to construct the url based on your route, and then concatenate your hash to it. Then call the redirector's gotoUrl method: $url = $this-_helper-url-url(array('module' = 'blog', 'controller' =

[fw-general] CLI/CRON/BATCH

2009-12-10 Thread Jaco Olivier
Hi Everyone, I have been looking far and wide through every possible search engine and cannot find some template that I can use to write a CRON/BATCH/CLI process that uses the Zend Framework. Everyone has a different opinion on what is correct. *Ok, I can manage to hack something together,

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Fred Jiles
Funny that you posted this because I have the same issue I was about to tackle with a comments anchor. I hope you get a good response. I will let you know if I find out anything. On Wed, Dec 9, 2009 at 4:51 PM, Jason Austin jason_aus...@ncsu.edu wrote: I am trying to use the redirector action

Re: [fw-general] associative array in url

2009-12-10 Thread Hector Virgen
You can do this using a good ol' query string: /controller/action?sort[column1]=descsort[column2]=asc You should be able to access those using the request object: $sort = $this-_request-getParam('sort'); -- Hector 2009/12/10 WebCorp s.r.o. | Jan Juříček jan.juri...@webcorp.cz Hi, Is

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Fred Jiles
Maybe one could add a target to the gotoRoute method in the future. I can't believe that people don't need to do something like this often. Similar to $url = $this-_helper-url-url(array('module' = 'blog', 'controller' = 'documentation', 'action' = 'tags', 'anchor' ='comments')); On Thu, Dec

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Hector Virgen
It should be possible to extend the redirector helper to create your own that accepts a hash as the 5th parameter. Since the action helper broker uses a LIFO stack, you can even use the same helper name redirector. -- Hector On Thu, Dec 10, 2009 at 10:06 AM, Fred Jiles fredji...@gmail.com

Re: [fw-general] associative array in url

2009-12-10 Thread Mark Steudel
You could also serialize the array, base64_encode it, and then pass it as a single parameter to your controller. Then reverse the process. Mark 2009/12/10 WebCorp s.r.o. | Jan Juříček jan.juri...@webcorp.cz: Hi, Is there a way to pass an associative array via URL to the request object?

[fw-general] Zend_Feed - sending proper headers

2009-12-10 Thread takeshin
How to send feeds properly? I want browser read whole file, only if it has new entries. I read data from the database. Limit result to 15 items. Then create an array and pass it to the Zend_Feed. Shall I cache the above steps with Zend_Cache + very long lifetime, and use a cache tag, clean

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Jason Austin
Thanks guys. The most straight forward way was using the URL helper, adding the hash to the end of the URL, then using gotoUrl(). One caveat was that I had to do the following to not get the baseUrl() to be added twice:

Re: [fw-general] Zend_Feed - sending proper headers

2009-12-10 Thread Hector Virgen
You'll want to use a mix of server-side caching and client-side caching. The server-side caching can be done with Zend_Cache. That way if two separate users try to access the feed, your application only needs to build it once. For client-side caching, you'll need to analyze the request and send

[fw-general] Different module for a different domain?

2009-12-10 Thread Philip G
Is there any simple way of using a different module when accessing a site through specific domain? At this time, I have two modules setup and running: front and admin. front is default. admin is through /admin/. Now I want to add a third called something like ssl that will load for any access to

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Hector Virgen
I can see this being useful to many people, too. Maybe instead of a 5th parameter, there can be a setHash() method. So usage would be like this: $redirector = $this-_helper-redirector; $redirector-gotoRoute(/* ... */); *$redirector-setHash('add');* $redirector-redirectAndExit(); -- Hector On

Re: [fw-general] Different module for a different domain?

2009-12-10 Thread Hector Virgen
Have you tried creating a Hostname route? http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname -- Hector On Thu, Dec 10, 2009 at 1:28 PM, Philip G g...@gpcentre.net wrote: Is there any simple way of using a different module when accessing a

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Hector Virgen
That's a good point. Making it a reserved word would make a lot of sense, but I'd be afraid of breaking sites that already use anchor (like maybe an Anchors R Us website that sells anchors for ships?) Hash may also already be in use by some sites. But I really like the idea, maybe you should open

Re: [fw-general] Zend_Navigation in application.ini in ralphschindler's webninar

2009-12-10 Thread Fozzyuw
This thread is a few months old, but I'd rather put it here than start a new one, in case someone else stumbles across it. While I'm good on using an XML file, how would I make an INI if I wanted to use an INI file instead of XML? Lets say I have this simple XML file, what would the INI file

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread takeshin
Jason Austin wrote: Hope this helps. I smell a feature request for adding hashes to routes url helpers :) +1 -- takeshin -- View this message in context: http://n4.nabble.com/Adding-a-to-a-URL-using-gotoRoute-tp957210p960642.html Sent from the Zend Framework mailing list

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Daniel Latter
+1 On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote: Jason Austin wrote: Hope this helps. I smell a feature request for adding hashes to routes url helpers :) +1 -- takeshin -- View this message in context:

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Cameron
isn't the use of named anchors deprecated? On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter dan.lat...@gmail.com wrote: +1 On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote: Jason Austin wrote: Hope this helps. I smell a feature request for adding hashes to routes url

Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Hector Virgen
The name attribute is deprecated in XHTML, in favor of the id attribute (which behaves like the old name attribute did). -- Hector On Thu, Dec 10, 2009 at 5:17 PM, Cameron themsel...@gmail.com wrote: isn't the use of named anchors deprecated? On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter