Re: [fw-general] Fluent interface answer

2007-04-13 Thread Alexander Netkachev
Hi, setFromArray does not returns object. You can use $annonce_test = $annonce->fetchNew(); $annonce_test->setFromArray($_POST['annonce']); Sincerely, On 4/13/07, Yann Nave <[EMAIL PROTECTED]> wrote: Hye everybody, Having this code with ZF 0.0.2beta $annonce = new annonce();

Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Alexander Netkachev
Hey, I'm getting only one mail. It seems that everything is Ok. Sincerely, On 4/13/07, Markus Wolff <[EMAIL PROTECTED]> wrote: Hey there, am I the only one getting almost every mail multiple times? It's been going on for the past two weeks or so I think... I didn't mind a lot as long as I go

Re: [fw-general] Zend_Controller functionality...

2007-04-10 Thread Alexander Netkachev
typo: Zend_Controller_Front::getInstance()->getRouter()->addRoute('RouteName', new Zend_Controller_Router_Route('/dir1/:parameterName', array('action' => 'action', 'controller' => 'dir1'))); On 4/10/07, Alexander Netkach

Re: [fw-general] Zend_Controller functionality...

2007-04-10 Thread Alexander Netkachev
Greetings, You need to specify a custom route for this as follows: Zend_Controller_Front::->getRouter()->addRoute('RouteName', new Zend_Controller_Router_Route('/dir1/:parameterName', array('action' => 'action', 'controller' => 'dir1'))); and then you can get the parameter in the action by using

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
How it is going: 1. {Zend_Auth}->authenticate($adapter); 2. in Zend_Auth::authenticate(): $this->getStorage()->write($result->getIdentity()); 3. in Zend_Auth_Storage_Session::write(): $this->_session->{$this->_member} = $contents; 4. in Zend_Session_Namespace::__set(): $name = (string) $n

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Thank you! But where the question arise: authenticate($adapter) then saves the identity in the storage and default storage is session-based storage. This storage accepts only strings, as I understand. So before the example below can work I should change the storage too? Sincerely, On 4/10/07,

