Re: [fw-general] Sharing controller plugin results with the controller

2009-02-20 Thread Cristian Bichis
Unless you have other ideea you could use registry for storing ACL. -- Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com Hi, I'm in the process of building my acl system. I intend to build my acl dynamically in a controller plugin, and th

Re: [fw-general] How to check the SQL string created by Zend_Db_Select?

2009-02-20 Thread Deepak
On Sat, Feb 21, 2009 at 2:00 PM, Eric Coleman wrote: > typecast it to a string.. > > Zend_Debug::dump((string) $select); > echo $select; > var_dump((string) $select); > > It's magic __toString() will compile the sql when the object is used > as a string. > Thanks! Great Tip. something new learne

Re: [fw-general] How to check the SQL string created by Zend_Db_Select?

2009-02-20 Thread Eric Coleman
typecast it to a string.. Zend_Debug::dump((string) $select); echo $select; var_dump((string) $select); It's magic __toString() will compile the sql when the object is used as a string. On Sat, Feb 21, 2009 at 12:34 AM, Deepak Shrestha wrote: > Hi, > > How can we check the SQL string created by

[fw-general] Any success getting breakpoints to work in NetBeans IDE 6.5 ?

2009-02-20 Thread swilhelm
I have been using the NetBeans IDE 6.5 with the PHP plugin with my current ZF-based project. I like many of the features, but I have not yet been able to get Debugging with xdebug, specifically setting breakpoints, to work. Anyone had success? I am running NetBeans 6.5, Mac OS X 10.5.6, PHP 5.

[fw-general] How to check the SQL string created by Zend_Db_Select?

2009-02-20 Thread Deepak Shrestha
Hi, How can we check the SQL string created by select? for example: given this $select->where ( ); $select->orwhere ( ); $select->order ( ); I want to check the complete SQL statement it has created Zend_Debug::Dump($select) doesn't provide what I wanted to know. Thanks --

RE: [fw-general] Child rows get deleted but Parent does not -- corrected

