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.ph

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 %

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

2010-03-19 Thread vb
I think you should study in more depth the framework. It is very a powerful framework, and "unfortunately" very, very flexible framework and therefore not so easy to start from scratch. I think the best way would be to install and get the working demo app from http://framework.zend.com/manual/e

[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 code

[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 Eshop ... It doesn't matter if y

[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 php

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 wrote > (on Friday, 19 March 2010, 04:29 PM -): > > On 19 Mar 2010 at 10:52, Matthew Weier O'Phinney wrote: > > > > > -- Jake McGraw wrote > > > (on Thursday, 18 March 2010, 07:02 PM -0400): > > > > I'd like to use Zend_Loa

[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 "" in php files. Spaces after can/will cause outputting. 4- Check if any file has UTF BOM chars at the beginn

[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 "" in php files. Spaces after can/will cause outputting. - Check if any file has UTF BOM chars at the beginning

[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, line

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

2010-03-19 Thread vb
In ZF, index.php is not meant for outputting any characters and definitely not the HTML code. It is the entry point to you app. It makes first initializations, like include_path. The HTML code (Eshop ... ) should go into your process.phtml (or in your .phtml layout script, if you're using it, e.g

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

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

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 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

[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: Zend_Controller_Router_Route_Hostname :username.avidimages.net Zend_Controller_Router_Route_Module On default

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: 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 = $tr

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

[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: Zend_Controller_Router_Route_Hostname :username.example.com Zend_Controller_Router_Route_Module On

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

2010-03-19 Thread Matthew Weier O'Phinney
-- Jake McGraw 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: > > http://framework.zend.com/manual/en/zend.load

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

2010-03-19 Thread Matthew Weier O'Phinney
-- Marian Meres 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", but the definition

[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 perf

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, ar

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 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: >> >> >> http://frame

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 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 > > > > On Th

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 wrote: > Steven, > > Yes would love to have it, use case could be for having se

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] Using

[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 wh

[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