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
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'));
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.
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.
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
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
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
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',
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
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
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
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
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
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
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
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
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
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
? :)
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
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
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
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
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() {
.
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
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
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
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
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
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
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.
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
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
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
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
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.
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
36 matches
Mail list logo