[fw-general] Flexibel content within zend framework

2010-03-08 Thread Tom Staals
After reading tons of articles and tuts, im really stuck on howto setup my website with zend framework. The general idea is to create a lightweight cms to handle the rather static parts of the site. The dynamic part is all about job postings. The problem comes that the index page has a couple o

[fw-general] proper way to instantiate a display group without $form->addDisplayGroup

2010-03-08 Thread Guillaume ORIOL
Hi, I am new to i18n and, until now, I was adding display groups to my forms this way: $form->addDisplayGroup( array('field1', 'field2', 'field3'), 'global', array( 'displayGroupClass' => 'My_DisplayGroup', 'legend' =>

[fw-general] Re: should directory structure indicate model relationship?

2010-03-08 Thread tonystamp
Great point, thanks :) -- View this message in context: http://n4.nabble.com/should-directory-structure-indicate-model-relationship-tp1579414p1580035.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Assign custom view helper | Zend_Form

2010-03-08 Thread Laura Dean
You can create a custom element: > $element = $this->createElement('Custom', 'my name'); > And then create a Custom element class: > class My_Form_Element_Custom extends Zend_Form_Element > { > public $helper = 'formCustom'; > } > Note that your view helper should be called formCus

Re: [fw-general] Assign custom view helper | Zend_Form

2010-03-08 Thread Matthew Weier O'Phinney
-- pankraz wrote (on Saturday, 06 March 2010, 04:38 PM -0800): > i am trying to assign a custom view helper: > > public $decoRadio = array( > array ('ViewHelper' => 'CustomViewHeper'), > 'Errors', > array(array('data' => 'HtmlTag'), array('tag'

[fw-general] Flexibel content within zend framework

2010-03-08 Thread Tom Staals
After reading tons of articles and tuts, im really stuck on howto setup my website with zend framework. The general idea is to create a lightweight cms to handle the rather static parts of the site. The dynamic part is all about job postings. The problem comes that the index page has a couple o

[fw-general] Zend_Date

2010-03-08 Thread water
Is there a way to create a Zend_Date value, tell Zend_Date the value it is getting is UTC, and then specify a new time zone and have the time / date adjust accordingly (reading through docs, it looks like no). Or do I have to do this manually? (datetimes are stored with timezone in DB and inten

[fw-general] How to create Multilingual site

2010-03-08 Thread devpravin
Hi Friend I am creating the multilingual site using Zend framework. I have two language 1.English 2.Arabic. To work on this i added $translate = new Zend_Translate('csv', '../language/english.csv','en'); Zend_Registry::set('Zend_Translate', $translate); this code snippet on Bootstrap.

Re: [fw-general] Zend_Date

2010-03-08 Thread Thomas Weidner
Yes this is possible with Zend_Date. Mfg Thomas - Original Message - From: "water" To: "zend general" Sent: Monday, March 08, 2010 3:34 PM Subject: [fw-general] Zend_Date Is there a way to create a Zend_Date value, tell Zend_Date the value it is getting is UTC, and then specify a

RE: [fw-general] How to create Multilingual site

2010-03-08 Thread Danny Fröberg
Hi, Maybe one of these articles can assist you; http://blog.hackix.com/series/working-with-zend_translate-and-poedit/ Especially the one with Plugins & Language Selector. Regards Danny -Original Message- From: devpravin [mailto:pravin.chen...@wwindia.com] Sent: den 8 mars 2010 16:43 To:

[fw-general] Re: Loading of global and module bootstraps with module-specific plugin

2010-03-08 Thread Timido
Hi, I'm into the same issue, how did you get it solved at last ? -- View this message in context: http://n4.nabble.com/Loading-of-global-and-module-bootstraps-with-module-specific-plugin-tp661880p1585023.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Zend_Rest_Route

2010-03-08 Thread Joseph Crawford
Hello Everyone, I have been trying to figure out the best method to accomlish a task and I have tried a Front Controller Plugin, along with extending Routes. I was unable to use the FC Plugin because neither the routeStartup/routeShutdown would work for me. I also am using the Zend_Rest_Route i

Re: [fw-general] Zend_Rest_Route

2010-03-08 Thread Hector Virgen
I think creating a regex route along with modifying the request in route shutdown should do the trick. Have you tried that? -- Hector On Mon, Mar 8, 2010 at 11:29 AM, Joseph Crawford wrote: > > Hello Everyone, > > I have been trying to figure out the best method to accomlish a task and I > have

[fw-general] Re: Zend_Rest_Route

2010-03-08 Thread Joseph Crawford
I should note that in that pasted code the only lines that I have added are lines 32-36 which is why I think there has to be a better method. -- View this message in context: http://n4.nabble.com/Zend-Rest-Route-tp1585038p1585071.html Sent from the Zend Framework mailing list archive at Nabble.c

[fw-general] Re: Zend_Rest_Route

2010-03-08 Thread Joseph Crawford
I did try this with a normal route however I was told that you could not chain rest routes and I could not get it to work with $regRoute->chain($restRoute); $restRoute->chain($regRoute); Do you know how I could get the chaining to work? I need to keep the restfulness as well. Thanks, Joseph Cr

Re: [fw-general] Re: Zend_Rest_Route

2010-03-08 Thread Hector Virgen
Sorry I don't have experience with REST routes or chaining :( -- Hector On Mon, Mar 8, 2010 at 11:43 AM, Joseph Crawford wrote: > > I did try this with a normal route however I was told that you could not > chain rest routes and I could not get it to work with > > $regRoute->chain($restRoute);

[fw-general] Re: Zend_Rest_Route

2010-03-08 Thread Joseph Crawford
As suggested I have tried using a regular route in combination with a FC Plugin and implementing the routeShutdown method. This works and it allows me to do the transformations that I require. However the Zend_Rest_Route for some reason does not work like the standard routes and will not allow m

[fw-general] Re: Zend_Session setId

2010-03-08 Thread unifant
Hi Saša, i had the same problem. I have done it the following way: $("#upload").uploadify({ 'uploader' : 'uploadify.allglyphs.swf', 'script' : 'upload_action_uploadify.php', 'scriptData' : { 'PHPSESSID':'{$session_id}' } ... In the script where i process the images: $sid = $_POST['PHPSE

Re: [fw-general] Zend_Auth::getInstance()->clearIdentity() doesn't seem to log me out?

2010-03-08 Thread Cameron
On Tue, Mar 9, 2010 at 10:49 AM, Jake McGraw wrote: > > > On Mon, Mar 8, 2010 at 8:51 PM, Cameron wrote: > >> Ok, I just tried removing everything except for >> >> $data = $authAdapter->getResultRowObject(null, 'password'); >> $auth->getStorage()->write($data); >> >> all, the $authNamespace stuf

Re: [fw-general] Zend_Auth::getInstance()->clearIdentity() doesn't seem to log me out?

2010-03-08 Thread Jake McGraw
On Tue, Mar 9, 2010 at 12:05 AM, Cameron wrote: > > > On Tue, Mar 9, 2010 at 10:49 AM, Jake McGraw wrote: >> >> >> On Mon, Mar 8, 2010 at 8:51 PM, Cameron wrote: >>> >>> Ok, I just tried removing everything except for >>> >>> $data = $authAdapter->getResultRowObject(null, 'password'); >>> $auth-

Re: [fw-general] Re: Zend_Session setId

2010-03-08 Thread Саша Стаменковић
Thanks, I fixed it like this: I put in bootstrap setting session Id bfore _initSession (session start) and it works fine, bu tI have this code on every request, ionstead having it only in one controller. Also, this is a security issue, because everyone can change uploadify settings on the client (

Re: [fw-general] Zend_Auth::getInstance()->clearIdentity() doesn't seem to log me out?

2010-03-08 Thread Cameron
On Tue, Mar 9, 2010 at 1:28 PM, Jake McGraw wrote: > On Tue, Mar 9, 2010 at 12:05 AM, Cameron wrote: > > > > > > On Tue, Mar 9, 2010 at 10:49 AM, Jake McGraw wrote: > >> > >> > >> On Mon, Mar 8, 2010 at 8:51 PM, Cameron wrote: > >>> > >>> Ok, I just tried removing everything except for > >>> >