📜 ⬆️ ⬇️

My first project on the Zend Framework

In the process of studying Zend Framework, Php, Javascript, Xslt, an idea appeared to consolidate everything in practice by writing an educational project. It all started with a snake, which ran around the field to eat "apples" and broke about itself or about the borders of the screen. Well, in general, the standard toy for old nokia. Only not two-color, but three =)
Levels appeared first, then server side processing using Zend. Later the design, taken from www.freecsstemplates.org, appeared (as with the design I have tight =)). And so everything gradually grew into the current project - with the map editor, registration, quest, etc.

For a start, there was a need for a template that implemented using Xslt. After that, added user rights with Zend_Acl and authorization with Zend_Auth. Entered the registration in order to add new users. In this case, I needed Zend_Mail and Zend_Validate.
Implemented separate controllers for the quest, a random card and a specific one. Engines - on pure Javascript. For the quest - one engine. For a random and specific map, the same plus saving motion using XmlHttpRequest.
The editor is also in pure javascript. Saving happens by means of XmlHttpRequest. Checking the card for correctness - on the server side (it is checked whether it is possible to get to any point from any point and whether there is a point from which it is impossible to get out).
I used SQLite as a database, since there was no need for any other. It is configured easily and quickly on a personal computer. But in the case of large loads, you can easily change to any other without problems, since I use PDO.

In principle, about the project - everything. I post it not in order to show that I am cool, but to see it, express their opinions and wishes, preferably indicated bugs, which I will correct. I want to get experience in the "support" of the project.
')
Ps Project - Open Source. Who are interested in the source code - contact. code.google.com/p/zendsnake/downloads/list

Project itself - www.snake4ever.org.ua

UPD. The project is over. But the source can still be downloaded.

Source: https://habr.com/ru/post/30577/


All Articles