[fw-general] Calling one controller from another

2008-09-29 Thread Jaka Jančar
Hi! How can I call one controller's action from another controller? I don't want to add it to the action stack, but instead obtain the return value immediately. Instantiating a controller seems to mess up my action handlers (ViewRenderer especially, I think). Before I start looking into th

Re: [fw-general] use Zend_Controller without MVC?

2008-09-29 Thread ask josephsen
The point is; a big part of my site (the whole backend) does not use the MVC because it is old and would take a lot of time to port. And I would really like to reuse the functionality I built in one of the controllers (from my MVC-frontend) - in the non-Zend-MVC-part of my site. Sure I can copy th

Re: [fw-general] Form validation with Zend_Dojo

2008-09-29 Thread Matthew Weier O'Phinney
-- Jan Smit <[EMAIL PROTECTED]> wrote (on Tuesday, 30 September 2008, 01:22 AM +0200): > I tried to create a form with this code: > > $oEmail = new Zend_Dojo_Form_Element_ValidationTextBox('email'); > $oEmail->addValidator('EmailAddress') > ->setRequired(true) > ->setLabel('Your e-

[fw-general] Form validation with Zend_Dojo

2008-09-29 Thread Jan Smit
Good Day, I tried to create a form with this code: $oEmail = new Zend_Dojo_Form_Element_ValidationTextBox('email'); $oEmail->addValidator('EmailAddress') ->setRequired(true) ->setLabel('Your e-mailaddress:') ->setAttribs(array('rows' => '10', 'cols' => '40')) ->se

Re: [fw-general] Looking for a complete Complete Zend_Paginator example

2008-09-29 Thread Matthew Ratzloff
http://framework.zend.com/manual/en/zend.paginator.html -Matt On Mon, Sep 29, 2008 at 1:53 PM, 411161 <[EMAIL PROTECTED]> wrote: > > I have it working, but I am not sure how to create links for next, last, > first, previous, numbers, etc.. I am also not sure how to handle links in > my > control

[fw-general] StopWords with Zend_Search_Lucene

2008-09-29 Thread Hector Virgen
What should the array of stop words be set up like when being passed to Zend_Search_Lucene_Analysis_TokenFilter_StopWords? The online manual says to use an array like this: $stopWords = array('a', 'an', 'at', 'the', 'and', 'or', 'is', 'am'); http://framework.zend.com/manual/en/zend.search.lucene.

[fw-general] Looking for examples, Zend_Soap

2008-09-29 Thread Terre Porter
Hey all, I'm looking for some usage examples of the Zend_Soap component. I'm creating wsdl using NuSOAP currently but I'd like to compare it with what Zend_Soap creates. I'd like to fetch a record from a database and return the results - a simple db query. I made a simple helloworld using Zend

[fw-general] Looking for a complete Complete Zend_Paginator example

2008-09-29 Thread 411161
I have it working, but I am not sure how to create links for next, last, first, previous, numbers, etc.. I am also not sure how to handle links in my controller. This is what I have so far." controller: public function paginateAction() { $sql = 'SELECT * FROM runz_miles

[fw-general] Action Helper

2008-09-29 Thread maxarbos
Hello, I would like to pass a value to to a specific property inside of a helper when I use it. On page: http://framework.zend.com/manual/en/zend.controller.actionhelpers.html In the documentation is says this: #Finally, most action helpers implement the method direct() which will call a speci

Re: [fw-general] Zend_Date

2008-09-29 Thread Thomas Weidner
How about simple date-maths like learned in old school ? Set the week, then set the weekday... $date->setWeek(40)->setWeekday('Monday'); for example. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Matthias Buesing" <

Re: [fw-general] Zend_Dom query

2008-09-29 Thread Jason Webster
I'd recommend making the "plus" lazy... ie: '/<\?.+?\?>/' That way it will stop matching at the first time it sees a "?>" other than the last time, which could produce unexpected results. Waigani wrote: worked out reg exp (I'm a newbie to reg exp) '/<\?.\?>/' should be '/<\?.+\?>/' Waigan

[fw-general] File Uploading and Manipulation Plugin

2008-09-29 Thread Johan Nilsson
Hello, I try to send this again cause it looks like the first email never was received. I have created a plugin[1] that allows at least for me for a bit easier file uploading, manipulation and control of uploaded files that is attached to a database. It is heavily inspired from the UploadColumn[

[fw-general] use Zend_Controller without MVC?

2008-09-29 Thread ask josephsen
Hi I've got the MVC fired up and running, but from som special case I'd like to use some of the actions in a controller without the whole MVC. So I hope it is possible to instantiate the Controller and call an action, does anyone know how? I've got the following code so far: $front = Zend_Cont

[fw-general] Zend_Date

2008-09-29 Thread Matthias Buesing
Hello, i have a question about Zend_Date. Is it possible to calculate the first day (Monday) of a specific Week in a Year? For example: I want to find out the date of the Monday from Calendarweek 40 in 2008. (It has to be 29.09.08) Greets Matthias Buesing

Re: [fw-general] Dojo BorderContainer Help

2008-09-29 Thread Graham Anderson
On Friday 26 September 2008 17:02:12 Panman wrote: > Matthew Weier O'Phinney-3 wrote: > > Yep -- I use it in my pastebin demo: > > > > http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz > > > > One thing to note: BorderContainer and doctypes don't play well together > > in most case

Re: [fw-general] Zend_Dom query

2008-09-29 Thread Waigani
worked out reg exp (I'm a newbie to reg exp) '/<\?.\?>/' should be '/<\?.+\?>/' Waigani wrote: > > no luck I get a "DOMXPath::query() [function.DOMXPath-query]: Invalid > expression in …" . Also I'm trying to grab the xml declaration with a reg > - as there has been no feed back on grabbing i

Re: [fw-general] Smarty Poll Question

2008-09-29 Thread Karol Grecki
Rendering views is usually not a bottleneck in any application. Even if Smarty is slow, it should still account for a just a fraction of total request time. I'm not big on Smarty so normally I wouldn't hold you back, but I think your intentions are misplaced. Performance is the last thing I wou