[fw-general] Zend\Ldap

2014-12-12 Thread Steve Rayner
I'm using this to make an LDAP query; $ldap = new \Zend\Ldap\Ldap($options); $ldap->bind(); $result = $ldap->search('(objectclass=*)', 'dc=wr,dc=local', \Zend\Ldap\Ldap::SEARCH_SCOPE_ONE); How would I then iterate over the results?

[fw-general] Re: help with Zend\Db\Sql\Expression

2013-11-15 Thread Steve Rayner
Sorry, I've changed the code since which now works for me. The answer was to use an associative array. I was given the answer here; http://stackoverflow.com/questions/19855238/how-do-i-use-aggregate-functions-in-zend-db-sql Steve On Fri, Nov 8, 2013 at 9:07 AM, Steve Rayner wrote:

[fw-general] help with Zend\Db\Sql\Expression

2013-11-08 Thread Steve Rayner
I'm getting Object of class Zend\Db\Sql\Expression could not be converted to string with the following code; $select->join(*array*('tt' => 'discuss_thread_tag'), 'tt.tag_id = discuss_tag.tag_id', *array*(), 'left') ->join(*array*('t' => 'discuss_thread'), 't.thread_id = tt.thread_id', *arra

[fw-general] \Zend\Cache\Pattern\OutputCache.php Bug

2012-10-31 Thread Steve Eriksen
lush returns a "true" or "false" (on failure), which seems a bit pointless to cache :) If I keep the code "as-is" then all that gets cached is "1". If I use ob_get_flush() then the proper contents are cached. Best regards, Steve

[fw-general] Re: [fw-db] Re: [ZF2] exchangeArray and db fields prefix

2012-10-30 Thread Steve Rayner
On Tue, Oct 30, 2012 at 12:44 PM, Steve Rayner wrote: > I strongly disagree. Zend Framework should not dictate how you name > your database fields. > > I guess you need some king of mapping service to translate between you > database field names and your class properties. > Sor

Re: [fw-general] ZF2 response headers

2012-10-20 Thread Steve Rayner
file_get_contents solved my problem. Many thanks Matthew. Good to know that my code regarding response object was correct. On Fri, Oct 19, 2012 at 11:25 PM, Matthew Weier O'Phinney wrote: > -- Steve Rayner wrote > (on Friday, 19 October 2012, 09:33 PM +0100): >> Can anyo

[fw-general] ZF2 response headers

2012-10-19 Thread Steve Rayner
Can anyone point me to an example of how to correctly set response headers using ZF2? My code here does not work; http://pastie.org/5085542 -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

[fw-general] Name spacing controllers

2012-10-13 Thread Steve Rayner
Using ZF2 I need to namespace my controllers because i have the same controller names in different modules (ie index controller). If i don't name space them some get lost in merged config. So my controllers are named as; 'controllers' => array( 'invokables' => array( 'Inventory/Index'

[fw-general] Fwd: Zend\Navigation

2012-10-01 Thread Steve Rayner
Sorry to be annoying but can anyone help with this because i am stuck? (doesn't seem to be much activity in zftalk on freenode since zf2 was released) -- Forwarded message -- From: Steve Rayner Date: Sun, Sep 30, 2012 at 4:45 PM Subject: Zend\Navigation To: fw-ge

[fw-general] Zend\Navigation

2012-09-30 Thread Steve Rayner
I'm having problems with Zend\Navigation but i think i now understand what is happening. I have four pages in navigation that map to the following routes; 'home' => array( 'label' => 'Home', 'route' => 'home', ), 'inventory' => array(

[fw-general] Zend_Navigation

2012-09-29 Thread Steve Rayner
Are the any docs for Zend_Navigation? My prolem is that all my pages are set to active. I can't see what sets a page to active. My config is; 'navigation' => array( // The DefaultNavigationFactory we configured in (1) uses 'default' as the sitemap key 'default' => array( // And fin

[fw-general] ZF2 integer inputfilter

2012-09-17 Thread Steve Rayner
'validators' => array( array( 'name' => 'Int', 'options' => array( 'min' => 1, 'max' => 50, ), ), ), ))); Steve -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] Zend_Log Dateformat

