[fw-general] Zend_Form documentation issue

2009-02-13 Thread Sergei Izvorean
While learning about Zend_Form I used examples from quick start guide. However, when I tested my code I've got an error "Cannot unset string offsets" in Zend_Form_Element. I found how to fix the issue (http://www.nabble.com/Problems-submitting-a-Zend_Form-td20109449.html). Yet, in the documentation

[fw-general] Sending Mail in different languages

2009-02-13 Thread Anees
Hi, I have used the Zend_Mail class to send mails from my site. And Now I have to send mails to users in Arabic and French languages! Is it possible? i have tried this code //Configuring mail $admin_email= "ad...@site.com"; $admin_name = "Stefan";

Re: [fw-general] Issue with nested border containers & content panes in dojo tab containers.

2009-02-13 Thread Mustafa A. Hashmi
On Fri, Feb 13, 2009 at 7:41 PM, Matthew Weier O'Phinney wrote: > -- Mustafa A. Hashmi wrote > (on Friday, 13 February 2009, 07:10 PM +0500): >> On Wed, Feb 4, 2009 at 11:01 AM, Mustafa A. Hashmi >> wrote: >> > On Wed, Feb 4, 2009 at 12:04 AM, Matthew Weier O'Phinney >> > wrote: >> > > -- Must

Re: [fw-general] Zend_Controller_Router_Route_Hostname question NUMBER TWO...

2009-02-13 Thread j5
Heres an example blog.type = "Zend_Controller_Router_Route_Hostname" blog.route = "blog.example.com" blog.defaults.module = "blog" blog.chains.blog-list.type = "Zend_Controller_Router_Route_Regex" blog.chains.blog-list.route = "page/(\d+)" blog.chai

Re: [fw-general] Zend_Amf setClassMap vs _explicitType

2009-02-13 Thread Mark Hage
I'm not sure if this is gonna work, but do you have the RemoteClass alias in you Flash class? for example: package com.marines.officer { [RemoteClass(alias="PictureVO")] public class Picure { } } This works for me in Flex, don't know about Flash. Mark 2009/2/13 Josh Team > So I have

Re: [fw-general] Framework directory structure and include paths

2009-02-13 Thread A.J. Brown
I typically install Zend Framework to /usr/share/php and add /usr/share/php/ZendFramewor-1.7.4/library to my includes path. It works well if you have full access to the machine and have multiple projects which use Zend Framework. On Fri, Feb 13, 2009 at 11:55 AM, PHPScriptor wrote: > > my stru

Re: [fw-general] Framework directory structure and include paths

2009-02-13 Thread PHPScriptor
my structure: /app /cache =>caching stuff /etc =>config.ini etc... /forms /jobs => cronjobs /languages => languages files /models /modules /module1 /controllers /views /helpers /scripts /module2 /controllers /views /helpers

Re: [fw-general] Framework directory structure and include paths

2009-02-13 Thread Jason DeBord
Merci Matthew. I really appreciate the time you spend on this mailing list. Jason DEBORD Limoges, France On Fri, Feb 13, 2009 at 7:25 PM, Matthew Weier O'Phinney wrote: > -- Jason DeBord wrote > (on Friday, 13 February 2009, 07:06 PM +0100): >> Directory Structure >> >> Project >> >> Applic

RE: [fw-general] Framework directory structure and include paths

2009-02-13 Thread Guillaume BABIK
Hi, Personally, i use: /library /Zend => Zend Framework /MyPersonalLibrary /applications /application1 /controllers /forms /views /helpers => Helper_View /layouts

Re: [fw-general] Framework directory structure and include paths

2009-02-13 Thread Matthew Weier O'Phinney
-- Jason DeBord wrote (on Friday, 13 February 2009, 07:06 PM +0100): > Directory Structure > > Project > > Application > controllers > views > models > layouts > forms > > Library > symlink to Zend > > public_html > > So I set my include path to Project/library s

[fw-general] Framework directory structure and include paths

2009-02-13 Thread Jason DeBord
Directory Structure Project Application controllers views models layouts forms Library symlink to Zend public_html So I set my include path to Project/library so The Framework is included. I am thinking that it makes sense to put classes for the database or other

[fw-general] Problems with cookies and translations

2009-02-13 Thread Er Galvao Abbott
Greetings. I'm very new with ZF so please excuse any ignorance on my part. I'm developing a website that must have multiple languages for the user to choose (namely: en_US, and pt_BR). The idea is having icons present in all pages that the user can click, resulting in: 1) Change the default

[fw-general] Zend_Amf setClassMap vs _explicitType

