Performance de SharePoint dans Azure et Office 365 - Webinar ERYEM & Microsoft
Zend framework dans Azure
-
Upload
afup-paris -
Category
Internet
-
view
237 -
download
0
description
Transcript of Zend framework dans Azure
Jean-Philippe Chaput Co-Founder & CTO
Organiser un événement n’est plus un cauchemar !
Reproduction avec l’aimable autorisation de François Tancré / Eventpixr
04
Video Social R.o.I Event
Service Bus + Notification Hub
Windows Azure Cache User Web site
Table storage
Architecture Streami sur Windows Azure
Cloud services
Internet
Media Services
Git Repository
Autoscale
Blob storage
Virtual Machine
Notre environnement de développement
Les frameworks
ZF2 tips pour Azure : Autoloader Classmap
classmap_generator.php.bat -l "..\..\modules\MONMODULE »
class Module!{! public function getAutoloaderConfig()! {! return array(! 'Zend\Loader\ClassMapAutoloader' => array(! __DIR__ . '/autoload_classmap.php',! ),! 'Zend\Loader\StandardAutoloader' => array(! 'namespaces' => array(! __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,! ),! ),! );! }!}!
ZF2/bin
Module.php
ZF2 tips pour Azure : Template map
templatemap_generator.php
'view_manager' => array(! 'template_map' => array(! 'live/live/checkin’ => __DIR__ . '/../view/live/live/checkin.phtml',! 'live/live/facebook’=> __DIR__ . '/../view/live/live/facebook.phtml',! 'live/live/twitter’ => __DIR__ . '/../view/live/live/twitter.phtml',! 'live/live/video' => __DIR__ . '/../view/live/live/video.phtml',! ),! 'template_path_stack' => array(! 'live' => __DIR__ . '/../view',! ),! ),!
https://gist.github.com/Hounddog/4169214
module.config.php
ZF2 tips pour Azure : ViewModels
namespace Foo;!class BarController extends AbstractActionController!{! public function someAction()! {! $viewModel = new ViewModel();! $viewModel->setTemplate('MODULE / CONTROLLER / ACTION');! // Pour cet exemple: $viewModel->setTemplate('foo/bar/some');! ! // Autre action du controller! ! return $viewModel->setVariables(array(! ‘variable’=>$valeur! ));! }!}!
ZF2 tips pour Azure : Module config cache
Modifier le fichier config/application.config.php!
'module_listener_options' => array(! 'config_cache_enabled' => true,! 'module_map_cache_enabled' => true,! 'config_cache_key' => 'module_config_cache',! 'cache_dir' => './data/cache',! );!
ZF2 tips pour Azure : Autres
favicon.ico – robots.txt - apple icons https://github.com/EvanDotPro/EdpSuperluminal OpCode caching (APC,…) Debug : http://xdebug.org/docs/install https://github.com/jokkedk/webgrind
ZF2 tips pour Windows Azure
www.windowsazure.com
Mail. [email protected] Fb. http://fb.com/jphchaput