[fw-general] HTTP response code when not logged in

2010-03-19 Thread Marian Meres
Hello everyone, what kind of HTTP response codes would you suggest using when accessing a page which requires user to be logged in and there is no current identity present? Initially I thought about 401 Unauthorized, but the definition says: The response MUST include a WWW-Authenticate header

[fw-general] Zend_Navigation and 'onclick'

2010-03-19 Thread Rocco Bruyn
Hi all, I'm working on a project which (surprisingly) has pages and a navigation menu. The 'elbows' in the menu are not clickable. They just expand the underlying sub-pages. This works fine by creating a Zend_Navigation_Page_Uri with an uri '#'. But the browser still responds to the click

RE: [fw-general] Using an external database for user credential

2010-03-19 Thread Sergio Rinaudo
Thank you very much for your advices Hector. I have one more question, is anything changing on models management using multidb? How do a model know which database resource must use? Thanks Sergio From: djvir...@gmail.com Date: Tue, 16 Mar 2010 09:23:26 -0700 Subject: Re: [fw-general]

Re: [fw-general] Would anyone want Zend_VersionControl_Subversion?

2010-03-19 Thread Shaun Farrell
Steven, I would like to see this too! I like Zend_VersionControl_* Look forward to see it something. Shaun J. Farrell Washington, DC (202) 713-5241 www.farrelley.com On Thu, Mar 18, 2010 at 6:00 PM, Danny Fröberg danny.frob...@foreststar.net wrote: Steven, Yes would love to have it, use

Re: [fw-general] Would anyone want Zend_VersionControl_Subversion?

2010-03-19 Thread Саша Стаменковић
Nice to have. Regards, Saša Stamenković On Fri, Mar 19, 2010 at 12:58 PM, Shaun Farrell farrel...@gmail.com wrote: Steven, I would like to see this too! I like Zend_VersionControl_* Look forward to see it something. Shaun J. Farrell Washington, DC (202) 713-5241 www.farrelley.com

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Jake McGraw
On Fri, Mar 19, 2010 at 2:17 AM, Mike A mik...@hotmail.co.uk wrote: On 18 Mar 2010 at 19:02, Jake McGraw wrote: I'd like to use Zend_Loader_Autoloader::setZfPath() and the autoloaderZfPath application.ini directive to select a ZF version based on Environment, exactly as described here:

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread scs
Hi, I had exactly the same problem. *ZendFramework dir structure (the same of the example on zf manual) -project --ZendFramework 1.10.2-minimal 1.9.6-minimal *project/public/index.php //PROJECT_ROOT_DIR is defined above set_include_path(implode(PATH_SEPARATOR,

[fw-general] Model class is not found in zend framework project (quickstart)