2009-02-13 Thread Josh Team
So I have my AMF set up going.. and I have run over an awkward occurrence, if anyone has insight I would love to hear it. I created my VOs with: class PictureVO { public $_explicitType = 'com.marines.officer.Picture; } This works great outbound.. no problem. Flash sees the PictureVO as com.marin

Re: [fw-general] Writing ActionHelper: Undefined property: $_actionController

2009-02-13 Thread Matthew Weier O'Phinney
-- mvanlamz wrote (on Friday, 13 February 2009, 07:44 AM -0800): > > While _redirect() and _forward() are protected, you'll find that > gotoUrlAndExit() and a bunch of others are public, and can be called from > your action helper. > > (For the record, I vote for making _redirect() and _forward(

Re: [fw-general] Writing ActionHelper: Undefined property: $_actionController

2009-02-13 Thread mvanlamz
While _redirect() and _forward() are protected, you'll find that gotoUrlAndExit() and a bunch of others are public, and can be called from your action helper. (For the record, I vote for making _redirect() and _forward() public too. Why not? Until I noticed some of the public methods, I was about

Re: [fw-general] Optimising Zend_Acl

2009-02-13 Thread Martijn Korse
An other alternative would be to store only the database-values in the cache function loadResources() { // try cache // if not available or ttl expired -> load from database and store in cache } function loadRoles() { [...etc] Saves you space in the cache, deserialization & d

Re: [fw-general] Zend_Acl and serialization

2009-02-13 Thread Martijn Korse
rcastley wrote: > > My ACL implementation already uses a database for storing roles, > resources etc. but on each action these calls are made to the database > and I am wondering how to slim this down. > You can slim it down by cashing the values from the database; for example, using memcache

Re: [fw-general] Issue with nested border containers & content panes in dojo tab containers.

2009-02-13 Thread Matthew Weier O'Phinney
-- Mustafa A. Hashmi wrote (on Friday, 13 February 2009, 07:10 PM +0500): > On Wed, Feb 4, 2009 at 11:01 AM, Mustafa A. Hashmi wrote: > > On Wed, Feb 4, 2009 at 12:04 AM, Matthew Weier O'Phinney > > wrote: > > > -- Mustafa A. Hashmi wrote > > > (on Tuesday, 03 February 2009, 11:58 PM +0500): >

Re: [fw-general] http authentication resolver

2009-02-13 Thread Bryce Lohr
Hi Neil, You are correct in that the current design of the HTTP Auth Resolvers requires the password (or password hash) to be returned to the adapter. The reason the password validation is done in the adapter, instead of in the resolver (which would allow an SQL query to make the necessary co

Re: [fw-general] Db_Table init() public or protected?

2009-02-13 Thread Matthew Weier O'Phinney
-- Jason DeBord wrote (on Friday, 13 February 2009, 09:02 AM +0100): > In the ZF Documentation regarding the Zend_Db_Table_Abstract, the > instructions regarding init() state: > > class Bugs extends Zend_Db_Table_Abstract > { > protected $_observer; > > protected function init() > {

Re: [fw-general] Issue with nested border containers & content panes in dojo tab containers.

2009-02-13 Thread Mustafa A. Hashmi
On Wed, Feb 4, 2009 at 11:01 AM, Mustafa A. Hashmi wrote: > On Wed, Feb 4, 2009 at 12:04 AM, Matthew Weier O'Phinney > wrote: >> -- Mustafa A. Hashmi wrote >> (on Tuesday, 03 February 2009, 11:58 PM +0500): >>> I seem to have hit a strange issue with content panes in tab >>> containers. To ensur

Re: [fw-general] Another Zend_paginator Question

2009-02-13 Thread Deepak Shrestha
On Fri, Feb 13, 2009 at 2:54 PM, Deepak Shrestha wrote: > Let me explain a bit so that it will be clear about > 1. what I am trying to do > 2. where I am doing wrong and > 3. where I need to fill up the missing pieces. > > > My front page is where all the records are shown so I wanted to use > the

Re: [fw-general] findDependentRowset Class not found in file

2009-02-13 Thread HenryG
Thanks Marcello, it worked! I almost can't believe it was that simple. Many thanks for your fantastic support. Henry Marcello Duarte wrote: > > You are right, it's simple fix. Just make sure you add your models path to > your include_path: > > set_include_path(get_include_path() . PATH_SEPA

Re: [fw-general] findDependentRowset Class not found in file

2009-02-13 Thread Marcello Duarte
You are right, it's simple fix. Just make sure you add your models path to your include_path: set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH . DIRECTORY_SEPARATOR . 'models'); Should do the trick. HenryG wrote: > > Thanks for the quick reply, > > It's pretty much as

Re: [fw-general] findDependentRowset Class not found in file

2009-02-13 Thread HenryG
Thanks for the quick reply, It's pretty much as per the GuestBook application, index.php sets up the include path and Zend_Loader. The boot strap looks like this: defined('APPLICATION_PATH') or define('APPLICATION_PATH', dirname(__FILE__)); $frontController = Zend_Controller_Front::getInst

Re: [fw-general] findDependentRowset Class not found in file

2009-02-13 Thread Marcello Duarte
Hi Henry, Seems to me you have a problem with autoloading. How are you including the models path in the bootstrap? HenryG wrote: > > Hi all, > > I hope this is a really easy one. I've just started using > findDependentRowset() but I get the following exception when trying to use > it. > >

[fw-general] findDependentRowset Class not found in file

2009-02-13 Thread HenryG
Hi all, I hope this is a really easy one. I've just started using findDependentRowset() but I get the following exception when trying to use it. If I call $programmes = $centre1->findDependentRowset('DbTable_Programme'); this happens: Message: File "DbTable/Programme.php" does not exist or clas

[fw-general] Preserving hard return in textarea

2009-02-13 Thread Deepak Shrestha
Hi How do I preserve the hard return (CR CR/LF) entered in textarea in zend_form? Currently my filter for textarea is "StringTrim" and "NotEmpty". I thought I am getting this because $this->escape is used in my view script. I tried removing it but I am still getting the same output (everything in

Re: [fw-general] Objects Availability

2009-02-13 Thread Giorgio Sironi
2009/2/13 Kostyantyn Shakhov > What's the best way to make objects available "globally"? I mean > available in the following: > > 1) In action controllers; > 2) In Forms; > 3) In Views; > If an object has to be accessed by all those classes, probably you should review your design. -- Giorgio S

[fw-general] Db_Table init() public or protected?

2009-02-13 Thread Jason DeBord
In the ZF Documentation regarding the Zend_Db_Table_Abstract, the instructions regarding init() state: class Bugs extends Zend_Db_Table_Abstract { protected $_observer; protected function init() { $this->_observer = new MyObserverClass(); } However when I use "protected"