2012-09-14 Thread Steve Rayner
Easy. I just needed to upgrade from ZF1.10 to ZF1.12. As you say you can now specify the timestamp format. $logger = new Zend_Log(); $logger->setTimestampFormat('Y-m-d H:i:s'); Thanks srayner On Fri, Sep 14, 2012 at 10:17 AM, Andreas Möller wrote: >> Zend_Log has this in the Log

[fw-general] Zend_Log Dateformat

2012-09-14 Thread Steve Rayner
Zend_Log has this in the Log() function; // pack into event required by filters and writers $event = array_merge(array('timestamp'=> date('c'), 'message' => $message, 'priority' => $priority,

[fw-general] ZendX_Db_Adapter_Firebird

2012-09-13 Thread Steve Rayner
In ZF1 does ZendX_Db_Adapter_Firebird work with Firebird2.5 databases? I have been using it with Firebird1.5 for some time with no problem, but i need to upgrade my database to Firebird2.5. I am getting an conversion error from string when trying to insert data into a date field. I didn't get the

[fw-general] database connection and audit logging

2012-09-10 Thread Steve Rayner
Not exactly a zend framework question so feel free to ignore or kick this out. I need to implement audit logging on various database tables. Sounds simple but it's not. There are multiple applications that connect to the database server, my zend framework application is just one of these. Others m

[fw-general] isXmlHtpRequest() missing from ZF2 docs.

2012-08-19 Thread Steve Rayner
i think this has already been flagged, but i just noticed the isXmlHttpRequest() method is missing from the ZF2 docs.

[fw-general] flashMessenger blog here

2012-08-18 Thread Steve Rayner
A really badly written blog about ZF2 flashMessenger can be found here http://civray-software.com/blog/?p=39 I can't seem to get wordpress to format the code very well. Please comment if i'm doing anything really bad regarding flashMessenger here.

Fwd: [fw-general] ZF2 - pass parameter to view

2012-08-18 Thread Steve Rayner
Found it. In ZF2 it's now a controller plugin. -- Forwarded message -- From: Steve Rayner Date: Sat, Aug 18, 2012 at 7:37 PM Subject: Re: [fw-general] ZF2 - pass parameter to view To: Jurian Sluiman Thanks for response. I guess that's one option. I probably didn&#x

[fw-general] ZF2 - pass parameter to view

2012-08-18 Thread Steve Rayner
If my controller action ends with this line; return $this->redirect()->toRoute('items'); can i pass an extra parameter to the view? ie, one extra variable. I want to pass the result status of the controller action, redirecting to user to another page but with an additional info pane.

Re: [fw-general] Re: Is it possible to create references in config sections for resource plugins

2012-08-16 Thread Steve Dowe
= "localhost" db.mydb.config.username= "username" db.mydb.config.password= "password" db.mydb.config.dbname = "your-db" db.mydb.config.port= 3306 You could then include() the functions file in your code. A call to connect_db() function woul

[fw-general] grab value from request, or from form

2012-07-26 Thread Steve Rayner
bject that i'm trying to hydrate. (i seem to remember there is a better way of doing this in doctrine) Now i'm stuck, I can't find in the documentation how i can access a single parameter from the request object, or from the form object. Can anyone show me how to do this? Steve

Re: [fw-general] ZF2 Modules

2012-06-15 Thread Steve Rayner
ng i have done wrong. should i post any of my code here? On Fri, Jun 15, 2012 at 2:59 PM, Matthew Weier O'Phinney wrote: > -- Steve Rayner wrote > (on Friday, 15 June 2012, 07:53 AM +0100): >> I see there is a module called zfc-user, with a sub-module for using >> doctrin

[fw-general] ZF2 Modules

2012-06-14 Thread Steve Rayner
I see there is a module called zfc-user, with a sub-module for using doctrine orm. I'm new to ZF2 and the concept of modules (i didn't use them in zf1). ZF2 seems to have quite a complicated folder structure, that looks well thought out. I'm using composer, so I've added the required dependencies,

