Re: [fw-general] Zend_Form : Subforms, dynamic element creation and best practices

2008-07-01 Thread maxarbos
Matthew Weier O'Phinney-3 wrote: The TestingForm.php is built as such: TestForm extends Zend_Form { public function __construct($options=null) { parent::__construct($options); $this-setAttrib('accept-charset', 'UTF-8'); } I'd place the above in setAttrib() call

Re: [fw-general] Zend_Form : Subforms, dynamic element creation and best practices

2008-07-03 Thread maxarbos
Matthew Weier O'Phinney-3 wrote: Matthew Weier O'Phinney-3 wrote: Yes. Create an element for each child, and attach each with a different form element name: foreach ($children as $key = $child) { $form-addElement('text', 'child' . $key, array('value' = $child'));

Re: [fw-general] Is this possible: Zend_SubForm with user added records?

2008-07-07 Thread maxarbos
Bart McLeod wrote: Hi Jamie, 2. Do 'add' and 'submit' need to perform different actions? I managed to use subforms (0-N) to add records. Every time a new record is added by pressing 'save' or [Enter], a new empty subform is added to allow for the addition of a new record.

[fw-general] Zend_Form_Storage ... what is this about

2008-07-08 Thread maxarbos
Hello, I have seen a little info about Zend_Form_Storage. What is the status of this? Thanks. -- View this message in context: http://www.nabble.com/Zend_Form_Storage-...-what-is-this-about-tp18344854p18344854.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread maxarbos
Hello, Is ti possible to run Zend_ACL without the MVC portion? I also need it to work with a pretty much all ajax type site. Any feedback would be great. Thanks. -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-Zend_ACL-without-MVC-tp18385583p18385583.html Sent

Re: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread maxarbos
just a little unclear how to register the classes as resources I guess. thanks. Matthew Weier O'Phinney-3 wrote: -- maxarbos [EMAIL PROTECTED] wrote (on Thursday, 10 July 2008, 09:05 AM -0700): Is ti possible to run Zend_ACL without the MVC portion? I also need it to work with a pretty

Re: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread maxarbos
I feel like I understand but dont seem o get thsi to work. Here is my main page: require_once 'Zend/Acl.php'; $acl=new Zend_Acl(); require_once 'Test.php'; $test = new Test($acl); require_once('Zend/Acl/Role.php'); $acl-addRole(new Zend_Acl_Role('guest')) -addRole(new

RE: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread maxarbos
still getting the same error: denied Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'Test' not found' in /xxx/Zend/Acl.php:297 Stack trace: #0 /xxx/Zend/Acl.php(691): Zend_Acl-get('Test') #1 //admin/Test.php(24): Zend_Acl-isAllowed('guest', 'Test',

RE: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread maxarbos
I think I got it. I needed to change the resource name to caplital 'Test' So I just need to add the check within every method? Seems a bit susceptible to errors. maxarbos wrote: still getting the same error: denied Fatal error: Uncaught exception 'Zend_Acl_Exception' with message

Re: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-15 Thread maxarbos
i have been away the past few days, thank you all for your help. I guess if a whole class is locked out, couldn't I include: if (!$this-acl-isAllowed($this-user, __CLASS__)) { throw new Exception('Access denied'); } in the __construct then if things need

Re: [fw-general] Zend_Form retain select value=0 on invalid submission

2008-07-29 Thread maxarbos
show first, that's why i was listing it first. So I guess the order of the values array options is important on 0/1 values. maxarbos wrote: I have a form that has a select field with two values: 1 and 0. select name=testfield option value=1Yes/option option value=0No/option

Re: [fw-general] Zend_Form retain select value=0 on invalid submission

2008-07-29 Thread maxarbos
of value. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com maxarbos wrote: For a weird reason, I tried rearranging the order of the array of options from array_vals=array('1' = 'Active', '0'='Inactive'); TO: array_vals=array('0' = 'Inactive', '1

[fw-general] Multiple Controller Directories

2008-08-07 Thread maxarbos
Hello, I want to know if it is possible to have multiple controller directories without having to use the module name in the url? What I am looking to do is have sub1.domain.com point to /application/sub1 and sub2.domain.com point to /application/sub2 within the /application dir, there is one

RE: [fw-general] Multiple Controller Directories

2008-08-08 Thread maxarbos
thank you for yoru reply. going through this, it seems as though it will be only using one dir/app rather than checking both. I want all requests to go through /applicaion/commonground and if the controller is not found there, to check in the /application/xxx depending on the subdomain. so when

Re: [fw-general] Subdomains and Zend Framework

2008-08-08 Thread maxarbos
I am trying to do something similar and any advice would be great. I have the following structure /application --/commonground /bootstrap.php /controllers --/AclController.php --/sub1 /controllers --/HelloController.php --/sub2 /controllers --/SecretController.php

[fw-general] Zend_Form retain select value=0 on invalid submission

2008-08-08 Thread maxarbos
I have a form that has a select field with two values: 1 and 0. select name=testfield option value=1Yes/option option value=0No/option /select When I submit the form and it is invalid, this select box does not remember the value of this field. It always defaults to '1'. There is no

[fw-general] Modules and Shared functionality

2008-08-12 Thread maxarbos
hello, I am trying to figure out the best practice for a situation where there will be different modules, controlled by ACL where certain portions of it will be very similar from module to module. ex: site.com/admin site.com/user both of these modules will have functionality to edit the users

Re: [fw-general] Modules and Shared functionality

2008-08-13 Thread maxarbos
any Best Practices suggestions? maxarbos wrote: hello, I am trying to figure out the best practice for a situation where there will be different modules, controlled by ACL where certain portions of it will be very similar from module to module. ex: site.com/admin site.com/user

Re: [fw-general] Modules and Shared functionality

2008-08-13 Thread maxarbos
? :) tfk wrote: On Wed, Aug 13, 2008 at 3:32 PM, maxarbos [EMAIL PROTECTED] wrote: any Best Practices suggestions? maxarbos wrote: hello, I am trying to figure out the best practice for a situation where there will be different modules, controlled by ACL where certain portions

[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

Re: [fw-general] Action Helper

2008-09-30 Thread maxarbos
helper. The direct method then calls addMessage(). Hope that helps. maxarbos wrote: 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

Re: [fw-general] Action Helper

2008-09-30 Thread maxarbos
Oh, i see. No matter how many times I read it, I must have missed 'which will call a specific, default method in the helper' I guess with the method that I have: ' public function direct($method){ return $this-$method(); } ' I could just change it to include a

[fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
Hello, we have a site that is heavily using ajax calls. The layout is to remain constant but just the info that is being called should be the only content refreshing or changing on the page. In each controller we have: public function preDispatch() {

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
. maxarbos wrote: I am not sure how that would work. We are using the ACL to control who can go where, but in order for userA to be able to access www.mysite.com/module1/controller1/action2 through an ajax request, the acl would have to allow access to it anyway. What I need is some check

Re: [fw-general] Ajax and direct access to controller deny

2008-10-10 Thread maxarbos
on postDispatch, checks if the template layout is already loaded and if not bounce out. How would I do that? Ho wdo I check to see if the layout is already loaded? thanks. keith Pope-4 wrote: Sounds like maybe ACL could do that for you?? 2008/10/10 maxarbos [EMAIL PROTECTED]: Hello

Re: [fw-general] How to set name= on form

2008-12-16 Thread maxarbos
Have you gotten any answers on this? I am having the same issue and cannot get the name attribute to be set. I am using 1.5 of the framework. notmessenger wrote: I know I've seen this answer somewhere before on this list, but I cannot find it anywhere (archives or my own copies of the

Re: [fw-general] How to set name= on form

2008-12-16 Thread maxarbos
Thanks, but unfortunately no. That changes the name of the ID to what i want my form name to be, but still does not set a 'name' attribute. Thank you. Themselves wrote: $form-addAttribs(array('name' = 'formname')); ? On Wed, Dec 17, 2008 at 9:24 AM, maxarbos maxar...@yahoo.com wrote

[fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread maxarbos
Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want the values and the visible label of the select box to be the values of the array such as: option value=FirstFirst/option option

Re: [fw-general] Zend Form Select Box, use array values as value=

2008-12-17 Thread maxarbos
That worked like a champ! Thanks. Brenton Alker-3 wrote: maxarbos wrote: Hello, i am building a zend_form that has a select box in it. The values for the select box come from an array such as: array( 'a' = 'First', 'b' = 'Two'); I want the values and the visible label

[fw-general] Zend_Form isXmlHttpRequest and Validation

2008-12-19 Thread maxarbos
Hello, I am trying to submit a zend form, have it run through validation, and then echo back any errors, etc that the validation finds. The form is being pushed into the content area using isXmlHttpRequest check and layout disabled for isXmlHttpRequest requests.

[fw-general] Zend_Form / Zend_File Upload to DB not working

2009-01-27 Thread maxarbos
Hello, I am trying to use Zend_Form to upload a file and then store it in a DB. Something doesnt seem to be working, and would like to know if there is a simple test using MVC structure to see if a file is being uploaded? I have tried a few things, but nothing seems to show the actual file

Re: [fw-general] Zend_Form / Zend_File Upload to DB not working

2009-01-28 Thread maxarbos
Thank you. I am now able to get the file to upload, but now stuck as to how to get it to display within ZF. When I make the call to the code to show the image, I am just getting the characters of the source of the image and not the image itself. I used to do something like this when I was able

[fw-general] Zebd_Form Select Element

2009-01-29 Thread maxarbos
Hello, I am trying to create a select box that ends up lookign like this: option value=val1Top Level/option option value= disabled=disabled/option option value=val2* First Child/option option value=val3* * First Gandchild/option option value= disabled=disabled/option option value=val4* Second

Re: [fw-general] Zebd_Form Select Element

2009-01-30 Thread maxarbos
Is it possible to send HTML to a zend form select element so that I can get this to work? How would you add blank / disabled rows to a list that is dynamically generated? maxarbos wrote: Hello, I am trying to create a select box that ends up lookign like this: option value=val1Top

Re: [fw-general] Zend_Form Select Element

2009-02-19 Thread maxarbos
I guess this is impossible. -- View this message in context: http://www.nabble.com/Zend_Form-Select-Element-tp21735298p22102435.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Connect / Front End for MS Exchange Server

2009-05-05 Thread maxarbos
Is there any interface or component that will allow connection, sync'ing and accessing a MS Exchange server? We are looking for something that would allow full fledged email capability, chat and messaging to then control through the ZF itself. We built a prett good role listing - actions