[fw-general] Zend_Db_Table_Row: "underscore_words" to "camelCaps" conversion

2007-03-27 Thread Ivan Ruiz Gallego
Hello, From the manual (http://framework.zend.com/manual/en/zend.db.table.row.html): "Next, retrieve one record from the database using Zend_Db_Table::find() with a single key, or by using Zend_Db_Table::fetchRow(). The returned result will be a Zend_Db_Table_Row object where each property in

Re: [fw-general] Zend_Validate

2007-03-27 Thread Guillaume Millet
Hi Alex, If you're trying to validate data like your name using Zend_Validate_Alpha, you may want to try and set PHP's locale to German using setlocale() if it's not already done. Regards, Guillaume Lx a écrit : Simon R Jones schrieb: Hi Alexander, Some domain names have been set up to

Re: [fw-general] Problem connecting ZF 0.9.1 with MySQL

2007-03-27 Thread Peter Hodge
--- Wojtek Andruszkiewicz <[EMAIL PROTECTED]> wrote: > > Hello, > i'm using ZF version 0.9.1 and i have problems with connect to mysql > database > my code is: > > > $params = array('host' => '', > 'username' => 'xxx', > 'password' => 'xxx', > 'dbname' => 'xxx'); > $db = Zend_Db

RE: [fw-general] RE: Problem connecting ZF 0.9.1 with MySQL

2007-03-27 Thread Bill Karwin
> -Original Message- > From: Wojtek Andruszkiewicz [mailto:[EMAIL PROTECTED] > Fatal error: Call to a member function execute() on a non-object in > /www/zend/lib/Zend/Db/Adapter/Abstract.php on line 153 > > so, the connection, and the query seems to be ok. > PDO library probably is instal

[fw-general] RE: Problem connecting ZF 0.9.1 with MySQL

2007-03-27 Thread Wojtek Andruszkiewicz
Now i have something like this: 'xxx', 'username' => 'xxx', 'password' => 'xxx', 'dbname' => 'xxx'); mysql_connect($params['host'], $params['username'], $params['password']); mysql_select_db($params['dbname']); $sql=mysql_query("SELECT * FROM tblmieszkania"); echo mysql

RE: [fw-general] Problem connecting ZF 0.9.1 with MySQL

2007-03-27 Thread Bill Karwin
Possibilities include that the connection is failing for some reason (database not reachable, wrong user/password, etc.) or that the statement "SELECT * FROM tablea" is failing (table doesn't exist, user has no privileges to that table, etc.). Actually because the error is on a line calling $db->e

[fw-general] Zend_Acl, lazy loading, addParent

2007-03-27 Thread Philippe Le Van
Hi, I'm using Zend_Acl for a community site. I would like to use a lazy loading for access right because number of acl is too big, and acl already loaded are saved in session. When the user arrives on a new page, I load some new roles and I want to add the current user as a child of some of thes

[fw-general] Problem connecting ZF 0.9.1 with MySQL

2007-03-27 Thread Wojtek Andruszkiewicz
Hello, i'm using ZF version 0.9.1 and i have problems with connect to mysql database my code is: $params = array('host' => '', 'username' => 'xxx', 'password' => 'xxx', 'dbname' => 'xxx'); $db = Zend_Db::factory('PDO_MYSQL', $params); Zend_Registry::set('db', $db); Zend_Db_Table

[fw-general] Zend_Search_Lucene dies on update

2007-03-27 Thread Duncan, Craig
Trying to open an index twice in the same script causes an error when adding a new document. 1. open index 2. delete doc from index 3. commit change 4. unset index 5. open index 6. add new document 7. commit change At step 6 the script terminates abrubtly

Re: [fw-general] Zend_View form helpers

2007-03-27 Thread Jim Scherer
Arnaud, I ran into the same thing. I opened an issue for this http://framework.zend.com/issues/browse/ZF-1146. Jim Arnaud Limbourg wrote: > > Hi all, > > When using the form helpers I noticed that passing an attribute of > readonly => readonly effectively disables (in the framework sense)

Re: [fw-general] Zend_Validate

2007-03-27 Thread Lx
Simon R Jones schrieb: Hi Alexander, Some domain names have been set up to accept international characters, DE domains being one of them. More info on how to use it is on http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html However, there have been reports of it not wor

RE: [fw-general] Zend_Validate

2007-03-27 Thread Simon R Jones
Hi Alexander, Some domain names have been set up to accept international characters, DE domains being one of them. More info on how to use it is on http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html However, there have been reports of it not working reliably for some pe

Re: [fw-general] Controller and View Question

2007-03-27 Thread Andries Seutens
Hello, I have chosen to override Zend_Controller_Action. My template structure is as follows: /templates /default /blog archive.html post.html ... /news archive.html post.html ... blog.html news.html template.html When i call *_Action:

[fw-general] Zend_Validate

2007-03-27 Thread Alexander Jäger
Hello together, i try to get Zend_Validate to work with german umlauts, but they are not recognized as normal Alpha chars? Also I couldn´t find any solution using regex to validate. does any one know of a solution? Greatly appreciated, Alexander Jäger

Re: [fw-general] Controller and View Question

2007-03-27 Thread Matthew Weier O'Phinney
-- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Tuesday, 27 March 2007, 10:22 AM -0700): > Isn't that crossing the view/controller relationship boundary a bit. Would > it not be more correct to subclass Zend_View to provide $this->module and > $this->controller if you were going to take that appr

Re: [fw-general] Controller and View Question

2007-03-27 Thread Kevin McArthur
Isn't that crossing the view/controller relationship boundary a bit. Would it not be more correct to subclass Zend_View to provide $this->module and $this->controller if you were going to take that approach? If you're going to create an engine view, maybe create an engine model to interact wit

Re: [fw-general] Controller and View Question

2007-03-27 Thread Matthew Weier O'Phinney
-- Greg Neustaetter <[EMAIL PROTECTED]> wrote (on Tuesday, 27 March 2007, 08:14 AM -0700): > The problem I see with an approach like this is that the view is tied very > closely with the controller. Should the controller have any idea about which > javascript files need to be included on a particu

Re: [fw-general] Controller and View Question

2007-03-27 Thread Greg Neustaetter
The problem I see with an approach like this is that the view is tied very closely with the controller. Should the controller have any idea about which javascript files need to be included on a particular page? Finding a solution that minimizes the amount of common code that has to be placed in

Re: [fw-general] Controller and View Question

2007-03-27 Thread Ivan Shumkov
http://www.nabble.com/Layout-templates-tf3432215s16154.html -- View this message in context: http://www.nabble.com/Controller-and-View-Question-tf3462561s16154.html#a9694397 Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Controller and View Question

2007-03-27 Thread Matthew Weier O'Phinney
-- Dale McNeill <[EMAIL PROTECTED]> wrote (on Tuesday, 27 March 2007, 09:19 AM -0500): > I've got some CSS and javascript that I would like to dynamically add to > the HTML header depending on the controller/action. I would like to be > able to append information like appending to the response b

Re: [fw-general] Controller and View Question

2007-03-27 Thread Dale McNeill
I've got some CSS and javascript that I would like to dynamically add to the HTML header depending on the controller/action. I would like to be able to append information like appending to the response body. Then use this information in a site wide template. The only solution that comes to m

[fw-general] Zend_Session_Abstract code

2007-03-27 Thread Federico Galassi
I was digging through Zend_Session_* code and i noticed that while Zend_Session_Abstract defines methods to access the "low level" data store $_SESSION array, Zend_Session and Zend_Session_Namespace which inherit from Zend_Session_Abstract use $_SESSION directly as well. Shouldnt stuff like if (!i

[fw-general] Zend_Acl, lazy loading, addParentRole

2007-03-27 Thread Philippe Le Van
Hi, I'm using Zend_Acl for a community site. I would like to use a lazy loading for access right because number of acl is too big. acl already loaded are saved in session. When the user arrives on a new page, I load some new roles and I want to add the current user as a child of some of these ne