[fw-general] zf2 errors

2012-06-11 Thread Steve Rayner
rror log i get; [11-Jun-2012 18:27:36 UTC] PHP Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (Doctrine) could not be initialized.' in C:\Users\Steve\Documents\git\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\M

Re: [fw-general] ZF1-Bootstrap execution

2012-05-31 Thread Steve Dowe
Hi Artur, Thanks for your response. On 31/05/12 17:23, Artur Bodera wrote: On Wed, May 30, 2012 at 10:26 AM, Steve Dowe wrote: [...] Based on this output, I refer to this as a "1-3-1". Is this a Boostrap.php for a module or main application? Are those log lines produced in a m

[fw-general] ZF1-Bootstrap execution

2012-05-30 Thread Steve Dowe
each new model cause this repeated bootstrapping? Sorry for the long message. I'm trying to get my head around why this is happening and what I can do to streamline my code - it's running pretty slowly at the moment for the simple tasks required. Many thanks for any help, in antic

Re: [fw-general] ZF vs Yii/CodeIgniter Framework

2012-03-25 Thread Steve Davies
I'd agree, they're very fair comments Marco. IMHO Zend is 'heavy' and feature full with the great flexibility, where as CodeIgniter is very 'pick up and go'... So I agree, it depends on your intended application. Cheers, Steve On 25 Mar 2012, at 18:05, Marco Piv

Re: [fw-general] Re: [zf-contributors] Backporting ZF1 eventmanager - question about compat

2012-03-15 Thread Steve Davies
Hey Guys, +1 For the 'You must use PHP version 5.3 with this version of the Framework.' I think we're at a time now, especially with the milestone that is PHP 5.4 being released, where 5.3 has to be a minimum. Sent from my iPhone Steve Davies @sjwdavies On 15 Mar 2012, at

[fw-general] Wallkthrough setting up a datagrid

2012-03-04 Thread Steve Faleiro
alkthrough describing the steps to quickly accomplish this. Thanks in advance. -- Steve Faleiro -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com

Re: [fw-general] Re: What is the recommended way of using Doctrine2 with ZF1?

2011-12-15 Thread Steve Davies
I've come across that link before but which video is best to start off with? Thanks, Steve On 15 December 2011 16:04, whisher wrote: > http://www.zendcasts.com/category/screencasts/databases/doctrine-databases/ > > > > -- > View this message in context: > http://zend-

[fw-general] Building nested menu with Zend_Navigation

2011-10-07 Thread Steve Rayner
I am trying to use Zend_Navigation to create a nested site menu, but am struggling in two areas. I have the following code in my bootstrap; // Set up navigation. $navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/configs/config.xml', 'nav'); $navContainer = new

[fw-general] Zend_Db_Table