2010-03-19 Thread Dumindu
The things I did is 1. zf create project demo1 in command prompt 2. add the lines to application.ini * appnamespace = Application * resources.layout.layoutPath = APPLICATION_PATH /layouts/scripts 3. add a layout with header and footer using partial() (They are

Re: [fw-general] HTTP response code when not logged in

2010-03-19 Thread Matthew Weier O'Phinney
-- Marian Meres marian.me...@gmail.com wrote (on Friday, 19 March 2010, 08:43 AM +0100): what kind of HTTP response codes would you suggest using when accessing a page which requires user to be logged in and there is no current identity present? Initially I thought about 401 Unauthorized,

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Matthew Weier O'Phinney
-- Jake McGraw jmcgr...@gmail.com wrote (on Thursday, 18 March 2010, 07:02 PM -0400): I'd like to use Zend_Loader_Autoloader::setZfPath() and the autoloaderZfPath application.ini directive to select a ZF version based on Environment, exactly as described here:

[fw-general] Zend Router with Hostname and other routes

2010-03-19 Thread kilowatt303
Hello all, Its been years since i was stuck enough with anything to ask for help, but this is driving me nuts! My router config: ?xml version=1.0 encoding=UTF-8? routes user typeZend_Controller_Router_Route_Hostname/type route:username.example.com/route /user

Re: [fw-general] Using an external database for user credential

2010-03-19 Thread Hector Virgen
The only thing that is automatic regarding the DB is Zend_Db_Table and its default adapter. You can specify the default by using this confing option: resources.multidb.db2.default = true For everything else, you'll need to inject the db instance into your models (for example, by injecting into a

[fw-general] RE: Graphs using Zend Framework

2010-03-19 Thread kilowatt303
Here is how i set up OpenFlash charts (http://teethgrinder.co.uk/open-flash-chart/) Controller action: public function statsAction(){ $this-_helper-viewRenderer-setNoRender(true); $this-_helper-layout-disableLayout(); $transactions = new Orders(); $data =

Re: [fw-general] Zend_Navigation and 'onclick'

2010-03-19 Thread Hector Virgen
I'm not sure if you can add custom attributes to the navigation, but why not use external Javascript for this instead of inline? In jQuery it would be simple: jQuery(function($) { $('ul.navigation a[href=#]').click(function(event) { event.preventDefault(); }); }); -- Hector

[fw-general] Re: Zend Router with Hostname and other routes

2010-03-19 Thread kilowatt303
Well i have solved it myself, here is the solution: ?xml version=1.0 encoding=UTF-8? routes user typeZend_Controller_Router_Route_Hostname/type route:username.avidimages.net/route chains default typeZend_Controller_Router_Route_Module/type

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Mike A
On 19 Mar 2010 at 10:52, Matthew Weier O'Phinney wrote: -- Jake McGraw jmcgr...@gmail.com wrote (on Thursday, 18 March 2010, 07:02 PM -0400): I'd like to use Zend_Loader_Autoloader::setZfPath() and the autoloaderZfPath application.ini directive to select a ZF version based on Environment,

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Matthew Weier O'Phinney
-- Mike A mik...@hotmail.co.uk wrote (on Friday, 19 March 2010, 04:29 PM -): On 19 Mar 2010 at 10:52, Matthew Weier O'Phinney wrote: -- Jake McGraw jmcgr...@gmail.com wrote (on Thursday, 18 March 2010, 07:02 PM -0400): I'd like to use Zend_Loader_Autoloader::setZfPath() and the

[fw-general] Re: Trying to add some data to database from a form

2010-03-19 Thread stelios
ok thanks, i managed to figure it out a while after i first posted and i corrected. but now i have another issue... Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in C:\xampp\htdocs\eshop\public\modules\header.php,

[fw-general] Re: Trying to add some data to database from a form

2010-03-19 Thread vb
- Well, check your modules\header.php, line 3, as the message states. Someone is outputting on line 3 or before. Maybe an include file. - Check that there are no spaces/anything before ?php in the php files. - Delete all closing ? in php files. Spaces after can/will cause outputting. - Check

[fw-general] Re: Trying to add some data to database from a form

2010-03-19 Thread stelios
1- Well, check your modules\header.php, line 3, as the message states. Someone is outputting on line 3 or before. Maybe an include file. 2- Check that there are no spaces/anything before ?php in the php files. 3- Delete all closing ? in php files. Spaces after can/will cause outputting. 4-

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Mike A
On 19 Mar 2010 at 13:22, Matthew Weier O'Phinney wrote: -- Mike A mik...@hotmail.co.uk wrote (on Friday, 19 March 2010, 04:29 PM -): On 19 Mar 2010 at 10:52, Matthew Weier O'Phinney wrote: -- Jake McGraw jmcgr...@gmail.com wrote (on Thursday, 18 March 2010, 07:02 PM -0400):

[fw-general] Getting error when I try to create first project command line

2010-03-19 Thread Jason Lehman
I followed the installation directions but when I run the client I get: PHP Fatal error: Cannot access self:: when no class scope is active in /var/backup/zendframeworks/ZendFramework-1.10.2/library/Zend/Tool/Framework/Provider/Signature.php on line 355 I have the path to the library in my

[fw-general] Re: Trying to add some data to database from a form

2010-03-19 Thread vb
Hm, I wasn't looking careful enough your code. As I said in my first answer, index.php is not meant for any output. Thus, the code from index.php - require('modules/header.php'); - require('modules/menu.php'); should go to the same place where you have put titleEshop/title ... It doesn't

[fw-general] Re: Trying to add some data to database from a form

2010-03-19 Thread stelios
ok i figured out the problem with your help, thanks for giving me to understand how it works. i moved my .php files here application\custom\modules and my images at application\custom\art so i have to change the image links in my php files can you help me ? first it is wrong to put my php

Re: [fw-general] Zend_Loader_Autoloader::setZfPath() + application.ini won't ever work

2010-03-19 Thread Jake McGraw
So here is what I ended up doing: Directory for different versions of ZF % mkdir -p /usr/share/php/ZendFramework Directory for Zend_Loader_*, Zend_Application, Zend_Exception (static version 1.10.2) % mkdir -p /usr/share/php/ZendFrameworkLoader/library/Zend % cd /usr/share/php/ZendFramework %

Re: [fw-general] Getting error when I try to create first project command line

2010-03-19 Thread Ryan Schmidt
On Mar 19, 2010, at 13:25, Jason Lehman wrote: I followed the installation directions but when I run the client I get: PHP Fatal error: Cannot access self:: when no class scope is active in /var/backup/zendframeworks/ZendFramework-1.10.2/library/Zend/Tool/Framework/Provider/Signature.php