2009-02-20 Thread Vibhor Singh
Hi, I got this thing corrected. The function delete($id) from the model should be removed. Instead, the statements inside this function should be written in the corresponding controller. e.g class ContestsController extends Zend_Controller_Action { function deleteAction() {

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread till
On Sat, Feb 21, 2009 at 12:48 AM, Jon Lebensold wrote: > First I'd like to congratulate the Zend team for putting this out and making > a CE version! I need support for vhosts for development since I usually have > at least 3-4 ZF projects that I'm doing simultaneously. Is there an easy way > to a

Re: [fw-general] Change output charset encoding (Zend_View output filter)

2009-02-20 Thread Luiz A Brandao Jr
It would be the simpler solution if I had access to the pop-up page but in this case it's an external site. On Fri, Feb 20, 2009 at 8:43 PM, Jason Webster wrote: > Assuming that the pop-up page is either a new browser window or > modal-iframe-type-thing, > you can try setting the Content-type via

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Jon Lebensold
First I'd like to congratulate the Zend team for putting this out and making a CE version! I need support for vhosts for development since I usually have at least 3-4 ZF projects that I'm doing simultaneously. Is there an easy way to achieve this yet? Thanks! -- Jon On Fri, Feb 20, 2009 at 6:39 P

Re: [fw-general] Change output charset encoding (Zend_View output filter)

2009-02-20 Thread Jason Webster
Assuming that the pop-up page is either a new browser window or modal-iframe-type-thing, you can try setting the Content-type via a meta/http-equiv tag in the head of the document being served: This may be the simpler solution. On 20/02/2009 2:57 PM, Luiz A Brandao Jr wrote: Hello, I'm dev

RE: [fw-general] Zend Server & ZF

2009-02-20 Thread Wil Sinclair
Just like every technology- including Zend Framework itself- Zend Server won’t be for everyone. If you prefer other stacks- hopefully after trying Zend Server- ZF will still run well as long as you have the necessary extensions, PHP version, etc. I personally like Server a lot; it’s hard for me

[fw-general] set default context in bootstrap

2009-02-20 Thread Ralikwen
Hi, I am using ExtJS as my interface so almost all of my actions could have AjaxContext returning json. How could I configure my bootstrap file so that AjaxContext/Json would be the default for all my actions and they would all use the same 'ajax.phtml' file as view? Thanks for the help. SWK --

[fw-general] Change output charset encoding (Zend_View output filter)

2009-02-20 Thread Luiz A Brandao Jr
Hello, I'm developing a site using UTF-8 but I have to pop-up a page that seems to be using ISO-8859-1. This pop-up page doesn't set the charset in its HTML headers and because of that it's not being properly displayed within Firefox. It seems that Firefox is using the same encoding of the parent

Re: [fw-general] Multiselect selected values

2009-02-20 Thread Joó Ádám
> Passing an array of values to setValue() should work. Yeah, and it works just fine, thuogh I wasn't aware of that because I had to check the HTML source to see it: Firefox for some reason doesn't display the selection when it is under my .lc (localhost, for development) TLD… Thank you, Ádám

Re: [fw-general] Multiselect selected values

2009-02-20 Thread Matthew Weier O'Phinney
-- Joó Ádám wrote (on Friday, 20 February 2009, 07:08 PM +0100): > How can I set the selected values in a multiselect element? I tried to > call setValue() multiple times and also passing an array to it, but > none of them worked. Passing an array of values to setValue() should work. The values i

[fw-general] Multiselect selected values

2009-02-20 Thread Joó Ádám
Hi, How can I set the selected values in a multiselect element? I tried to call setValue() multiple times and also passing an array to it, but none of them worked. Thanks, Ádám

Re: [fw-general] Fetch data from several Databases with Zend_Db_Table_Abstract

2009-02-20 Thread william0275
debussy007 wrote: > > Hi, > > I am using classes extending the Zend_Db_Table_Abstract class. > The Zend_Db_Table_Abstract will use the default adapter to fetch data. > > When I need to fetch data from one DB and then another, I don't know how > to handle it. > I would have, according to the

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Joshua Beall
Lucas Corbeaux wrote: > > Really, really interesting... > > Will Zend Server (not CE) replace the actual Zend Platform with his > caching and monitoring features? > At the devzone article, Eli White from Zend says in the comments (in response to a question in the same vein as yours): Zend S

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Joshua Beall
Cristian Bichis-3 wrote: > > Ok, > > So basically what's more than a classic tool like Wamp or VertrigoServ ? I assume by Wamp you mean WampServer. WampServer bills themselves as a development tool, "WampServer is a Windows web development environment." (see http://www.wampserver.com/en/prese

[fw-general] Prepending a given /module/controller/action to the "actionstack" only when needed

2009-02-20 Thread Aspra Flavius Adrian
Hello, How could I process an action before anything else, including the FC's current request, from within my subclassed zend_controller_action? Like, supposing I'm creating a tabbed interface (which I'm actually doing, with dojo), and the current action would be /module2/index/index, how to prepe

Re: [fw-general] Child rows get deleted but Parent does not

2009-02-20 Thread PHPScriptor
try to call the delete function in your model something else, like deletebyid($id)... Vibhor Singh-2 wrote: > > Hi all, > > I have implemented a one-to-many relationship between 2 tables (contests, > contest_winners) > > One contest can have many contest_winners > > The problem is that when

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Matthew Weier O'Phinney
-- Joshua Beall wrote (on Friday, 20 February 2009, 06:50 AM -0800): > Christopher Östlund wrote: > > I don't really see the benefits compared to "the regular" way. > > Ease of use. Instead of manually installing a webserver and/or configuring > your webserver to PHP, and then having to manually

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Cristian Bichis
Ok, So basically what's more than a classic tool like Wamp or VertrigoServ ? Christopher Östlund wrote: I don't really see the benefits compared to "the regular" way. Ease of use. Instead of manually installing a webserver and/or configuring your webserver to PHP, and then having to

Re: [fw-general] Zend Server & ZF

2009-02-20 Thread Joshua Beall
Christopher Östlund wrote: > > I don't really see the benefits compared to "the regular" way. Ease of use. Instead of manually installing a webserver and/or configuring your webserver to PHP, and then having to manually update PHP when security issues come out, you can do it all through the Ze

[fw-general] Child rows get deleted but Parent does not

2009-02-20 Thread Vibhor Singh
Hi all, I have implemented a one-to-many relationship between 2 tables (contests, contest_winners) One contest can have many contest_winners The problem is that when I delete a contest, the child records get deleted but the parent record does not. It gives the following error: Fatal er

[fw-general] Does this list filter and block certain mails?

2009-02-20 Thread Colin Guthrie
Hi, Just wondering why some of my messages never seem to reach this list. I do use Gmane, so the problem could be there, but the list has consistently dropped a message I've tried to send three times now while other messages (like this one) and replies seem to get through fine. I don't get a

[fw-general] Re: Zend View Limitations

2009-02-20 Thread Colin Guthrie
'Twas brillig, and Elvin Şiriyev at 20/02/09 12:13 did gyre and gimble: Hi, i want users to change their profiles view (.phtml) script. but i don't want user can write $_SESSION['user_id'] = 1; how can i limit like that functions on view script ? Zend_View view scripts are processed as PHP an

[fw-general] Zend View Limitations

2009-02-20 Thread Elvin Şiriyev
Hi, i want users to change their profiles view (.phtml) script. but i don't want user can write $_SESSION['user_id'] = 1; how can i limit like that functions on view script ?

[fw-general] Sharing controller plugin results with the controller

2009-02-20 Thread sinkingfish
Hi, I'm in the process of building my acl system. I intend to build my acl dynamically in a controller plugin, and the store the acl for use in the controllers. I want to store the acl so that I can dynamically build a menu depending on what privileges the particular user may have. How do I sha

Re: [fw-general] Fetch data from several Databases with Zend_Db_Table_Abstract

2009-02-20 Thread debussy007
Need to prefix the table name by the database in the protected field $_name of your Zend_Db_Table_Abstract child class. debussy007 wrote: > > Hi, > > I am using classes extending the Zend_Db_Table_Abstract class. > The Zend_Db_Table_Abstract will use the default adapter to fetch data. > > Wh

[fw-general] Fetch data from several Databases with Zend_Db_Table_Abstract

2009-02-20 Thread debussy007
Hi, I am using classes extending the Zend_Db_Table_Abstract class. The Zend_Db_Table_Abstract will use the default adapter to fetch data. When I need to fetch data from one DB and then another, I don't know how to handle it. I would have, according to the API, to change of adapter, which implie

Re: [fw-general] Quick Question

2009-02-20 Thread Brenton Alker
dele454 wrote: > Hi, > > I have this issue that's been lingering in my codes. Whenever i use the > Zend_Mail or Zend_Captcha or any component that generates some kind of > resource, i always get such resource twice. In context, if i use the > Zend_Mail to send out mails - will recieve the same co

Re: [fw-general] Quick Question

2009-02-20 Thread dele454
Thanks Colin. But in my case i dont have a button linking directly to the component. The typical scenerio is, you submit the form, my controller processes it, and at the end sends all the values via email. For captcha, it render with the page loading. So there isnt any direct user action to the c

[fw-general] Re: Quick Question

2009-02-20 Thread Colin Guthrie
'Twas brillig, and dele454 at 20/02/09 10:22 did gyre and gimble: Thanks Colin, I am going to be looking into this over the weekend. And let you know the outcome on your suggestions. Thanks a mil. Will keep you posted. No worries. Other things that can cause this (but not specifically ZF bas

Re: [fw-general] Quick Question

2009-02-20 Thread dele454
Thanks Colin, I am going to be looking into this over the weekend. And let you know the outcome on your suggestions. Thanks a mil. Will keep you posted. Colin Guthrie-6 wrote: > > 'Twas brillig, and dele454 at 20/02/09 07:34 did gyre and gimble: >> Hi, >> >> I have this issue that's been li

[fw-general] Re: Quick Question

2009-02-20 Thread Colin Guthrie
'Twas brillig, and dele454 at 20/02/09 07:34 did gyre and gimble: Hi, I have this issue that's been lingering in my codes. Whenever i use the Zend_Mail or Zend_Captcha or any component that generates some kind of resource, i always get such resource twice. In context, if i use the Zend_Mail to

[fw-general] Re: SECURITY ADVISORY

2009-02-20 Thread Colin Guthrie
'Twas brillig, and GeorgeNLog at 20/02/09 09:14 did gyre and gimble: In other hand, I'm reading about LFI but don't understand where to fit this into a situation where a user can set the script path. Could you explain a real scenario where the user provides this (the script path where he wants to

Re: [fw-general] Zend_Form and elements chain validation

2009-02-20 Thread Thomas VEQUAUD
I have a problem with the use of my own validator... Actually, I'd like to know if validators are only triggered when a value is set. I explain why this question. You can see a screenshotof 4 tests made on a form. They're a

Re: [fw-general] SECURITY ADVISORY

2009-02-20 Thread GeorgeNLog
Hello, I've got to put the flag (to "false") into bootstrap because I've a lot of forms with " array('viewScript' => '../helpers/edit.phtml'," and I'm in a hurry to deliver the app to production stage. I'm sure this is a bad practice (? or can I leave it so...). In other hand, I'm reading about