2011-08-19 Thread Steve Rayner
What am I doing wrong here; $drawingModel = new Spares_Model_Drawings(); $drawing = $drawingModel->find(2); This does not return any rows even though there is a row with a primary key of 2. This is my model; class Spares_Model_Drawings *extends *Zend_Db_Table_Abstract{ protected $_name =

[fw-general] Zend_Auth storage

2011-04-01 Thread Steve Rayner
I have this to store persistent data for an authenticated user; // We're authenticated! Store details. $identity = $adapter->getResultRowObject(); $authStorage = $auth->getStorage(); $authStorage->write($identity); I would like to add one extra bit of info to the persistent storag

[fw-general] Zend_Form_Element_Password

2011-03-31 Thread Steve Rayner
Is it possible to get the password field populated when populating a form? I like the default behaviour for a login form, when the value is not populated, but for editing a user's details i want the current password populated in the box. My only work around at the moment is to use a Zend_Form_Elem

[fw-general] Zend_Http_Response

2011-03-28 Thread Steve Rayner
I am trying to get the value of the 's' parameter in this http responce; Site Title - System Administrator logged on at 14:46:16 Is there any way to use Zend_Http_Response to get access to the html elements, so that i can extract the value after the s= ? -- List: fw-general@lis

[fw-general] findManyToManyRowset

2011-02-19 Thread Steve Rayner
confirmed. down-grading production server to Zend-Framework 1.10.0 fixed the problem. I guess i need to track down what has changed between versions... - Williams Refrigeration is a trading name of AFE Group Limited. Registered in England & Wales under Registered

[fw-general] findManyToManyRowset

2011-02-19 Thread Steve Rayner
;Cards_Model_Orders', // Class Name 'refColumns' => 'order_id' // Primary Key ), 'Product' => array( 'columns' => array('product_id'), // Refering Column (Foreign Key) 'refTableClass' => 'Cards_Model_Products', //

[fw-general] Form default decorators

2010-11-15 Thread Steve Rayner
I'm trying to get rid of the default decorators in zend form. I don't want the dl, dt & dd tags. in my form class that extends Zend_Form i have; // Add the part_no element $element = new Zend_Form_Element_Text('part_no', array( 'id' => 'text', 'label' => 'Part No:', 'required' => true, 'fil

[fw-general] repeated stylesheets in html header

2010-11-01 Thread Steve Rayner
My layout contains the following; Titanium Application headLink()->appendStylesheet('/css/common.css') . "\n"?> headLink()->appendStylesheet('/css/header.css') . "\n"?> headLink()->appendStylesheet('/css/footer.css') . "\n"?> headLink()->appendStylesheet('/css/content.css') . "\n"?> headLink()->

[fw-general] Zend_Session_Namespace and array storage

2010-09-08 Thread Steve Dowe
llowed the docs as far as possible but seem to be stuck on this aspect of implementation. If anyone can advise, I'd really appreciate it. Sorry for the long email! Many thanks, -- Steve HP Compaq 6715b | fedora 13 | AMD Turion TL-60 | 4GB | Momentus 5400.3

[fw-general] Dojo

2010-05-26 Thread Steve Rayner
Sorry if this is not the correct list to be posting regarding dojo... I have this in my javascript function, that creates an AJAX request to my server; // Create an object to hold the data. var obj = {nest_id:1, component_id:1}; // Convert to data to a string. data = dojo.toJson

[fw-general] Zend Framework, dojo & json [Scanned]

2010-03-27 Thread Steve Rayner
i am using the following javascript to pass parameters to server; var obj = {nest_id:1, component_id:1}; data = dojo.toJson(obj); var deferred = dojo.xhrPost({ url: "addtonest", content: data }); this seems ok, the data does arrive in the request. How do i extract the parameters in my

[fw-general] Zend_Form_Element_Select [Scanned]

2010-03-06 Thread Steve Rayner
I'm using this code to add a select element to my form; // Add the role element $this->addElement('select', 'role', array( 'id' => 'text', 'multiOptions' => array('Reader', 'Author', 'Admin'), 'label' => 'Role:', 'required' => true )); ...and then this in my controller to push the data to the da

[fw-general] Custom Validators [Scanned]

2010-03-05 Thread Steve Rayner
Can anyone tell me were in the application folder structure, i should ideally place php files containing custom validators?

[fw-general] Validate numbers [Scanned]

2010-03-05 Thread Steve Rayner
What validators am i supposed to use to validated that a form entry value is a number and it is between two given values? I tried between but that seems to treat the input like test.

RE: [fw-general] Controller Action Helpers

2010-02-10 Thread Steve Rayner
'basePath' => dirname(__FILE__), )); However, I still get the same error 'class Places_Controller_Helper_Acl not found. Do you know of an example that shows how to implement action controllers on version 1.10? Steve Rayner From: fw-general-return-33728-s

[fw-general] Controller Action Helpers

2010-02-09 Thread Steve Rayner
ssControl.php My class name is; Action_Helper_AccessControl The action helper does not seem to get loaded. Where an I going wrong? Is there a standard convention as to where action controllers should live? Steve Rayner ---

[fw-general] Instance of a model.

2009-09-23 Thread Steve Rayner
tances of the model? If so, can anyone show me how I should code the controller? Should the instances be destroyed at any point? Or does php do that automatically? Steve Williams are pleased to announce our attendance at HOST 2009 from 23 - 27th October in Milan. Come and visit us on S

