Programmer's Reference Guide
| モデルとデータベーステーブルの作成 |
Create A Form
For our guestbook to be useful, we need a form for submitting new entries.
Our first order of business is to create the actual form class. To create the empty form class, execute:
- % zf create form Guestbook
- Creating a form at application/forms/Guestbook.php
- Updating project profile '.zfproject.xml'
This will create the directory application/forms/ with the classfile Guestbook.php. Open that file and update it so it reads as follows:
- // application/forms/Guestbook.php
- class Application_Form_Guestbook extends Zend_Form
- {
- public function init()
- {
- // Set the method for the display form to POST
- $this->setMethod('post');
- // Add an email element
- 'label' => 'Your email address:',
- 'required' => true,
- 'EmailAddress',
- )
- ));
- // Add the comment element
- 'label' => 'Please Comment:',
- 'required' => true,
- )
- ));
- // Add a captcha
- 'label' => 'Please enter the 5 letters displayed below:',
- 'required' => true,
- 'captcha' => 'Figlet',
- 'wordLen' => 5,
- 'timeout' => 300
- )
- ));
- // Add the submit button
- 'ignore' => true,
- 'label' => 'Sign Guestbook',
- ));
- // And finally add some CSRF protection
- 'ignore' => true,
- ));
- }
- }
The above form defines five elements: an email address field, a comment field, a CAPTCHA for preventing spam submissions, a submit button, and a CSRF protection token.
Next, we will add a signAction() to our GuestbookController which will process the form upon submission. To create the action and related view script, execute the following:
- % zf create action sign Guestbook
- Creating an action named sign inside controller
- at application/controllers/GuestbookController.php
- Updating project profile '.zfproject.xml'
- Creating a view script for the sign action method
- at application/views/scripts/guestbook/sign.phtml
- Updating project profile '.zfproject.xml'
As you can see from the output, this will create a signAction() method in our controller, as well as the appropriate view script.
Let's add some logic into our guestbook controller's sign action. We need to first check if we're getting a POST or a GET request; in the latter case, we'll simply display the form. However, if we get a POST request, we'll want to validate the posted data against our form, and, if valid, create a new entry and save it. The logic might look like this:
- // application/controllers/GuestbookController.php
- class GuestbookController extends Zend_Controller_Action
- {
- // snipping indexAction()...
- public function signAction()
- {
- $request = $this->getRequest();
- $form = new Application_Form_Guestbook();
- if ($this->getRequest()->isPost()) {
- if ($form->isValid($request->getPost())) {
- $comment = new Application_Model_Guestbook($form->getValues());
- $mapper = new Application_Model_GuestbookMapper();
- $mapper->save($comment);
- return $this->_helper->redirector('index');
- }
- }
- $this->view->form = $form;
- }
- }
Of course, we also need to edit the view script; edit application/views/scripts/guestbook/sign.phtml to read:
- <!-- application/views/scripts/guestbook/sign.phtml -->
- Please use the form below to sign our guestbook!
- <?php
- $this->form->setAction($this->url());
注意: Better Looking Forms
No one will be waxing poetic about the beauty of this form anytime soon. No matter - form appearance is fully customizable! See the decorators section in the reference guide for details.
Additionally, you may be interested in our tutorial on form decorators.
注意: Checkpoint
Now browse to "http://localhost/guestbook/sign". You should see the following in your browser:
| モデルとデータベーステーブルの作成 |
Add A Comment
Please do not report issues via comments; use the ZF Issue Tracker.
If you have a JIRA/Crowd account, we suggest you login first before commenting.


