[fw-general] ZF2 - Rendering Partials in Other Modules

2013-03-14 Thread Terre Porter
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

[fw-general] ZF2 + ZendStudio + RemoteDevServer

2013-01-08 Thread Terre Porter
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

[fw-general] console where set RouteNotFoundStrategy help pls

2012-11-30 Thread Terre Porter
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 ==--==

RE: [fw-general] console where set RouteNotFoundStrategy help pls

2012-11-30 Thread Terre Porter
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

RE: [fw-general] [repost] how to wrap an element in a dl?

2011-11-06 Thread Terre Porter
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.

RE: [fw-general] view-getHelper in try..catch but still getting exception

2011-06-03 Thread Terre Porter
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

RE: [fw-general] view-getHelper in try..catch but still getting exception

2011-06-03 Thread Terre Porter
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:

RE: [fw-general] Zend_Acl 1.11 broken my code

2010-11-14 Thread Terre Porter
/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

RE: [fw-general] Zend_Acl 1.11 broken my code

2010-11-11 Thread Terre Porter
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

RE: [fw-general] Can you have multiple databases?

2010-09-18 Thread Terre Porter
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

[fw-general] Large DB recordset, while/loop, update rows

2010-08-20 Thread Terre Porter
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' =

RE: [fw-general] Generate WSDL

2010-06-04 Thread Terre Porter
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:

RE: [fw-general] Struggling with Resource Autoloading

2010-02-15 Thread Terre Porter
Here is how you add multiple namespaces to the ini autoloadernamespaces.0 = Zend_ autoloadernamespaces.1 = Core_ autoloadernamespaces.2 = Models_ Don’t forget the include path in the ini includePaths.library = APPLICATION_PATH /library/ Hope that helps some Terre -Original

RE: [fw-general] Re: Zend_Form displayGroup render problem

2010-02-15 Thread Terre Porter
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

RE: [fw-general] Re: Zend_Form displayGroup render problem

2010-02-15 Thread Terre Porter
: 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

RE: [fw-general] Module Resource View Helpers not available to Layout

2010-02-02 Thread Terre Porter
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

RE: [fw-general] Echo a string containing the full php webpage - issue

2010-02-01 Thread Terre Porter
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

RE: [fw-general] Zend_Form decorators webinar tomorrow

2009-12-16 Thread Terre Porter
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:

[fw-general] multiple databases with application.ini?

2009-12-07 Thread Terre Porter
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

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.

RE: [fw-general] Using Zend Layout for module not main application

2009-09-05 Thread Terre Porter
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

RE: [fw-general] Zend_Validate_Regex issue

2009-08-09 Thread Terre Porter
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

RE: [fw-general] Zend_Validate_Regex issue

2009-08-09 Thread Terre Porter
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

RE: [fw-general] Zend_pdf doesn't commit changes

2009-08-07 Thread Terre Porter
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

RE: [fw-general] Zend_pdf doesn't commit changes

