Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Саша Стаменковић
Hehe, better don't use Zend Tool :) Regards, Saša Stamenković On Tue, Nov 3, 2009 at 8:41 AM, scs sasc...@gmail.com wrote: I had the same problem. And every time, I had to correct the view script filename manualy. There is one more problem (not sure if it is a problem): When you create a

[fw-general] Custom URL (http://www.mysite.com/de/) problem

2009-11-03 Thread denadai2
Hi, i've a problem with custom regex route. I tried this: $route = new Zend_Controller_Router_Route_Regex( '(.+)', array( 'controller' = 'index', 'action' = 'view' ), array( 1 = 'language'

Re: [fw-general] adding elemets to zend_form dynamically

2009-11-03 Thread scs
Hi, You can take a look at Dynamically Adding Elements to Zend_Form http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/ scs On Tue, Nov 3, 2009 at 1:47 PM, KimG kim.gabriel...@get2net.dk wrote: Thanx for info. It sounds very simple when you describe it but truth

[fw-general] mysqlnd cannot connect to MySQL 4.1+ using old authentication

2009-11-03 Thread Goran Juric
Hi, I have been running phpunit tests on PHP 5.3 (on Mac OSX 10.6) and I am getting an error: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using old authentication I am using the Zends PDO_MYSQL adapter and the MySQL server is running version 5.0.86.

Re: [fw-general] adding elemets to zend_form dynamically

2009-11-03 Thread Ant Cunningham
scs wrote: Dynamically Adding Elements to Zend_Form http://www.jeremykendall.net/2009/01/19/dynamically-adding-elements-to-zend-form/ I dont think id ajax the form element. Id ont see any reason to... perhaps if i was adding an entire Subform or a complex filedset but i think its a waste of

Re: [fw-general] mysqlnd cannot connect to MySQL 4.1+ using old authentication

2009-11-03 Thread Johannes Schill
I got the same error when i upgraded to Snow leopard (OSX 10.6). Unfortunately I haven't managed to fix this in a good way, I installed XAMPP (http://www.apachefriends.org/en/xampp.html) to get my environment back up running until i find a better solution. This problem is not Zend

Re: [fw-general] mysqlnd cannot connect to MySQL 4.1+ using old authentication

2009-11-03 Thread Karol Grecki
Update your mysql passwords to a new format or don't use the new mysqlnd driver available since 5.3 (it has nothing to do with ZF) Cheers Goran Juric wrote: Hi, I have been running phpunit tests on PHP 5.3 (on Mac OSX 10.6) and I am getting an error: Zend_Db_Adapter_Exception:

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Ralph Schindler
Additionally there should be additional basic types like Directory, PhpFile, OtherFile which can be used as placeholders for non-application critical resources that need representation though. Directory and File already exist, but they are currently marked as abstract. I can change

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Саша Стаменковић
When can we expect 1.10 to be released? Regards, Saša Stamenković On Tue, Nov 3, 2009 at 3:36 PM, Ralph Schindler ralph.schind...@zend.comwrote: This is fixed in the incubator / code for 1.10 I have a package ready to test under pear.zfcampus.org if you are willing to try it. -ralph

Re: [fw-general] Zend_Http_Client and utf-8

2009-11-03 Thread Саша Стаменковић
Problem is in http client, since it occurs on some servers, and on some not, probably depending on headers they send by default. Regards, Saša Stamenković On Tue, Sep 22, 2009 at 2:42 PM, Саша Стаменковић umpir...@gmail.comwrote: I'm trying... :P Regards, Saša Stamenković On Tue, Sep

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Matthew Weier O'Phinney
-- Саша Стаменковић umpir...@gmail.com wrote (on Tuesday, 03 November 2009, 03:37 PM +0100): When can we expect 1.10 to be released? We're still trying to determine a date; there are a number of variables we need to consider. I'm hoping that we can have it before end-of-year. On Tue, Nov 3,

[fw-general] Why does Zend_Application_Module_Autoloader specifically look in /models/dbTable/?

2009-11-03 Thread Artsemis
Before you jump right to a response, let me clarify this question a bit: The Zend_Application_Module_Autoloader automatically checks for classes starting with Namespace_Model_ in the /models/ directory and it also checks for classes beginning with Namespace_Model_DbTable_ in the /models/DbTable/

Re: [fw-general] Zend_Tool_Framework Customization

2009-11-03 Thread Ralph Schindler
This is fixed in the incubator / code for 1.10 I have a package ready to test under pear.zfcampus.org if you are willing to try it. -ralph scs wrote: I had the same problem. And every time, I had to correct the view script filename manualy. There is one more problem (not sure if it is a

Re: [fw-general] Why does Zend_Application_Module_Autoloader specifically look in /models/dbTable/?

2009-11-03 Thread prodigitalson
Artsemis wrote: So, why is it that Zend_Application_Module_Autoloader [b]specifically[/b] checks for DbTable classes in the /models/DbTable/ class? Unless I'm missing something, this specific check is redundant as the underscore in the class name indicates that DbTable is a subdirectory

[fw-general] Change the layout from module bootstrap

2009-11-03 Thread Simeon Goranov
Hello, I've got a module bootstrap file Admin_Bootstrap where the module is admin. I'm wondering how to change the default layout, which in my case is layout.phtml only for the admin module. In my opinion I have to do it into the bootstrap file, because in this way the change will affect all of

[fw-general] Re: Re[fw-general] gistering view scope variables within global action helper

2009-11-03 Thread prodigitalson
I think you can do the following inside the action helper: $this-getActionController()-view-varname = 'myvalue'; jasonzfw wrote: Hi, In order to consolidate code used throughout each controller, I've created an action helper which performs commonplace tasks such as determining

RE: [fw-general] Change the layout from module bootstrap

2009-11-03 Thread Terre Porter
You can also use the code in action functions to change a independent action's layout file. public function indexAction() { Zend_Layout::getMvcInstance()-setLayout('some_special_layout'); ... } If you want to, or need a different layout file for one action vs another.

[fw-general] Zend Autloader Throwing Exceptions

2009-11-03 Thread A.J. Brown
Hi Guys, I'm trying to supress errors with the Zend Autoloader, but it's still throwing them. In this specific case, I'm dynamically ceating a class if it doesn't already exist. I'm calling suppressNotFoundWarnings( true ). Here's my code: http://www.pastie.org/682603 On line 13, I'm getting

Re: [fw-general] autocomplete=off

2009-11-03 Thread Jurian Sluiman
The autocomplete attribute is an unsupported one, but introduced by Microsoft. Now all common browsers supports the autocomplete attribute, though it's still not in the official specification (afaik). For elements, all kind of attributes can be set with an option. Inside your form::init()

[fw-general] Zend_Service_Twitter constructor

2009-11-03 Thread Joe Czhlobatnik
There are cases where Zend_Service_Twitter can be used without authentication, but the constructor requires $username and $password to always be passed. For example, checking if a given username exists or not: $tw = new Zend_Service_Twitter(null); $exists = $tw-user-show($who)-id() !==

Re: [fw-general] Change the layout from module bootstrap

2009-11-03 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Simeon Goranov wrote: Hello, I've got a module bootstrap file Admin_Bootstrap where the module is admin. I'm wondering how to change the default layout, which in my case is layout.phtml only for the admin module. In my opinion I have to do it

Re: [fw-general] autocomplete=off

2009-11-03 Thread Matthew Weier O'Phinney
-- Anders Gunnarsson and...@metropolis.se wrote (on Tuesday, 03 November 2009, 08:02 PM +0100): How do I add / autocomplete/=off To a password field in zend_form? Simply specify it as a property or as metadata on instantiation: $foo = new Zend_Form_Element_Text('foo', array(

Re: [fw-general] autocomplete=off

2009-11-03 Thread Hector Virgen
I've never seen a password field support autocomplete. What does it do? Does it show a list of recently typed passwords so you can select one? I thought this feature was only available on inputs of type text. -- Hector On Tue, Nov 3, 2009 at 11:12 AM, Jurian Sluiman

[fw-general] Troubles with Custom Validation plugin

2009-11-03 Thread Kuzma
Hi all! I'm newbie to Zend framework and I've encountered one more problem:-/ So, I've read this tutorial: _http://steven.macintyre.name/zend-framework-jquery-form-validation-plugins/ And I'm getting this error: exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name

[fw-general] Accessing the controller's name from layout

2009-11-03 Thread Diego Potapczuk
How can i access the controller´s name from layout?

Re: [fw-general] Why does Zend_Application_Module_Autoloader specifically look in /models/dbTable/?

2009-11-03 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 prodigitalson wrote: Artsemis wrote: So, why is it that Zend_Application_Module_Autoloader [b]specifically[/b] checks for DbTable classes in the /models/DbTable/ class? Unless I'm missing something, this specific check is redundant as the

Re: [fw-general] Change the layout from module bootstrap

2009-11-03 Thread scs
Hello, Here is a sample code from my projects. I tested and it works. plugin file code: class My_Plugin_ChangeModuleLayout extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) {