[fw-general] Instance of a Model

2009-09-23 Thread Steve Rayner
Any help appreciated. Steve Williams are pleased to announce our attendance at HOST 2009 from 23 - 27th October in Milan. Come and visit us on Stand G16 in Hall 5 to view a selection of our range of refrigeration products and solutions. If you would like to arrange an appointment with

RE: [fw-general] Zend_Form_Element_Select - Set selected value from DB row.

2009-08-04 Thread Steve Rayner
zer based array?) I'm really new to HTML, PHP and Zend Framework, so forgive me if these are really stupid questions. Steve R From: fw-general-return-30149-srayner=williams-refrigeration.co...@lists.zend.com [mailto:fw-general-return-30149-srayner=williams-refrigeration.co...@li

[fw-general] Zend_Form_Element_Select - Set selected value from DB row.

2009-08-04 Thread Steve Rayner
etId(), 'machinetype'=> 'Welding', //$row->getMachinetype(), 'name' => $row->getName(), 'descr' => $row->getDescr() ); $form->populate($data); $this-

Re: [fw-general] how handle Locale ?

2009-05-08 Thread Steve Clay
Elvin Şiriyev wrote: I can disable notice but zend locale can't choose nearest (tr_TR) instead of 'tr' :) is there any easy way for that? Kind of a hack, but... You could rewrite the user's Accept-Language request header. -- Steve Clay http://mrclay.org/

Re: [fw-general] Zend_Application Bootstrapping

2009-04-23 Thread Steve Reed
Matthew Weier O'Phinney-3 wrote: > > -- Steve Reed wrote > (on Thursday, 23 April 2009, 09:16 AM -0700): >> Matthew Weier O'Phinney-3 wrote: >> > >> > Zend_Tool generates a public/index.php file, an >> > application/Bootstrap.php file,

Re: [fw-general] Zend_Application Bootstrapping

2009-04-23 Thread Steve Reed
Matthew Weier O'Phinney-3 wrote: > > Zend_Tool generates a public/index.php file, an > application/Bootstrap.php file, and an > application/configs/application.ini file. public/index.php pulls in > Zend_Application, and passes it the path to the configuration file, > which indicates the include

[fw-general] Accessing view render method in Action Helpers

2009-03-25 Thread Steve Uplift
Does anyone know how to correctly access a view's render method inside an action helper? I have the following helper: class Custom_Helpers_Widgets extends Zend_Controller_Action_Helper_Abstract { public function direct($widget) { $response = $this->getResponse(); $respons

Re: [fw-general] Zend_Dojo Missing Files

2009-02-10 Thread Steve Uplift
On Mon, Feb 9, 2009 at 2:32 PM, Matthew Weier O'Phinney wrote: > > RewriteEngine on > > RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php > > Don't use the above one. Use the one below: > -- > Matthew Weier O'Phinney > Software Architect | matt...@zend.com > Zend Framework | htt

[fw-general] Zend_Dojo Missing Files

2009-02-09 Thread Steve Uplift
log. This was the case in 1.7 and is still the case now in 1.7.4. Anyone able to shed any light on this? Thanks Steve -- View this message in context: http://www.nabble.com/Zend_Dojo-Missing-Files-tp21919014p21919014.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Zend_Dojo_Form errors

2009-02-02 Thread Steve Uplift
ramework | http://framework.zend.com/ > I am getting this error showing up in my Firebug console. Does anyone have a solution for this at all? Steve -- View this message in context: http://www.nabble.com/Zend_Dojo_Form-errors-tp19453531p21797677.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Invalid controller specified (js)

2009-02-01 Thread Steve Uplift
Daniel Latter-2 wrote: > > This is sometimes to do with incorrect paths, where you have > '/js/dojo/dojo/dojo.js' above, zend will look for this file in: > http://yourserver/js/dojo/dojo/dojo.js, > Dojo is loading correctly as all the elements are working the way they should. The problem is t

[fw-general] Invalid controller specified (js)

