background preloader

Zend

Facebook Twitter

Tutorial : Créer une application avec le Zend Framework – #1 Préparation de l’environnement de WatchMyDesk. Dans cette première partie, nous allons voir comment préparer son environnement de développement pour créer une application avec le Zend Framework.

Tutorial : Créer une application avec le Zend Framework – #1 Préparation de l’environnement de WatchMyDesk

Nous allons aussi télécharger les éléments nécessaire à la réalisation de notre application. Plan de l’épisode #1 Les logiciels que nous allons utiliser Dans cet épisode, nous allons nous concentrer sur la mise en place de l’environnement pour que le Zend Framework puisse être utilisé. Il faudra vous munir d’un éditeur de texte ou d’un IDE : Je vous conseille donc Eclipse avec le mode PHPUn environnement LAMP (Linux) avec WAMP (Windows) ou MAMP (Mac)Le Zend Framework en version 1.8.4 (au moment où est écrit cette série) Mise en place du Framework Pour commencer nous allons nous occuper du Zend Framework, et de sa position au cœur de la hiérarchie de nos fichiers.

Nous allons créer un dossier nommé frameworks à la racine de façon à mettre notre Zend Framework. Le dossier application Le dossier library Le dossier public Le fichier index.php <? <pre><? <! Zend Framework – Magento Zend Blog. In Zend, if we developing a site with multiple lanuguage than here is the step to go ahead: Step 1. Make changes in bootstrap file STEP 2: Create a folder lang under the application and put 2 csv files lang-en.csv and lang-tr.csv each file contents keywords and their corresponding language translation in the file.

STEP 3: Create a view helper named Translate.php STEP 4: Now you can use in the phtml like Thats all Few Days ago I have used Turkish character in my database with using collate as utf8_turkish_ci. Actual issue raises when we get the displaying the content of the table in browser. For this I Put a code in the the models/dbTable For Running through SSH and Cpanel If you need to start php cronjobs setting up your whole Zend Framework environment for use is the cronjob scripts is really easy. Zend_Navigation Tricks: True tab navigation with sub menus – Part 1. Posted: 16th August 2009 by Grant Perry in Zend Framework Tags: navigation, tabs, Zend_Navigation It is some what tricky with the Zend_Navigation menu helpers to set up your typical tab-based navigation with sub pages relevant to the tab your on, as seen below.

Zend_Navigation Tricks: True tab navigation with sub menus – Part 1

But it’s not far difficult so don’t be put off, hopefully the view helpers will improve over time. In the mean time this is a 3 part series in achieving the navigation I set up in utilitiesman.com as seen above. Part 1: Setting up the navigation, and rendering the tabs. Set up your navigation configuration, I’ve done this in xml. < ? In your bootstrap file you’ll need setup the navigation and load your navigation config: $navigationConfig = new Zend_Config_Xml('. Assuming you’re making use of the Zend_Layout this would go in your template $this->navigation()->menu()->setPartial(array('nav1.phtml','default'));echo $this->navigation()->menu()->render(); <ul id="nav1"><li><a ... Comment utiliser les menus automatique dans le Zend Framework.