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?
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:
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
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
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
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
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
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'
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
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(
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
'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
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
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,
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
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
i think this has already been flagged, but i just noticed the
isXmlHttpRequest() method is missing from the ZF2 docs.
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.
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
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.
= "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
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
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
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,
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
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
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
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
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
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
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-
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
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 =
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
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
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
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
;Cards_Model_Orders', // Class Name
'refColumns' => 'order_id' // Primary Key
),
'Product' => array(
'columns' => array('product_id'), // Refering Column (Foreign Key)
'refTableClass' => 'Cards_Model_Products', //
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
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()->
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
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
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
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
Can anyone tell me were in the application folder structure, i should ideally
place php files containing custom validators?
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.
'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
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
---
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
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
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
etId(),
'machinetype'=> 'Welding', //$row->getMachinetype(),
'name' => $row->getName(),
'descr' => $row->getDescr()
);
$form->populate($data);
$this-
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/
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,
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
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
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
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.
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.
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
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
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
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
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
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
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
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
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/
ml/rfc3986#section-5.2.2 : (updated 2005)
"if (R.path == "") then
T.path = Base.path;
--
Steve Clay
http://mrclay.org/
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/
#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/
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
issing something and if there is an easier way to accomplish this?
Thanks,
Steve
73 matches
Mail list logo