Comments
Fatal error: Class 'Application_Form_Guestbook' not found in C:\Program Files\Zend\Apache2\htdocs\zendexamplecmd\application\controllers\GuestbookController.php on line 21
although the class 'Application_Form_Guestbook' was definitely in application\forms\Guestbook.php
I opened Zend Studio and created a project using File->New->Example...->Zend Framework->Create project at existing location (from existing source), and navigated to the location of the folder created with zf from the command line. It added a few files and changed some (e.g. the class 'Application_Form_Guestbook' in application\forms\Guestbook.php is called 'Default_Form_Guestbook' now).
Everything works fine now, including the Sign action. I know it is not really a solution as the project should work without Zend Studio as well, but it solved the problem.
Please use the form below to sign our guestbook!
Fatal error: Call to undefined function ctype_space() in /var/www/quickstart/library/Zend/Text/Figlet.php on line 467
I checked /application/controllers/GuestbookController.php, because I thought I come from there, but all is ok.
I would be happy if anyone can help me to solve this error.
I just fixed the error. 'ctype' was not installed. So I installed it.
Here is the error.
Fatal error: Class 'Application_Form_Guestbook' not found in /Applications/MAMP/htdocs/quickstart/application/controllers/GuestbookController.php on line 15
I also verified that the class 'Application_Form_Guestbook' was definitely in application\forms\Guestbook.php
I am running this on the 1.10 framework.
Fatal error: Call to a member function search() on a non-object in C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Tool\Project\Provider\Form.php on line 70
and just lost it. If you cant keep the quickstart guide working either the tests are bad, the features evolve too fast/uncontrolled or something else is just way off. How should someone consider the serious integration and usage of ZF if he needs to debug even at the very basic steps you try to guide him through?
Well maybe i ll find some time left to debug the errors and contribute the fixes but for now i just give up. That alone saddens me as i was really looking forward to the experience.
$loader = new Zend_Loader_Autoloader_Resource (array (
'basePath' => APPLICATION_PATH,
'namespace' => 'Application',
));
Now you can use the loader to set your modules for the current namespace:
$loader -> addResourceType ( 'model', 'models', 'Model');
$loader -> addResourceType ( 'form', 'forms', 'Form');
Now you will be able to load the forms in the sign page. This also explains the solution from Zsolt Monar posted above. If no namespace is loaded by the autoloader then zend will fallback to the default namespace. Renaming the form and model class to Default_ would work as well.
I work with the German Tutorial and found a Bug!
The Problem is in the Guestbook Controller:
public function signAction()
{
$request = $this->getRequest();
$form = new Application_Form_Guestbook();
if ($this->getRequest()->isPost()) {
if ($form->isValid($request->getPost())) {
$comment = new Application_Model_Guestbook($form->getValues());
$mapper = new Application_Model_GuestbookMapper();
$mapper->save($comment);
//$model->save();
return $this->_helper->redirector('index');
}
}
$this->view->form = $form;
}
GERMAN COMMENT:
Es wird kein Kommentar an die save() Methode übergeben und wurde kein neues Objekt für den Mapper erstellt.
Habe die Lösung im Englischen Tutorial gefunden. Es gibt offenbar Unterschiede zwischen diesen beiden Tutorials.
Übrigens werden bei mir keine Bilder angezeigt um die Ergebnisse zu kontrollieren.
Thanks for the TUTORIAL! Greetings from Munich
I'll go back a few pages and try to catch what's wrong.
However, I got another "Non-abstract method .... must contain body ..." error for an Application_Model_GuestbookMapper class in /application/models/Guestbook.php. Since there is an Application_Model_GuestbookMapper class in models/GuestbookMapper.php, I commented out this class in /models/Guestbook.php and the app worked fine. I don't know why that class was generated in /models/Guestbook.php.
Anyway, I'm using NetBeans IDE 6.9 dev build 8 March and the XAMPP stack, though I've also installed Zend Framework separately. I used the 'pear upgrade' function to update the ZF built into XAMPP to 1.10.2. However, the zf.bat script in XAMPP couldn't find the zf.ini script after it created it (!), which is why I installed the ZF separately. Combining the standalone zf.bat script and the ZF libraries in xampp/php/PEAR works fine. Though I had to define ZF_HOME in my env variables (Vista, of course).
I'm using MySQL because of the XAMPP stack. I used the alternate application.ini code described in http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zf-quickstart-mysql-2796.html. I didn't create a php script for creating the database and tables, because I was storing the db on MySQL's own system instead of inside the ZF project. Instead, I used NetBeans to create the MySQL database and run the SQL scripts to create the table and index. This worked fine.
The mapper should handle communication between the model and the database and NOT the controller and the database.
i.e. The code should read:
$comment = new Application_Model_Guestbook($form->getValues());
$comment->save();
INSTEAD OF:
$comment = new Application_Model_Guestbook($form->getValues());
$mapper = new Application_Model_GuestbookMapper();
$mapper->save($comment);
The mapper should handle communication between the model and the database and NOT the controller and the database.
i.e. The code should read:
$comment = new Application_Model_Guestbook($form->getValues());
$comment->save();
INSTEAD OF:
$comment = new Application_Model_Guestbook($form->getValues());
$mapper = new Application_Model_GuestbookMapper();
$mapper->save($comment);
The Application_Model_Guestbook class should have a protected $_mapper property, set and get methods for the mapper.
public function setMapper($mapper)
{
$this->_mapper = $mapper;
return $this;
}
public function getMapper()
{
if (null === $this->_mapper) {
$this->setMapper(new Application_Model_GuestbookMapper());
}
return $this->_mapper;
}
public function save()
{
$this->getMapper()->save($this);
}
I got the error while processing the form.
am using the ZF1.10
// application/controllers/UserController.php
<?php
class UserController extends Zend_Controller_Action
{
public function addAction()
{
// action body
$form = new Application_Form_Signup();
$this->view->form = $form;
}
.....
class Application_Form_Signup extends Zend_Form
{
class Application_Form_Signup extends Zend_Form
{
PHP Fatal error: Call to a member function search() on a non-object in /usr/local/zend/share/ZendFramework/library/Zend/Tool/Project/Provider/Form.php on line 70
Edit the file named Form.php named above in the error
Find the lines (line 104 in mine):
// determine if testing is enabled in the project
$testingEnabled = Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
Add the following lines right below the above line:
// create forms directory if it doesn't exist
if (!($formsDirectory = self::_getFormsDirectoryResource($this->_loadedProfile, $module))) {
$applicationDirectory = $this->_loadedProfile->search('applicationDirectory');
$formsDirectory = $applicationDirectory->createResource('formsDirectory');
}
Save the file and you should then be able to zf create form Guestbook.
my answer:
require_once 'application/forms/Guestbook.php';
$form = new Application_Form_Guestbook();
my answer:
require_once APPLICATION_PATH . '/forms/Guestbook.php';
$form = new Application_Form_Guestbook();
Only a few gotcha's in the tutorial overall, maybe a scrub is in order to clean some of it up. But most of the problems I had were environmental, not programental (but they were certainly mental)
Thanks for the tut.. now to figure out if I can actually use this or not..
I could build the whole application as they guided us to - only that I am using PDO_MYSQL (whose usage is provided in comments section in earlier pages).
Zend Framework 1.0.3
PHP 5.3 with PDO_MYSQL enabled
Apache 2.2
Windows Vista Home
Fatal error: Class 'Application_Form_Guestbook' not found in E:\php\test\application\controllers\GuestbookController.php on line 21
my answer:
require_once APPLICATION_PATH . '/forms/Guestbook.php';
$form = new Application_Form_Guestbook();
But technically speaking this would reduce the autoloader's performance according to the Zend Autoloader documentation. My solution to the issue was to modify the model importing line to this in the Bootstrap.php file:
16 $loader -> addResourceType( 'model', 'models', 'Model')
17 -> addResourceType( 'form', 'forms', 'Form');
This would mean that the Zend autoloader would then be used and fixed the issue for me.
Windows XP mit XAMPP.
Unter Ubuntu tritt dieser Fehler nicht auf.
Evtl. Pfadfehler im Loader in Verbindung mit Windows?
Had to switch the single and double quotes from "zf configure db-adapter '..."..."' to "...'...'"
Couldn't get it to run with SQLite so I used MySQL
Had to switch the single and double quotes from "zf configure db-adapter '..."..."' to "...'...'"
Couldn't get it to run with SQLite so I used MySQL
Fatal error: Call to a member function search() on a non-object in C:\...\Zend\ZendServer\share\ZendFramework\library\Zend\Tool\Project\Provider\Form.php on line 70
Suggested solution from David Einerson doesn't work either.
Using Version 1.11.7
Can Anybody tell me step by step to include that?
Where to write the code
"% zf create form Guestbook
Creating a form at application/forms/Guestbook.php
Updating project profile '.zfproject.xml'"
given @ the top of this page?
Please help me I am a newbie to php and Zend.
ThANKS
* Correct and prodigious use of PHP-5+ code classes, interfaces, exceptions and encapsulation
* Well thought out MVC structure and naming conventions
* Extensive library and methods that offer proven techniques
* Flexible framework model - devs can incorporate their own code, modules and plug-ins
I don’t like:
* Requires a seasoned developer or team of developers to comprehend and perhaps is unsuitable for new devs.
* Devs must create layouts, themes, database model, infrastructure etc. as it’s a “framework”
* Devs must write code to incorporate client JavaScript and AJAX client/server procedures
* It’s not a CMS (Content Management System) such as Drupal that handles many programming tasks
Conclusion:
Before adopting Zend Framework devs should consider using one of the many other robust and comprehensive solutions such as Drupal so as not the reinvent the wheel.
( ! ) Fatal error: Class 'Application_Model_GuestbookMapper' not found in C:\xampp\htdocs\ZendFramework\demos\quickstart\application\controllers\GuestbookController.php on line 15
I can see the GuestbookMapper class. What to do now?
require_once APPLICATION_PATH . '/forms/Guestbook.php';
require_once APPLICATION_PATH . '/models/Guestbook.php';
require_once APPLICATION_PATH . '/models/GuestbookMapper.php';
require_once APPLICATION_PATH . '/models/DbTable/Guestbook.php';
$this->addElement('hash', 'csrf', array(
'ignore' => true,
));
create a session file in the directory set up in the "session.save_path" variable of php.ini, something like "c:\\wamp\tmp"
But if you put the same same code in a module, it tries to create the session file iin the directory APPLICATION_PATH "/../data/session" which doesn't exist by default so an exception is raised.
The solution is of course to create this directory but it doesn't explain why a module doesn't use the "session.save_path" variable of php.ini.
Where can I find out what is meant by, for example:
// Add the comment element
$this->addElement('textarea', 'comment', array(
'label' => 'Please Comment:',
'required' => true,
'validators' => array(
array('validator' => 'StringLength', 'options' => array(0, 20))
)
));
The Programmer's Reference Guide is no help in this regard.
Thanks in advance for any help.
Regards,
Kevin Quinn
Fatal error: Call to a member function search() on a non-object in
i still cant solve this. anyone please help me???
thanks thanks
wiki
solve by adding this line <formsDirectory enabled="false"/> on the the line <layoutsDirectory enabled="false"/> in file .zfproject.xml
not sure why sooo much bugs in Zend Framework which claim to be the best framework... :'(
capcha-image is created in captcha-dit, but there's no <img> tag;/
Maybe that's the reason why they using here google recaptcha instead of their zend-captcha;]
I am Mrs Antonia Benson , I work in Sunshine Dairy Foods Company here in Canada , we need workers from all parts of the world to join the company , whether skill or unskilled they are all qualified to join the company .
You can also invite any of your friends and relatives to join us either the branch in Canada or United kingdom.
All approved applicants are to be granted free air plane ticket and free accommodation , applicants are only responsible for work permit visa requirements with the Canada Immigration Bureau here upon received of employment form.
Contact us through this email:sunshineemploymentinfo@inmail.sk , or (sun.shinecompany@yahoo.ca)
Your best Cooperation is highly appreciated .
Mrs Antonia Benson,
Employment Consultant Officer ,
Human Resources Department .
150 - 6TH AVENUE SW CALGARY
ALBERTA T2P 3Y7,CANADA.
I had problems with the form rendering just aborting silently with no output. This turned out to be because Zend_Text_Figlet calls iconv_strlen with the error suppression operator! If iconv isn't installed, the script silently dies. Wonderful.
Once you know why, it's simple to fix (for me, just sudo port install php5-iconv)
However, I would recommend that Zend_Text_Figlet::render() include the following to prevent others falling into same trap
if (!extension_loaded('iconv')) {
throw new Zend_Text_Figlet_Exception('Zend_text_Figlet requires iconv extension to be present');
}
If the figlet code really does contain @ error suppression then that really doesn't give a good first impression of the framework and its claims to follow best practice! The @ operator is about as far from best practice as you can get.
the capture-image won't show up. either with figlet, nor with image or dump.
there is just no <img> tag at all!
the capure-image is created on my captcha-dir, so this part is fine.
so where is the error in this?
in application/forms/Guestbook.php to display the captcha.
//captcha
$this->addElement('captcha', 'captcha', array(
'label' => 'Please enter the 5 letters displayed below:',
'required' => true,
'captcha' => array(
'captcha' => 'Figlet',
'wordLen' => 5,
'timeout' => 300
),
'decorators' => array('Captcha', 'Errors', 'Label')
));
I am new to zend framework and just found your tutorial, I created 3 files as per displayed in tutorial, but i am getting the error as stated below, i will be thankful if somebody can give me solution:
// application/controllers/GuestbookController.php class GuestbookController extends Zend_Controller_Action { // snipping indexAction()... public function signAction() { $request = $this->getRequest(); $form = new Application_Form_Guestbook(); if ($this->getRequest()->isPost()) { if ($form->isValid($request->getPost())) { $comment = new Application_Model_Guestbook($form->getValues()); $mapper = new Application_Model_GuestbookMapper(); $mapper->save($comment); return $this->_helper->redirector('index'); } } $this->view->form = $form; } }
Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in E:\ossam\application\controllers\GuestbookController.php, line 22' in E:\ossam\library\Zend\Controller\Response\Abstract.php:321 Stack trace: #0 E:\ossam\library\Zend\Controller\Response\Abstract.php(339): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 E:\ossam\library\Zend\Controller\Response\Abstract.php(766): Zend_Controller_Response_Abstract->sendHeaders() #2 E:\ossam\library\Zend\Controller\Front.php(992): Zend_Controller_Response_Abstract->sendResponse() #3 E:\ossam\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #4 E:\ossam\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 E:\ossam\public\index.php(109): Zend_Application->run() #6 E:\ossam\index.php(1): include('E:\ossam\public...') #7 {main} thrown in E:\ossam\library\Zend\Controller\Response\Abstract.php on line 321
Am creating a search box and the submit button needs to be next to my text field.
"Call to a member function search() on a non-object ..."
That did the trick. I'm really grateful ... it's really annoying starting with this framework and already getting stuck after a few minutes.
province). We work with professionals to be sure to sell high quality chinese arts's products. www.maplecollections.com is intended for the people who are interested in Chinese
culture, arts & crafts. Main products is Chinese Jade Decorations Carvings,Jade Pendants,Chinese Jade Stone carvings,Animal Statue,Jade Buddha Carved,Animal Sculpture,Natural
Stone strange stone etc Manufacturer,Our products are Chinese culture related.
Open to your suggestions and comments, please give your opinion about our products quality, what you like or dislike on the web site, and what you'd like to see in our store.
Please contact us for inquiring,we look forward to your ordering our products......thanks!
How about calling if($request->isPost()) instead? ;-)
It works very goed.
Hasan Akmaz
Hosting - to udzielanie przez dostawcę usługi internetowej zasobów serwerowni. Jeszcze dokładniej ujmując polega to na "zajęciu" daniu do użytkowania określonej pojemności dysku twardego, na której jest dozwolone utrwalać pliki tworzące zawartość witryn internetowych i lub udzielenie przestrzeni dysku jak położenia dla plików "leżących" w skrzynce mailowej. Inna wersja hostingu to udostępnienie dużych obszarów dysku, a nawet kompletnego serwera względnie kilku - jako fizycznego nośnika na rzecz dużego serwisu internetowego, portalu, grupy dyskusyjnej i innych. W każdej z nich chodzi o udostępnienie fizycznego położenia (dysku lub dysków twardych) dla zmieszczenia rozmaitych form danych osiągalnych przez Internet.Ogrom usług hosting jest płatnych. Właśnie dlatego nie chcemy Cię okłamywać. Nasze usługi hostingteż są odpłatne, z jedną tylko różnicą, nasze usługi hosting są jednymi z najbardziej opłacalnych w Internecie. Proponujemy hosting na najwyższym poziomie, po najniższejdopuszczalnej cenie. Przekonaj się sam i wypróbuj naszą jakość! Zapraszamy na portal internetowy. Nie mamy na celu Ci wpajać, iż otrzymasz od nas nieodpłatne usługi hosting. Jednakże możemy zapewnić Ci jedną sprawę. Nasze usługi hosting są przypuszczalnie najbardziej opłacalnymi domenami, które możesz znaleźć w sieci globalnej. Jednakże pomimo niewysokich ksztów za usługi hosting, oferujemynajwiększą możliwą jakość naszych domen. Nie jesteś w stanie w to dowierzyć, czy podważasz jeszcze słuszność tego, co tu jest przedstawione? Jak tak to bezzwłocznie wejdź na nasz portal i nabierz przekonania o słuszności tego wpisu Nasze usługi hosting oferują najbardziej solidną jakość w niedużej cenie. Nie będziesz musiał płacić dużych pieniędzy za usługi hosting. Oferujemy dużą ilość upustów i promocji celowo dla stałych, ale i również dla nowych kontrahentów. Wpadnij już teraz na nasz portal. Sprawdź ile możesz zaoszczędzić z nami.
Question Hadley: Hadley Freeman within the fey along with weak model search as well as Balmain cardigan | Life and type
<b>ugg short boots</b>: http://www.ukbootser.com.
Why achieve this lots of girl versions in launches seem just like they can be eager for the actual loo? Or is it popular to take a look fey and also weak?
Ask Hadley: Hadley Freeman about the fey as well as weak style seem in addition to Balmain cover | Lifestyle and style
<b>ugg boots on sale</b>: http://www.ukbootser.com.
Why implement it a lot of feminine versions inside shoots out search as if there're in need of a toilet? Or possibly is it really fashionable to seem fey and also weak?
Inquire Hadley: Hadley Freeman within the fey and also weak type search in addition to Balmain cardigan | Living and design
<b>ugg boots</b>: http://www.ukbootser.com.
Why achieve this lots of women versions within sets look as though there're in need of your loo? Or possibly it just trendy to appear fey and also puny?
<a href=http://cheapbag-shopping.com/>Coach Bags</a>
ecj
<a href=http://cheapbag-shopping.com/>Coach Bags</a>
icr
http://cheapbag-shopping.com/
Question Hadley: Hadley Freeman about the fey plus weak model glimpse plus Balmain cover | Life and design
<b>ugg brand boots</b>: http://www.ukbootser.com.
Why implement it lots of woman versions in shoots search like they can be anxious for this bathroom? Or possibly is it merely modern to take a look fey as well as weak?
<a href=http://outletbagsforsale.com/>buy prada bags</a>
uda
<a href=http://outletbagsforsale.com/>buy prada bags</a>
lrt
http://outletbagsforsale.com/
<a href=http://outlethandbagstore.com/>Cheap Louis Vuitton Damier Azur Canvas Luggage </a>
jas
<a href=http://outlethandbagstore.com/>replica fendi handbag</a>
ivx
http://outlethandbagstore.com/
This bug is always here. But if you look at Issue tracker it's resolved. http://framework.zend.com/issues/browse/ZF-9343. in october 2010 version 1.11.0. I'm working with version 1.11.11. Thanks a lot.
With Zend Framework it's always the same problem. Yes we did ! But nothing to do in regression test between version.
It's heartbreaking, frustrating and it makes you lose considerable time in research. Hopefully the V2 will be better reflected and tested, before to say. Yes we did !
da es sehr viele Fehler im Quellcode der deutschen Fassung gibt, stelle ich hier eine unter Windows Server 2008 R2 x64 mit Zend Server CE, Apache lauffähige Version
zur Verfügung, die ihr einfach in einen zu erstellenden Ordner C:\Users\Administrator\ZendTestBangert hinein kopiert.
Ihr müsst nur
1. in windows\system32\drivers\etc\hosts den Eintrag 127.0.0.1
ZendTestBangert.local hinzufügen
2. für das Verzeichnis data\db unter Eigenschaften-Sicherheit-Erweitert
- den richtigen (Karteireiter) Owner übernehmen
- und (Karteireiter) Effektive Berechtigunfgen für diesen Owner voll setzen
Hier sind u.a. auch die SQL Skript Fehler beseitigt (Windows konforme Quotation-Marks z.B: zf configure db-adapter <b>"</b>adapter=PDO_SQLITE&dbname=APPLICATION_PATH '/../data/db/guestbook.db' <b>"</b> production) beseitigt etc. . Ebenso wurde bereits auch ZendX-JQuery integriert
Hier ist der Downloadlink: http://www.gimba.de/ZendTestBangert.rar
Liebe Grüße
<b>Axel Arnold Bangert - Herzogenrath 2012</b>
da es sehr viele Fehler im Quellcode der deutschen Fassung gibt, stelle ich hier eine unter Windows Server 2008 R2 x64 mit Zend Server CE, Apache lauffähige Version
zur Verfügung, die ihr einfach in einen zu erstellenden Ordner C:\Users\Administrator\ZendTestBangert hinein kopiert.
Ihr müsst nur
1. in windows\system32\drivers\etc\hosts den Eintrag 127.0.0.1
ZendTestBangert.local hinzufügen
2. für das Verzeichnis data\db unter Eigenschaften-Sicherheit-Erweitert
- den richtigen (Karteireiter) Owner übernehmen
- und (Karteireiter) Effektive Berechtigungen für diesen Owner voll setzen
Hier sind u.a. auch die SQL Skript Fehler beseitigt (Windows konforme Quotation-Marks z.B: zf configure db-adapter "adapter=PDO_SQLITE&dbname=APPLICATION_PATH '/../data/db/guestbook.db' " production) beseitigt etc. . Ebenso wurde bereits auch ZendX-JQuery integriert
Hier ist der Downloadlink: http://www.gimba.de/ZendTestBangert.rar
Liebe Grüße
Axel Arnold Bangert - Herzogenrath 2012