2009-01-31 Thread Steve Uplift
ME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] I still get the error whenever I access the page. I have been tearing what little hair I have left out for days now and cannot find a solution. Can anybody help? Much appreciated

[fw-general] [Zend_Form] Associated Yes/No Radios and Details Textarea

2008-11-28 Thread Steve Reed
http://www.nabble.com/file/p20732321/form-element.png This is what I would like to achieve with Zend_Form and was looking for some suggestions on how best to implement it. Ideally it would be marked up like this: Did you find our site easy to use? Yes No If no, please provid

Re: [fw-general] ZF Best Practices for someone who has been using Cake

2008-11-06 Thread Steve Klabnik
On Wed, Nov 5, 2008 at 6:23 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>wrote: > There's not. I'm not entirely sure why Zend_Db_Table does not implement > this, though my understanding is that there are some sound architectural > reasons not to do so. I've often created such a method myself, t

Re: [fw-general] QuickStart and creating a SQLite database

2008-10-26 Thread Steve Horejsi
omplete or unusable. So the end result is that while I am convinced that ZF is a great product and right for my needs, I am torn as to whether the QuickStart documentation needs to be 'fixed' or whether it is exactly the right degree of 'broken'... -=[ Steve ]=- S

[fw-general] QuickStart and creating a SQLite database

2008-10-24 Thread Steve Horejsi
I am getting a failure while trying to create the demo database: Writing Database Guestbook in (control-c to cancel): AN ERROR HAS OCCURED: SQLSTATE[HY000] [14] unable to open database file I can't seem to find any logs anywhere that would tell me what is failing. I have he perms on the whole

[fw-general] [SVN] Latest stable release

2008-09-11 Thread Steve Reed
useful except that I would use it for a server-wide checkout on my development machine knowing I was using the latest stable release to write new code. Cheers Steve -- View this message in context: http://www.nabble.com/-SVN--Latest-stable-release-tp19432988p19432988.html Sent from the Zend Fram

Re: [fw-general] Global View Helpers

2008-08-29 Thread Steve Reed
Yep, in your bootstrap is the best place, however I recommend using addHelperPath over setHelperPath as the former will not clear any existing paths you have defined (Zend_View_Helper paths will not be cleared). My bootstrap view configuration looks something like this: $view = new Zend_View(arr

Re: [fw-general] Zend_Form

2008-03-28 Thread Steve Clay
gle Zend_Form user will likely need to do that! What would be really helpful would be some examples of inputs with altered markup and the necessary code to achieve them. -- Steve Clay http://mrclay.org/

Re: [fw-general] Zend_Form and empty action

2008-03-28 Thread Steve Clay
ml/rfc3986#section-5.2.2 : (updated 2005) "if (R.path == "") then T.path = Base.path; -- Steve Clay http://mrclay.org/

Re: [fw-general] Zend_Form and empty action

2008-03-26 Thread Steve Clay
is setting the base URI via some extra header. E.g. when you use Apache's MultiViews, the "Content-Location" header is sent with the full filename, regardless that you requested the file w/o extension. -- Steve Clay http://mrclay.org/

[fw-general] Zend_Form::addElement and a stupid PHP bug

2008-03-26 Thread Steve Clay
#x27;t unset a character from a string. My feeling is that isset should be fixed, but for the time being, a Zend_Form_Element fix is simple: if (is_array($options) && isset($options['messages'])) { $messages = $options['messages']; unset($options['messages']); } [1] http://framework.zend.com/manual/en/zend.form.quickstart.html -- Steve Clay http://mrclay.org/

Re: [fw-general] Merging two Zend_Configs

2006-12-22 Thread Steve
be able to configure their own site. Thanks, Steve - Original Message - From: "Simon Mundy" <[EMAIL PROTECTED]> To: "Zend Framework" Sent: Friday, December 22, 2006 12:22 PM Subject: Re: [fw-general] Merging two Zend_Configs Hi Steve, You only need the one

[fw-general] Merging two Zend_Configs

2006-12-22 Thread Steve
issing something and if there is an easier way to accomplish this? Thanks, Steve