Hi,
I was hanging out in zftalk earlier and someone asked about using a the
partial view helper and loading a template from a different module.
I got curious and went looking, I wanted to do the same thing eventually.
In the docs at
Hello,
I'm having problems figuring out how to handle zf2 remote development and
composer.
I currently have a Linux development virtual machine, that I connect using
samba, then I create a local project and use the FileSync plugin. This
worked fine for ZF1, even with a Git repo.
Now
Hello,
I'm working on a console app, but I'm getting lost in several things.
I have gotten the app to run in both the browser and the console.
However, in the console it returns this :
[snip]
# php public_html/index.php
==--==
Nvm,
*bonks self in the head*
Found it in the module.config file ...
'view_manager' = array(
'display_not_found_reason' = true,
...
-Original Message-
From: Terre Porter [mailto:tpor...@webpage-builders.com]
Sent: Friday, November 30, 2012 7:36 PM
To: fw-general
I'm not totally understanding of how the decorators work, so it took some
fiddling to figure it out. It's similar to if you wanted to change to a
table layout, you wanted a dl to wrap the elements, similar to a tr that
that wraps the elements.
Try adding this to your elements.
I looked for any set_error_handler functions but didn't find any.
I next made a base zend project and put only that code in it and got the
error still, so then I started pondering it a bit more and looking at the
server settings.
I have traced it down to xdebug running on the server, if I turn
Just for the archives in case someone else runs in to the same problem, I
had the following on in the xdebug.ini settings
xdebug.show_exception_trace = On
Which does what it says - lol
Terre
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe:
/attachment/13431/ZF-10649.patch
-ralph
On 11/11/10 6:50 PM, Terre Porter wrote:
So I've taken a look since this problem affected my code also.
If I understand the problem correctly would it not be better to just adjust
the isAllowed code to support the changes to the setRule
So I've taken a look since this problem affected my code also.
If I understand the problem correctly would it not be better to just adjust the
isAllowed code to support the changes to the setRule?
if (null !== $resource) {
// keep track of originally called resource
This is what I'm using for a multi-database setup.
If you're using Zend_Db_Table, this works nicely with setting the db params
in the application.ini file while allowing you to specify a different db
connection your dttable files.
Of course make adjustments for the class naming and your
Hey all,
I'm trying to loop through a large growing record set, using code like:
$options = array(
Zend_Db::AUTO_QUOTE_IDENTIFIERS = false
);
$db = Zend_Db::factory (
$config['database.adapter'],
array (
'host' = $config['database.params.host'],
'dbname' =
simply lmao ...
_
From: Daniel Latter [mailto:dan.lat...@gmail.com]
Sent: Friday, June 04, 2010 5:35 PM
To: Johnny Bravo
Cc: Zend Framework General
Subject: Re: [fw-general] Generate WSDL
Brilliant! lol
On 4 June 2010 20:10, Johnny Bravo bravobo...@gmail.com wrote:
Here is how you add multiple namespaces to the ini
autoloadernamespaces.0 = Zend_
autoloadernamespaces.1 = Core_
autoloadernamespaces.2 = Models_
Dont forget the include path in the ini
includePaths.library = APPLICATION_PATH /library/
Hope that helps some
Terre
-Original
What does the $this-form-buildForm(); return?
-Original Message-
From: rpsimao [mailto:rpsi...@mac.com]
Sent: Monday, February 15, 2010 5:33 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Re: Zend_Form displayGroup render problem
Can anyone help me? I'm really stuck on this
: rpsimao [mailto:rpsi...@mac.com]
Sent: Monday, February 15, 2010 11:19 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Re: Zend_Form displayGroup render problem
It returns an array of Zend_Form_Elements.
Sent from my iPhone
On 2010/02/16, at 02:30, Terre Porter [via Zend Framework
I accessed the view object like this in a resource plugin, might work in the
bootstrap also.
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer-init();
$this-_view = $viewRenderer-view;
Take a look at
Potential code injection risk with that code.
-Original Message-
From: Mark Steudel [mailto:msteu...@gmail.com]
Sent: Monday, February 01, 2010 2:44 PM
To: debussy007
Cc: fw-general
Subject: Re: [fw-general] Echo a string containing the full php webpage -
issue
You could try doing
Incase anyone else tried to use the link to get to the webinar and found it
to be broken.
The webinar is also listed here - http://www.zend.com/en/company/events/
-Original Message-
From: Matthew Weier O'Phinney [mailto:matt...@zend.com]
Sent: Tuesday, December 15, 2009 3:25 PM
To:
Anyone got some pointers?
I read two pages with info about dbAlias, but it doesn't seem to have ever
left the proposed state.
http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Adapter_Alias+-+Joseph
+Lee
http://framework.zend.com/issues/browse/ZF-7997
There was also a reference to another
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.
I use the layout in my application but do have times where I need to change
or disable it.
To disable the layout in a controller this works,
Zend_Layout::getMvcInstance()-disableLayout();
To change the layout from in any controller without a lot of code changes.
// can adjust the layout path
I'm happy you posted this as I didn't find any reference to INVALID in
Zend_Validate_Regex.
I've been using the preset const values in the Zend_Validate(functions) as
reference for custom error messages.
Like this :
$fname = new Zend_Form_Element_Text('first_name');
$fname-setLabel('First
Nevermind,
I figured out that my the Zend Studio's framework reference file is out of
sync with the 1.9 release code , because it thinks its still 1.8 - grrr.
So the INVALID didn't exist in the project reference but did exists on the
devel box.
Terre
-Original Message-
From: Terre
Did you try something like this after you add your water mark?
header(Content-Disposition: inline; filename=result.pdf);
header(Content-type: application/x-pdf);
echo $pdf-render();
I'm just now getting to a point to start using Zend_PDF so i've not tested
this yet.
Terre
-Original
(Content-type: application/x-pdf);
echo $pdf-render();
If produces a pdf with the text Modified by Zend Framework! toward the
bottom of the file, on all the pages.
-Original Message-
From: Terre Porter [mailto:tpor...@webpage-builders.com]
Sent: Friday, August 07, 2009 12:12 PM
To: fw
Glad it works,
In my real app I have headers that also work for inline viewing, however
I've been running the Win7rc and it and adobe pdf reader + browser does not
like to play nicely. The inline viewing crashes or launches the reader then
fails with an error message and after closing, it shows
the page params ?
-Original Message-
From: Terre Porter [mailto:tpor...@webpage-builders.com]
Sent: Sunday, August 02, 2009 10:14 PM
To: fw-general@lists.zend.com
Subject: [fw-general] request missing action param
Hello,
I made a new VMware devbox the other day and noticed an odd issues
resources.frontController.defaultControllerName = index
resources.frontController.defaultAction = index
resources.frontController.useDefaultControllerAlways = true
-Original Message-
From: Terre Porter [mailto:tpor...@webpage-builders.com]
Sent: Monday, August 03, 2009 1:53 PM
To: fw
Personally, I'd prefer it being announced in the mailing list over twitter.
_
From: mbneto [mailto:mbn...@gmail.com]
Sent: Tuesday, June 30, 2009 10:39 AM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] ZF 1.8 Webinar
I am not sure if I am not following the right person but
Not sure if this might help but I just read something about the db charset.
this page, http://forums.zend.com/viewtopic.php?f=69
http://forums.zend.com/viewtopic.php?f=69p=3535 p=3535 shows the charset
value as utf-8
Terre
edit: (resent to list, I hate reply vs reply all)
_
I think the problem here is with PHP 5.3.0: Fatal error: Undefined class
constant 'MYSQL_ATTR_INIT_COMMAND' . This is not defined in PDO.
Ah, I see. I don't have PHP 5.3.0 to test with here. I did found a bug
report for this though, http://bugs.php.net/bug.php?id=47224
Also think utf-8 as
-Original Message-
From: Ralph Schindler [mailto:ralph.schind...@zend.com]
Sent: Tuesday, June 30, 2009 3:40 PM
To: Terre Porter
Cc: fw-general@lists.zend.com
Subject: Re: [fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract
Silly question, but do you have the rest of the parameters set
I think its just changing the settings for the adapter in the ini.
resources.db.adapter = Pdo_Oci
resources.db.params.host = ?
resources.db.params.username = ?
resources.db.params.password = ?
resources.db.params.dbname = ?
resources.db.params.port = ? (1522 maybe)
I don't have an oracle db but
Hey all,
I seem to not be able to get the default table adapter to load when
accessing my dbtable class.
A added the line in my config, resources.db.isDefaultTableAdapter = true.
I'm using this,
http://framework.zend.com/docs/quickstart/create-a-model-and-database-table,
just the dbtable
2009/6/25 iceangel89 comet2...@gmail.com:
anyone?
Martin Martinov [mailto:matix...@gmail.com]:
Apparently no, nobody.
It could be that some of us are too busy to reply to every message that
comes in to the list.
I think I've already wrote you a private mail kindly asking
you to
This worked for me.
function indexAction() {
// disable view and layout
Zend_Layout::getMvcInstance()-disableLayout();
$this-_helper-viewRenderer-setNoRender();
// setup realpath to image
$path_to_image = $_SERVER['DOCUMENT_ROOT'].'/images/EQ2_000192.jpg';
// set headers
1. What OS you are using during development? Windows? Mac? Linux?
Windows (Editor), Linux (server)
2. Do you edit source code on localhost or remote? i.e. is your testing
environment reside on localhost or remote?
Local edit using samba share to remote vmware linux development server.
3.
First, the team now reports to Zeev Suraski, Zend's CTO. Please welcome
him to the lists!
Welcome to the nut house, err I mean, to the fun house - yea that's right.
I'd like to thank Wil for his contributions to the Zend Framework project!
Ditto! Best wishes and good luck with whatever your
I think nabble has an rss feed also.
You might get it to view the way you want using a rss viewer.
Terre
-Original Message-
From: Sebastian H. [mailto:s.ho...@gmx.net]
Sent: Wednesday, April 01, 2009 12:10 PM
To: fw-general@lists.zend.com
Subject: AW: [fw-general] Using this Mailing
Hey all,
Here I thought I was just losing my mind or having a bad case of day ja vu.
Over the last few days I've noticed the mailing list seems to be sending out
messages several times.
Today I got another copy of my message from a topic that I replied to
yesterday.
Anyone have ideas as to
Pesky auto-spell check ...
-Original Message-
From: Terre Porter [mailto:tpor...@webpage-builders.com]
Sent: Friday, March 27, 2009 12:05 PM
To: fw-general@lists.zend.com
Subject: [fw-general] dilapidate messages
Hey all,
Here I thought I was just losing my mind or having a bad case
Your code worked for me if I changed
$page1-setFont($font,
36)-setFillColor(Zend_Pdf_Color_Html::color('#cc'));
to
$page1-setFont($font, 36);
$page1-setFillColor(Zend_Pdf_Color_Html::color('#cc'));
Terre
_
From: Salvador Benimeli [mailto:salb...@gmail.com]
Sounds like there other non-image content being pushed to the browser.
I got something similar when sending PDF's to the browser.
Check the bottom of your controller for any spaces after the ?
Also if you open the image directly then view its source, you should be able
to see the extra
I don't think you can use include as a src, as include executes the php
script where the iframe wants a url location to load.
Try this ...
iframe src=?php getenv('DOCUMENT_ROOT') .
'/PATH-TO-FILE-FROM-DOCUMENT_ROOT-location/.main.php'; ? ...
Just update the path to the file starting from the
Oh, duh!
*bonks self in the head
Terre
_
From: Tim Fountain [mailto:t...@tfountain.co.uk]
Sent: Thursday, March 05, 2009 3:10 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Using HTML iframes with ZendFramework
On 05/03/2009, Terre Porter tpor...@webpage-builders.com
Hey all,
I'm working on an upgrade to a existing site that has several url paths with
underscores.
I've been trying to figure out what would be the best way to handle these,
as I can not easily change the urls all over the site.
I read about this option in the list archives.
$dispatcher =
Anyone know what might have caused this error ?
Warning: simplexml_load_file() [function.simplexml-load-file]:
/home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data/en_US.xml:1:
parser error : Document is empty in
/home/tbnweek/public_html/e-edition/includes/Zend/Locale/Data.php on line
Wil Sinclair wrote:
I'll review 'to patch or not to patch' decision in more detail going
forward and announce
it on the contributors, general, and announce lists if we patch a release
in the future.
Thank you.
I can see how it could be useful. However, I also see how it would be hard
to decide
How are you displaying the form and captcha image in your view?
-Original Message-
From: Deepak Shrestha [mailto:d88...@gmail.com]
Sent: Monday, January 26, 2009 4:07 AM
To: fw-general@lists.zend.com
Subject: [fw-general] Re: How to use Image based Captcha?
Hi,
I found out that image
$this-view-layout()-#variablename# = value;
This didn't work for me from an action controller.
Here is what I ended up using a mixture of. I don't know if these are the
best ways but I found them useful.
You can use this in your view template:
$this-headTitle('New Zend Framework Project');
I did something like this to merge two tables into one, using the Zend_Auth.
$this-auth = Zend_Auth::getInstance();
$authAdapter = new Zend_Auth_Adapter_DbTable($this-db);
$authAdapter-setTableName('users');
$authAdapter-setIdentityColumn('username');
I can't seem to find the right post in the list archives and it's evading me
in the documentation.
How to remove the dd/dt decorators from a form element.
I seem to have forgotten how to write this today.
My decorators currently are:
$Decorators['default_hidden_element'] = array(
Ok, so I post a question and then the answer jumps out of the list archives
..
$Decorators['default_hidden_element'] = array(
array('ViewHelper')
);
This removes the dd/dt from the element.
Arg ...
Terre
-Original Message-
From: Terre Porter
] Zend_Form_Element and addError function weirdness
-- Terre Porter [EMAIL PROTECTED] wrote (on Thursday, 04
December 2008, 04:23 PM -0500):
Hi all,
Am I reading what this function does incorrectly?
I read it as, set an error message for element, and set the element as
invalid or the same as what
Sounds like a very useful class to me also.
Terre
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Justin Plock
Sent: Thursday, December 04, 2008 5:53 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Re: Zend_Net Package?
A.J. Brown wrote:
Hello all,
I
There is an xml atom feed from nabble.com, if that helps.
http://www.nabble.com/Zend-Framework-Community-f16154.html (at the bottom of
the page)
Terre
-Original Message-
From: netlynx [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2008 12:33 PM
To: fw-general@lists.zend.com
Couple of things,
Would the \ in [/views\helpers/] cause problems in windows path?
C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/mbm/app/modules/config/views\helpers/
Also, the error doesn't say it is using [library/Zend/View/Helper] as an
include path.
Terre
-Original
Ah, okie that makes sence.
-Original Message-
From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2008 2:24 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Problems with View Helpers with update 1.5.1
to1.7.1
-- Terre Porter [EMAIL
Here is trimmed down version of what I have for a file download function. In
my version the filename is generated by the action params, you would have
customize that part to your setup. Content Type would also have to be
modified, as they are getting pdf files this setup.
Maybe it will help.
This would depend on the programmer and the style he/she used.
For example, I used the zend studio MVC bootstrap/initializer style in my
project.
You might have something like this in the bootstrap.php in you app dir.
Could also be in the index.php in the web root, if not using a bootstrap
file.
render function as the existing one in
Zend_Form_Element_Captcha but with the tr's added on the return.
Terre
-Original Message-
From: Terre Porter [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2008 7:29 PM
To: fw-general@lists.zend.com
Subject: [fw-general] help setDecorators
I'm trying to create a captcha form element in a table row.
I have this for a text element.
// set trtd wrapper around element
$email-setDecorators(array(
'ViewHelper',
'Description',
'Errors',
array(array('data'='HtmlTag'), array('tag' = 'td')),
array('Label', array('tag' = 'td')),
function indexAction() {
$this-logger-debug('index A');
$this-function1('test1');
$this-logger-debug('index B');
$this-function2('test2');
$this-logger-debug('index C');
}
function function1() {
$this-logger-debug('test 1 !');
}
function
Hello,
I've got myself a bit confused, maybe someone can clarify this for me.
Some background:
I've got variables in my actions that I would like to pass to my layout.
Currently I'm doing this ...
In my actionController, --- $this-view-noContentBorder = true;
In the view template for that
no
errors.
I'll leave this patch my code so that I can continue programming on my
project ...
Any thoughts on this problem ?
Terre
-Original Message-
From: Terre Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2008 12:12 PM
To: fw-general@lists.zend.com
Subject: [fw-general
I found this example code in one of the bug reports ...
(http://framework.zend.com/issues/browse/ZF-4045)
Works good enough to get an idea of how to put the captcha to use. (as there
is limited documentation examples)
I didn't see one of these Zend_Form_Element_Captcha in your code, maybe it
is
I got one too..
I figured it was someone who was signed up on the list that has a email
acceptance validation.
If you don't validate they keep rejecting your mail and you keep getting
that message.
Terre
-Original Message-
From: Jan Pieper [mailto:[EMAIL PROTECTED]
Sent: Monday,
I was able to get your _createElement function to create elements that did
validate as expected. I have something similar but it's not using the
zend_form class, so I have to manaually test each field for validation.
Though, after making this test code - I am likely to redo my original form
I had something similar but still wanted to keep the shared layout but
change the layout on special pages.
Here is what I did.
In the Initializer class :
// Bootstrap layouts
Zend_Layout::startMvc(array(
'layoutPath' = $this-_root . '/application/library/layouts',
'layout' = 'layouttemplate1'
) and see where
the output started.
2008/10/1 Terre Porter [EMAIL PROTECTED]
Help...
I'm having a bit of a pain with some surprise headers being set
somewhere...
I've put this in my controllers preDispatch function for testing..
Code
? on our PHP
files!
Terre Porter wrote:
Ha
That worked. There was a funky character at the end of one of my php
includes... Not sure where it came from, but now that it's gone the
pages are working again... Yay!
Totally forgot about adding file and line number in that function...
It's been
Hey all,
Just thought I'd pass on this observation though not related directly to the
framework but this happens to be the only list I'm on anymore.
Anyways, I've been monitoring a large influx of code injection attempts by
inserting php code in the server variables, HTTP_USER_AGENT mostly.
: Tuesday, September 16, 2008 7:21 PM
To: Terre Porter
Cc: fw-general@lists.zend.com
Subject: Re: [fw-general] programmers fyi
OK, I can see how this would be a problem if you logged user agents in the
database, someone sent an SQL injection attempt, and you didn't use prepared
statements or escape
I don't see a reference to a helper path for the view to use.
Something like : $this-_view-addHelperPath('path-to-helpers-dir');
Hope it helps
Terre
-Original Message-
From: vladimirn [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2008 1:19 PM
To: fw-general@lists.zend.com
I've been following this a little.
If I understand this right...
The json decode works if you dump the var but not if you allow the page to
run through the view.
What happens in the view?
You mention these :
-- sets HTML head
-- spits out contents
Does the view do anything to the data? i.e.
world and a var dump of the json data.
What needs to happen to the $results data for it to be used on the
layout/view?
Terre
-Original Message-
From: Jake McGraw [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2008 1:07 PM
To: Terre Porter; fw-general
Subject: Re: [fw-general
Matthew wrote:
The potential failure here is that Zend_View probably should be escaping
variables by
default, and this is an improvement slated for 2.0.0.
Is this for all fields that are sent to a view?
Are we talking about something like:
$this-view-myvar = blah;
And that being
scriptinginZend_Db_Statement_Exception
handling
-- Terre Porter [EMAIL PROTECTED] wrote (on Wednesday, 30 July
2008, 02:54 PM -0400):
Matthew wrote:
The potential failure here is that Zend_View probably should be
escaping
variables by
default, and this is an improvement slated for 2.0.0.
Is this for all fields
I don't see a reason to extend the class into the auth object, just to do
the same thing the original object does. But, I'm yet to have a complete cup
of wake-up juice so I could just be not reading it right.
Here is a dirty-fast auth test I made when I was trying to figure out how
the auth
Move this
require_once 'Test.php';
$test = new Test($acl);
under
$acl-allow('member', 'test');
Terre
-Original Message-
From: maxarbos [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 2:59 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Is it possible to use
Here is the code I was playing with for you to compare:
[code]
require_once 'Zend/Acl.php';
$acl=new Zend_Acl();
require_once('Zend/Acl/Role.php');
$acl-addRole(new Zend_Acl_Role('guest'))
-addRole(new Zend_Acl_Role('member'));
our business to another host because of the many
problems plaguing ThePlanet. I guess they still haven't made any
improvements.
Terre Porter wrote:
Well that explains why the URL injection attacks have slowed down.
ThePlanet = The unsecure hacker spammer infested hosting company (imo)
Terre
Well that explains why the URL injection attacks have slowed down.
ThePlanet = The unsecure hacker spammer infested hosting company (imo)
Terre
-Original Message-
From: Wil Sinclair [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2008 6:33 PM
To: Zend Framework General
Subject:
I tried this quickly like so:
Code:
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
date_default_timezone_set('Europe/Madrid');
$d = new Zend_Date();
$d-set('1977-01-01');
Zend_Debug::dump($d-__toString());
Output:
string(23) Jan 1, 1977 12:00:00 AM
array(15) {
A couple thoughts,
1. the request object does not appear to be available until after a
$front_controller-dispatch() call
2. there is a function that returns the controllers directory
$front_controller-getControllerDirectory($modulename optional)
However, neither is available (in my code) until
O'Phinney [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2008 1:26 PM
To: fw-general@lists.zend.com
Subject: Re: [fw-general] Re: [fw-mvc] Get module directory?
-- Terre Porter [EMAIL PROTECTED] wrote (on Tuesday, 18 March
2008, 12:57 PM -0400):
A couple thoughts,
1. the request object does
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 12, 2007 4:50 PM
To: Terre Porter
Cc: fw-general@lists.zend.com
Subject: Re: [fw-general] fetchAll($where, $order)
$sql = select * from sometable where id = ?
$data = 1;
FetchAll ($sql, $data)
Would replace the ? with the vaule of 1.
Actually
87 matches
Mail list logo