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

2010-03-20 Thread Ryan Schmidt
On Mar 19, 2010, at 14:56, stelios wrote: > 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

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