Re: [fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Thank you, that clarifies a lot! However, I would like to know where you changed the identity of Zend_Auth? E.g. what makes $this->_auth->getIdentity()->getUser()->role; possible? I think that $identity->setUser(...) means that you use some class to store identity-related information. Do use your

[fw-general] Zend_Auth/Zend_Acl questions

2007-04-10 Thread Alexander Netkachev
Hi, I'm implementing Zend_Auth scheme and do not understand what is the best way to store role of the user. My scheme is based on http://devzone.zend.com/node/view/id/1665 (which seems broken now because last code fragment is incomplete) and I want to store user's identity and all associated inf

Re: [fw-general] Zend Feed / Atom / XHTML content

2007-04-09 Thread Alexander Netkachev
Hi, Is there any action planned or taken because of the following? Thanks, On 4/3/07, Alexander Netkachev <[EMAIL PROTECTED]> wrote: Hi, I think it should be something similar to the following: appendChild($doc->createElement('feed')); $feed->setAttribute('xmlns&

Re: [fw-general] MySQL PERSISTENT connections

2007-04-09 Thread Alexander Netkachev
Hi, Please look at this tread: http://www.nabble.com/Any-idea-how-to-have-PDO%3A%3AATTR_PERSISTENT-%3D%3E-true-tf2707756.html#a7550717 Sincerely, On 4/9/07, mreverman <[EMAIL PROTECTED]> wrote: The application that i have developed would benefit from making persistent connections to my MYSQ

Re: [fw-general] Optimize URL's

2007-04-09 Thread Alexander Netkachev
Maybe off-topic, but: I so many times have seen that one schema is better for SE then another but they are all different :-) When it is obvious that using query sting is less SE-friendly then using :module/:controller/:action/ ... params ..., it is quite hard for me to understand why /descriptive-

Re: [fw-general] caracters ã, é, õ...

2007-04-09 Thread Alexander Netkachev
Hi, I believe there are two issues here: 1. How application updates the database with the data. 2. How application makes the search. PHP does nothing with the data you entered and sends it into the database just as you typed them into the text field. If you have some parameter the "echo"-ing thi

Re: [fw-general] question about zend_db

2007-04-09 Thread Alexander Netkachev
Hi, For me it looks like: 1. Portability. The SQL generation depends on the data adapter used. So, when you change database of your app from MySQL to MS SQL you probably will not change anything in your selects. 2. Manageability. Just what Bill has wrote about. I've used such technique for buildi

Re: [fw-general] Problem with subclassing Zend_View

2007-04-08 Thread Alexander Netkachev
Hello, On 4/8/07, Martin Hujer <[EMAIL PROTECTED]> wrote: Hello, I think, that func_get_arg(0) always return '', because _run() doesn't have any argument. func_get_arg(0) returns just the first argument function is called with even if there are no parameters. Martin Hujer Cristian Bi

Re: [fw-general] Help with rewrite

2007-04-07 Thread Alexander Netkachev
Hi, Your rewrite rules are quite uncommon. Could you please try the following: RewriteEngine on RewriteBase /~myuser/myproject RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php and set Zend_Controller_Front::getInstance()->setBaseUrl('/~myuser/myproject'); Sincerely, On 4/8/07, mbneto <[EMAI

Re: [fw-general] Javascript and Zend_Db_Table

2007-04-07 Thread Alexander Netkachev
Hello, On 4/8/07, Maurice Fonk <[EMAIL PROTECTED]> wrote: Hello, During my daily feed-reading I came across an interesting bit of javascript-magic called 'Jester' at http://giantrobots.thoughtbot.com/2007/4/2/jester-javascriptian-rest . It deals with using RoR ActiveRecords in javascript, usin

Re: [fw-general] Zend Feed / Atom / XHTML content

2007-04-02 Thread Alexander Netkachev
returns http://www.w3.org/2005/Atom";> http://www.w3.org/1999/xhtml";> testtest BTW, Atom format supports different types of content, not only html/xhtml. Of course, it is not required to support it right now, but API can accept type as one of {html|xhtml|MIME TYPE}, not as boolea

Re: [fw-general] Zend Feed / Atom / XHTML content

2007-04-02 Thread Alexander Netkachev
the test: $feedArray = array( 'title' => $blog['title'], 'link' => MYSPHERE_URL . '/blog/' . $id . '/atom', 'lastUpdate' => $feedUpdateDate, 'charset' => &#

Re: [fw-general] Bug in Zend_Feed_Atom: line 273

2007-04-02 Thread Alexander Netkachev
sue has been created here: > http://framework.zend.com/issues/browse/ZF-1183 > Thanks for the report! > > Olivier > > Le lundi 2 avril 2007, Alexander Netkachev a écrit : > > Hi, > > > > Currently feed sets all entry updated time to current time. > > &g

[fw-general] Bug in Zend_Feed_Atom: line 273

2007-04-01 Thread Alexander Netkachev
Hi, Currently feed sets all entry updated time to current time. 273$updated = isset($array->lastUpdate) ? $array->lastUpdate : time(); should be 273$updated = isset($dataentry->lastUpdate) ? $dataentry->lastUpdate : time(); array -> dataentry ? Sincerely, -- Alexander

Re: [fw-general] Zend Feed / Atom / XHTML content

2007-03-31 Thread Alexander Netkachev
help in this case because = <div<</div> and it is incorrect format of the atom feed. Check the following feed: http://www.w3.org/2005/Atom";> 2006-07-20T20:07:00Z Alexander Netkachev http://alexatnet.com/blog/2 using the http://validator.w3.org/feed/. It says that "Miss

[fw-general] Zend Feed / Atom / XHTML content

2007-03-30 Thread Alexander Netkachev
Hi, Are there any plans to support XHTML atom content type like <...>...entry content here...<...> ? I have my content in XHTML with all those , etc and that leaves me only three options for now: 1. Extend Zend_Feed_Atom and change _mapFeedEntries() or use another method for similar functionali

Re: [fw-general] Ajax.... How/Where to start?

2007-03-24 Thread Alexander Netkachev
BTW, in my CMS I'm using prototype.js and send result of an action execution in JSON. On 3/24/07, Alexander Netkachev <[EMAIL PROTECTED]> wrote: Hello, Consider this: http://www.alexatnet.com/blog/2/2006/07/26/create-ajax-login-page-with-dojo-toolkit-and-zend-framework Sincerel

Re: [fw-general] Ajax.... How/Where to start?

2007-03-24 Thread Alexander Netkachev
Hello, Consider this: http://www.alexatnet.com/blog/2/2006/07/26/create-ajax-login-page-with-dojo-toolkit-and-zend-framework Sincerely, On 3/24/07, Kai Meder <[EMAIL PROTECTED]> wrote: Hello, first of all, 0.9.1 is a very nice release, congratulations. i searched the mailinglist-archives bu

Re: [fw-general] Zend_DB

2007-03-23 Thread Alexander Netkachev
The :D and :p strings are threated as named parameters: http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.queries Sincerely, On 3/23/07, Gerry CrsH Put <[EMAIL PROTECTED]> wrote: Dear List, I don't know if anyone had the same problem before but when I do an update or insert qu

Re: [fw-general] getting-started-with-the-zend-framework_124.pdf

2007-03-22 Thread Alexander Netkachev
Hi, 1. Probably it is better to address this issue to the author of the tutorial... 2. It would be nice to narrow down the problem and create example that shows a problem and this example should be as small as possible. Sincerely, Alex On 3/22/07, José de Menezes Soares Neto <[EMAIL PROTECTED]

Re: [fw-general] Tutorial Zend Framework and Smarty

2007-03-22 Thread Alexander Netkachev
Consider the following: * Primitus application: http://framework.zend.com/wiki/x/hw0, now available in SVN. * http://akrabat.com/zend-framework-tutorial/ * External Resources - Tutorials, Articles, and Examples: http://framework.zend.com/wiki/x/q Sincerely, On 3/22/07, José de Menezes Soares Net

Re: [fw-general] How to create my own exception handler method ?

2007-03-22 Thread Alexander Netkachev
Here is code from CMS of my site: function errorHandler($errno, $errstr, $errfile, $errline) { throw new Exception($errstr, $errno); } set_error_handler('errorHandler'); ... skip initialization code try { $front->dispatch(); } catch (Exception $e) { if

Re: [fw-general] ZF 0.8.0

2007-03-22 Thread Alexander Netkachev
http://framework.zend.com/releases/ZendFramework-0.8.0.zip On 3/22/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote: Could someone send me the ZF 0.8.0? I will start with it, cause there is no tutorial for ZF 0.9.0... Best Regards, José -- Alexander http://www.alexatnet.com/ -

Re: [fw-general] Trouble with setControllerDirectory() in 0.9.0Beta

2007-03-21 Thread Alexander Netkachev
On 3/21/07, Werner <[EMAIL PROTECTED]> wrote: Hello, fellow ZF users I ran into trouble with setControllerDirectory() when switching from 0.8.0 to 0.9.0Beta. The following worked fine in 0.7.0 to 0.8.0: $frontController->setControllerDirectory( array( '

Re: [fw-general] Zend_Db Exception throwing?

2007-03-19 Thread Alexander Netkachev
On 3/19/07, Jude Aakjaer <[EMAIL PROTECTED]> wrote: I'm not sure if this is a related issue or a different one, but using the following code I cannot catch the failing exception try { $db = Zend_Db::factory($config->db->adaptor, array('host' => 'localhost', 'username' =>'noexistant', '

Re: [fw-general] Media Temple Grid Server

2007-03-18 Thread Alexander Netkachev
On 3/18/07, fendtele83 <[EMAIL PROTECTED]> wrote: I'm trying to setup the zend framework on the media temple grid server but I'm having a problem. I keep getting the following error message Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller s

Re: [fw-general] Newbiew with ZF

2007-03-17 Thread Alexander Netkachev
On 3/17/07, ReynierPM <[EMAIL PROTECTED]> wrote: Hi every one: I'm newbiew using ZF so I'm asking if exists a tutorial, not a documentation, for a fresh start. I'm looking in a ZF Site but can't find any. I speak Spanish as native language so if any can help me ... Cheers and thanks in advance -

Re: [fw-general] Zend_View, reference inside helpers

2007-03-12 Thread Alexander Netkachev
On 3/12/07, Kai Meder <[EMAIL PROTECTED]> wrote: Michał Minicki wrote: > Kai Meder <[EMAIL PROTECTED]> napisał(a): >> is there any way that the a view-helper may access the view, in which it >> was executed? > > I was discussing this problem with Matthew some time ago and he agreed to > do it ev

Re: [fw-general] Help with Zend_Controllers

2007-03-11 Thread Alexander Netkachev
On 3/12/07, Adler Medrado <[EMAIL PROTECTED]> wrote: Hello all. I don't know if this is the correct list to post this. If it is not, i am sorry. I've upgraded my app to the Zend Framework Previw to 0.8.0 and my app work fine with the 0.7.0 version. The source code is: $frontController = Zend_C

Re: [fw-general] Sqlite "SQL logic error or missing database"

2007-03-09 Thread Alexander Netkachev
On 3/9/07, Kyohere Luke <[EMAIL PROTECTED]> wrote: Hello, I'm using ZF 0.8.0 on windows with Sqlite version 3.3.7 and PHP 5.2.0. I've tried everything to get ZF to successfully insert data into the database but I keep getting the error: *Fatal error *: Uncaught exception 'PDOException' with me

Re: [fw-general] DB Table

2007-03-08 Thread Alexander Netkachev
On 3/8/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- Ian Warner <[EMAIL PROTECTED]> wrote (on Thursday, 08 March 2007, 05:56 PM -): > That would be why then :) > > Been pulling my hair out for quite a while to solve this. > > So it is basically not possible to do a COUNT(*) etc o

Re: [fw-general] magic_quotes_gpc set to on ??

2007-03-07 Thread Alexander Netkachev
On 3/7/07, Olivier Revollat <[EMAIL PROTECTED]> wrote: Hello, I've tryed to set magic_quotes_gpc to off within a .htaccess file on my hosting but it's disable ... and I can't change php configuration for security reasons ... does this configuration affect the framework ? and if yes, in which way

Re: [fw-general] Zend_Db_Select ....

2007-03-05 Thread Alexander Netkachev
Hi, On 3/5/07, Adam Balgach <[EMAIL PROTECTED]> wrote: I am trying to form the query: Select firstname, lastname, email from table where user_id = 1 so when i do: $select=$this->_db->select(); $select->from('table', 'table.firstname '); $select->from('table', 'table.lastname');

Re: [fw-general] Hosting ??

2007-03-05 Thread Alexander Netkachev
Olivier Revollat wrote: > I try to find a web hosting service who support Zend Framework (PHP5, > mod_rewite, PDO ...) > Do you have any idea ? > Thanks Host my projects on GoDaddy.com, economy linux hosting. It matches my needs at 100%. I'm using: Zend Framework, mod_rewrite, PDO. -- Alexande

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-28 Thread Alexander Netkachev
On 3/1/07, Christopher Thompson <[EMAIL PROTECTED]> wrote: I just did a quick survey to see what in Zend.php is used within the framework. I note that Zend_Cache chose not to use Zend::loadClass. And the controller code, which was the original user of this code, should probably have its own spec

Re: [fw-general] Routing to Modules

2007-02-28 Thread Alexander Netkachev
Phillip, Check that you have file IndexController.php in /home/roopgroup/application/Lead/controllers and that the name of the class in it is Lead_IndexController. Sincerely, -- Alexander http://www.alexatnet.com/ On 2/28/07, Phillip B. Roberts <[EMAIL PROTECTED]> wrote: I apologize if I a

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-25 Thread Alexander Netkachev
On 2/26/07, Kevin McArthur <[EMAIL PROTECTED]> wrote: Bill, > The benefit of this change is to simplify integration of a Zend > Framework tree in an application tree. You could use svn externals, for > instance. This brings up the question on whether this is how we want to recommend the deplo

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-25 Thread Alexander Netkachev
On 2/26/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote: Bill, I guess this was discussed earlier and much desired. However, to work around the exception, could we look into renaming the Zend class to something like: Zend_Main or Zend_Public or Zend_Shared or Zend_Common or Zend_General or Zend_Ba

Re: [fw-general] problem when deploying site

2007-02-25 Thread Alexander Netkachev
On 2/25/07, Georg von der Howen <[EMAIL PROTECTED]> wrote: I had a similar error when updating ZF to 0.8.0. The cause was that the parameters for the Zend_Controller->_forward() method have changed from 0.7.0 to 0.8.0(is there actually a place where I can look up API changes from one version to

Re: [fw-general] Default controllers

2007-02-25 Thread Alexander Netkachev
On 2/25/07, Jakub Podhorský <[EMAIL PROTECTED]> wrote: Hello, Is there any way in Zend Framework how to determinate default controller and action for each module? Default controller is by default a controller called _IndexController. So why to not put the logic of ArticleController in it? A

Re: [fw-general] leftJoin problem

2007-02-20 Thread Alexander Netkachev
On 2/20/07, Кононов Руслан <[EMAIL PROTECTED]> wrote: Hi, all. in ZF 0.7 my query work fine, but not in 0.8rc1. $select = $db->select(); $select->from('journal', array('journal_id','journal_group_id', 'journal_user_id', 'journal_title','journal_ts_add') ); $select->