2009-08-07 Thread Terre Porter
(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

RE: [fw-general] Zend_pdf doesn't commit changes

2009-08-07 Thread Terre Porter
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

[fw-general] execution order for the Zend_Application style?

2009-08-03 Thread Terre Porter
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

RE: [fw-general] execution order for the Zend_Application style?

2009-08-03 Thread Terre Porter
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

RE: [fw-general] ZF 1.8 Webinar

2009-06-30 Thread Terre Porter
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

RE: [fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread Terre Porter
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) _

RE: [fw-general] Problems with 'charset' option in db configuration.

2009-06-30 Thread Terre Porter
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

RE: [fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract

2009-06-30 Thread Terre Porter
-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

RE: [fw-general] how to configure application.ini to use oracle?

2009-06-27 Thread Terre Porter
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

[fw-general] isDefaultTableAdapter and Zend_Db_Table_Abstract

2009-06-26 Thread Terre Porter
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

RE: [fw-general] Implementing Modules

2009-06-25 Thread Terre Porter
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

RE: [fw-general] Problem with raw image output

2009-06-17 Thread Terre Porter
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

RE: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-04 Thread Terre Porter
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.

RE: [fw-general] Zend Framework team reorganization

2009-04-14 Thread Terre Porter
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

RE: [fw-general] Using this Mailing List as Newsgroup

2009-04-01 Thread Terre Porter
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

[fw-general] dilapidate messages

2009-03-27 Thread Terre Porter
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

RE: [fw-general] duliplicate messages

2009-03-27 Thread Terre Porter
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

RE: [fw-general] Problems creating a simple pdf file

2009-03-26 Thread Terre Porter
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]

RE: [fw-general] outputting image from controller private function

2009-03-13 Thread Terre Porter
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

RE: [fw-general] Using HTML iframes with ZendFramework

2009-03-05 Thread Terre Porter
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

RE: [fw-general] Using HTML iframes with ZendFramework

2009-03-05 Thread Terre Porter
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

[fw-general] Question about underscores in controller and action names

2009-02-02 Thread Terre Porter
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 =

[fw-general] Zend_Locale - simplexml_load_file - parser error : Document is empty

2009-01-29 Thread Terre Porter
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

RE: [fw-general] No announce for 1.7.3PL1

2009-01-27 Thread Terre Porter
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

RE: [fw-general] Re: How to use Image based Captcha?

2009-01-26 Thread Terre Porter
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

RE: [fw-general] assigning variables inside the layout.phtml file

2009-01-23 Thread Terre Porter
$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');

RE: [fw-general] Zend_Auth and a Join??

2009-01-15 Thread Terre Porter
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');

[fw-general] refresh memory please, remove the dd/dt from form elements

2008-12-10 Thread Terre Porter
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(

RE: [fw-general] refresh memory please, remove the dd/dt from form elements

2008-12-10 Thread Terre Porter
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

RE: [fw-general] Zend_Form_Element and addError function weirdness

2008-12-04 Thread 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

RE: [fw-general] Re: Zend_Net Package?

2008-12-04 Thread Terre Porter
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

RE: [fw-general] Zend Mailing Lists [All]

2008-12-03 Thread Terre Porter
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

RE: [fw-general] Problems with View Helpers with update 1.5.1 to 1.7.1

2008-12-03 Thread Terre Porter
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

RE: [fw-general] Problems with View Helpers with update 1.5.1 to1.7.1

2008-12-03 Thread Terre Porter
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

RE: [fw-general] Action Helper To Send Files?

2008-11-20 Thread Terre Porter
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.

RE: [fw-general] How the heck do you go into production mode?

2008-11-19 Thread Terre Porter
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.

RE: [fw-general] help setDecorators for Zend_Form_Element_Captcha

2008-11-11 Thread Terre Porter
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

[fw-general] help setDecorators for Zend_Form_Element_Captcha

2008-11-10 Thread Terre Porter
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')),

RE: [fw-general] forward() question

2008-11-08 Thread Terre Porter
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

[fw-general] Layout assign function...

2008-11-06 Thread Terre Porter
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

RE: [fw-general] Layout assign function... (temp fix)

2008-11-06 Thread Terre Porter
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

RE: [fw-general] Zend_Capcha

2008-11-04 Thread Terre Porter
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

RE: [fw-general] Linux Gaming Antispam

2008-11-03 Thread Terre Porter
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,

RE: [fw-general] Zend Form Validation

2008-11-03 Thread Terre Porter
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

RE: [fw-general] Re: changing layout path problem

2008-10-30 Thread Terre Porter
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'

RE: [fw-general] help pls: headers being set, before preDispatch

2008-10-01 Thread Terre Porter
) 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

RE: [fw-general] help pls: headers being set, before preDispatch

2008-10-01 Thread Terre Porter
? 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

[fw-general] programmers fyi

2008-09-16 Thread Terre Porter
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.

RE: [fw-general] programmers fyi

2008-09-16 Thread Terre Porter
: 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

RE: [fw-general] One simple problem tooks me 2 hour- hope it will help someone..

2008-09-12 Thread Terre Porter
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

RE: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Terre Porter
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.

RE: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Terre Porter
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

RE: [fw-general] Cross site scripting inZend_Db_Statement_Exception handling

2008-07-30 Thread Terre Porter
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

RE: [fw-general] Cross site scriptinginZend_Db_Statement_Exception handling

2008-07-30 Thread Terre Porter
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

RE: [fw-general] Combining Zend_Auth with Zend_Auth_Adapter

2008-07-25 Thread Terre Porter
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

RE: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread Terre Porter
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

RE: [fw-general] Is it possible to use Zend_ACL without MVC

2008-07-10 Thread Terre Porter
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'));

RE: [fw-general] Exploding Data Centers

2008-06-06 Thread Terre Porter
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

RE: [fw-general] Exploding Data Centers

2008-06-02 Thread Terre Porter
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:

RE: [fw-general] Date Warning

2008-05-22 Thread Terre Porter
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) {

RE: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Terre Porter
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

RE: [fw-general] Re: [fw-mvc] Get module directory?

2008-03-18 Thread Terre Porter
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

RE: [fw-general] fetchAll($where, $order)

2007-12-12 Thread Terre Porter
[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