Zend Framework Quick start Bally chohan Technical Architecht
Zend Framework quick start by Bally chohan <ul><li>Design patterns </li></ul><ul><li>MVC design patterns </li></ul><ul><li...
Design patterns by Bally Chohan <ul><li>  a  design pattern  is a general reusable solution to a commonly occurring proble...
MVC design patterns by Bally Chohan <ul><li>M odel-View-Controller (MVC) is a design </li></ul><ul><li>pattern that simpli...
Directory structure by Bally chohan
Bootstrap (index.php) by Bally Chohan
Hello world with ZF MVC – by Bally Chohan <ul><li>We have done basic configuration. </li></ul><ul><li>It time to have fun…...
Hello world cont… by Bally chohan <ul><li>Next in your application/views/ </li></ul><ul><li>Create views/index/index.phtml...
Using Models – Bally chohan <ul><li>In application/models </li></ul><ul><li>Write </li></ul><ul><li><? </li></ul><ul><li>c...
Model cont.. By Bally Chohan <ul><li>Now in controller, write </li></ul><ul><li><? </li></ul><ul><li>class IndexController...
Example cont… <ul><li>And finally in your view(application/view/scripts/index/index.phtml) </li></ul><ul><li>Write, </li><...
Thanks <ul><li>Next….. </li></ul><ul><li>Two step view </li></ul><ul><li>Zend_Db_Configuration </li></ul><ul><li>And many ...
Upcoming SlideShare
Loading in …5
×

Bally chohan Open Source - Bally Chohan Zend Frame Work - Bally chohan Browser Plugins - Bally Chohan

1,053 views
959 views

Published on

Bally chohan Open Source - Bally Chohan Zend Frame Work - Bally chohan Browser Plugins - Bally Chohan

Published in: Technology, Education
3 Comments
2 Likes
Statistics
Notes
No Downloads
Views
Total views
1,053
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
3
Likes
2
Embeds 0
No embeds

No notes for slide

Bally chohan Open Source - Bally Chohan Zend Frame Work - Bally chohan Browser Plugins - Bally Chohan

  1. 1. Zend Framework Quick start Bally chohan Technical Architecht
  2. 2. Zend Framework quick start by Bally chohan <ul><li>Design patterns </li></ul><ul><li>MVC design patterns </li></ul><ul><li>Directory Structure </li></ul><ul><li>Bootstrap </li></ul><ul><li>Hello world example </li></ul><ul><li>Design with Bally Chohan – Develop with Bally Chohan – Code with Bally chohan – Test with Bally Chohan – UAT with Bally chohan </li></ul>
  3. 3. Design patterns by Bally Chohan <ul><li>  a  design pattern  is a general reusable solution to a commonly occurring problem in software design. </li></ul><ul><li>( en.wikipedia.org/wiki/Design_pattern_(computer_science) </li></ul><ul><li>Design with Bally Chohan – Develop with Bally Chohan – Code with Bally chohan – Test with Bally Chohan – UAT with Bally chohan </li></ul>
  4. 4. MVC design patterns by Bally Chohan <ul><li>M odel-View-Controller (MVC) is a design </li></ul><ul><li>pattern that simplifies application </li></ul><ul><li>development and maintenance. </li></ul><ul><li>Model: Responsible for the business logic of an application </li></ul><ul><li>View: Typically what would be considered web design, or templating. </li></ul><ul><li>Controller : The controller layer glues everything together. </li></ul><ul><li>Design with Bally Chohan – Develop with Bally Chohan – Code with Bally chohan – Test with Bally Chohan – UAT with Bally chohan </li></ul>
  5. 5. Directory structure by Bally chohan
  6. 6. Bootstrap (index.php) by Bally Chohan
  7. 7. Hello world with ZF MVC – by Bally Chohan <ul><li>We have done basic configuration. </li></ul><ul><li>It time to have fun…. </li></ul><ul><li>In your application/controllers/IndexController.php </li></ul><ul><li><? </li></ul><ul><li>class IndexController extends Zend_Ctontroller_Action </li></ul><ul><li>{ </li></ul><ul><li>public function indexAction() </li></ul><ul><li>{ </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>?> </li></ul><ul><li>Design with Bally Chohan – Develop with Bally Chohan – Code with Bally chohan – Test with Bally Chohan – UAT with Bally chohan </li></ul>
  8. 8. Hello world cont… by Bally chohan <ul><li>Next in your application/views/ </li></ul><ul><li>Create views/index/index.phtml </li></ul><ul><li>And write </li></ul><ul><li><html> </li></ul><ul><li><body> </li></ul><ul><li>Hello world………….. </li></ul><ul><li></body> </li></ul><ul><li></html> </li></ul>
  9. 9. Using Models – Bally chohan <ul><li>In application/models </li></ul><ul><li>Write </li></ul><ul><li><? </li></ul><ul><li>class Math </li></ul><ul><li>{ </li></ul><ul><li>public function __construct() </li></ul><ul><li>{ </li></ul><ul><li>} </li></ul><ul><li>public function sum($val1,$val2) </li></ul><ul><li>{ </li></ul><ul><li>return $val1 + $val2; </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>?> </li></ul>
  10. 10. Model cont.. By Bally Chohan <ul><li>Now in controller, write </li></ul><ul><li><? </li></ul><ul><li>class IndexController extends Zend_Ctontroller Action </li></ul><ul><li>{ </li></ul><ul><li>public function indexAction() </li></ul><ul><li>{ </li></ul><ul><li>$math = new Math(); </li></ul><ul><li>$sum = $math->sum(5,10); </li></ul><ul><li>$this->view->sum=$sum; </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>?> </li></ul><ul><li>Design with Bally Chohan – Develop with Bally Chohan – Code with Bally chohan – Test with Bally Chohan – UAT with Bally chohan </li></ul>
  11. 11. Example cont… <ul><li>And finally in your view(application/view/scripts/index/index.phtml) </li></ul><ul><li>Write, </li></ul><ul><li><? </li></ul><ul><li>echo ‘sum is ’ . $this->sum; </li></ul><ul><li>?> </li></ul>
  12. 12. Thanks <ul><li>Next….. </li></ul><ul><li>Two step view </li></ul><ul><li>Zend_Db_Configuration </li></ul><ul><li>And many more….. </li></ul><ul><li>Bally Chohan </li></ul><ul><li>5Technical Architect </li></ul>

×