SlideShare a Scribd company logo
1 of 2
Download to read offline
Blackbook code flow in events page
BB : events

Controller :
              PollsController.php
             Functions:
•list() (admin)
•addPoll() (admin)
•edit_poll() (admin)
•delete_poll() (admin)
•checkUserPollStatus($user_id) (Ajax function : end user)

              CategoriesController.php
             Functions :
•list() (view function : end user)
•listevents() (view function : admin)
•save($array, $category _id) (admin)
•deleteevent($category_id) (admin)
             EventsController.php
            Functions :
•lists() (view function : end user)
•details($event_id) (view function : end user)
•addevent() (view function :admin )
•editevent($event_id) (view function :admin )
•deleteevent($event_id) (admin)
•getCategories() (block function in the view) → reference to Category model
•getLatestPoll() (block function in the view) → reference to Poll model.
•(Other supporting functions )

Model :
             Poll.php
             Functions:
•getPolls() (admin)
•getLatestPoll() (end user)
•get

              Category.php
           Functions:
•getCategories() (admin and end user function)
•getCategoryDetails($category_id) (admin and end user function)
•deleteCategory($category_id)


              event.php
Functions :
•getevents()       : end user and admin function
•geteventDetails() : end user and admin function
•deleteevent()      : admin function
•addevent()         : admin function
•editevent()        : admin function

Views :
            categories/
•list_categories_admin.tpl (admin)
•list_categories_user.tpl
•add_categories.tpl
•edit_categories.tpl


             events/
•list_activites.tpl
•event_details.tpl
•edit_event.tpl
•add_event.tpl

More Related Content

Similar to test

날로 먹는 Django admin 활용
날로 먹는 Django admin 활용날로 먹는 Django admin 활용
날로 먹는 Django admin 활용KyeongMook "Kay" Cha
 
Jquery In Rails
Jquery In RailsJquery In Rails
Jquery In Railsshen liu
 
OSCON 2005: Build Your Own Chandler Parcel
OSCON 2005: Build Your Own Chandler ParcelOSCON 2005: Build Your Own Chandler Parcel
OSCON 2005: Build Your Own Chandler ParcelTed Leung
 
Ruby on rails
Ruby on rails Ruby on rails
Ruby on rails Mohit Jain
 
Python Development (MongoSF)
Python Development (MongoSF)Python Development (MongoSF)
Python Development (MongoSF)Mike Dirolf
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2RORLAB
 
Django Class-based views (Slovenian)
Django Class-based views (Slovenian)Django Class-based views (Slovenian)
Django Class-based views (Slovenian)Luka Zakrajšek
 
Modularity and Layered Data Model
Modularity and Layered Data ModelModularity and Layered Data Model
Modularity and Layered Data ModelAttila Jenei
 
Taming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsTaming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsJarod Ferguson
 
Gae Meets Django
Gae Meets DjangoGae Meets Django
Gae Meets Djangofool2nd
 
GR8Conf 2011: Grails Webflow
GR8Conf 2011: Grails WebflowGR8Conf 2011: Grails Webflow
GR8Conf 2011: Grails WebflowGR8Conf
 
Magento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request FlowMagento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request FlowVrann Tulika
 
sfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin BundlesfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin Bundleth0masr
 
ReactでGraphQLを使っている
ReactでGraphQLを使っているReactでGraphQLを使っている
ReactでGraphQLを使っているTakahiro Kobaru
 
Inside PyMongo - MongoNYC
Inside PyMongo - MongoNYCInside PyMongo - MongoNYC
Inside PyMongo - MongoNYCMike Dirolf
 
The Future of Plugin Dev
The Future of Plugin DevThe Future of Plugin Dev
The Future of Plugin DevBrandon Kelly
 
Service Oriented Architecture in Magento 2
Service Oriented Architecture in Magento 2Service Oriented Architecture in Magento 2
Service Oriented Architecture in Magento 2Max Pronko
 

Similar to test (20)

날로 먹는 Django admin 활용
날로 먹는 Django admin 활용날로 먹는 Django admin 활용
날로 먹는 Django admin 활용
 
Jquery In Rails
Jquery In RailsJquery In Rails
Jquery In Rails
 
OSCON 2005: Build Your Own Chandler Parcel
OSCON 2005: Build Your Own Chandler ParcelOSCON 2005: Build Your Own Chandler Parcel
OSCON 2005: Build Your Own Chandler Parcel
 
Ruby on rails
Ruby on rails Ruby on rails
Ruby on rails
 
Python Development (MongoSF)
Python Development (MongoSF)Python Development (MongoSF)
Python Development (MongoSF)
 
Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2Action View Form Helpers - 1, Season 2
Action View Form Helpers - 1, Season 2
 
Django Class-based views (Slovenian)
Django Class-based views (Slovenian)Django Class-based views (Slovenian)
Django Class-based views (Slovenian)
 
Modularity and Layered Data Model
Modularity and Layered Data ModelModularity and Layered Data Model
Modularity and Layered Data Model
 
Taming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsTaming that client side mess with Backbone.js
Taming that client side mess with Backbone.js
 
Gae Meets Django
Gae Meets DjangoGae Meets Django
Gae Meets Django
 
GR8Conf 2011: Grails Webflow
GR8Conf 2011: Grails WebflowGR8Conf 2011: Grails Webflow
GR8Conf 2011: Grails Webflow
 
Magento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request FlowMagento Live Australia 2016: Request Flow
Magento Live Australia 2016: Request Flow
 
Comilla University
Comilla University Comilla University
Comilla University
 
sfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin BundlesfDay Cologne - Sonata Admin Bundle
sfDay Cologne - Sonata Admin Bundle
 
ReactでGraphQLを使っている
ReactでGraphQLを使っているReactでGraphQLを使っている
ReactでGraphQLを使っている
 
Inside PyMongo - MongoNYC
Inside PyMongo - MongoNYCInside PyMongo - MongoNYC
Inside PyMongo - MongoNYC
 
The Future of Plugin Dev
The Future of Plugin DevThe Future of Plugin Dev
The Future of Plugin Dev
 
实战Ecos
实战Ecos实战Ecos
实战Ecos
 
Service Oriented Architecture in Magento 2
Service Oriented Architecture in Magento 2Service Oriented Architecture in Magento 2
Service Oriented Architecture in Magento 2
 
java ee 6 Petcatalog
java ee 6 Petcatalogjava ee 6 Petcatalog
java ee 6 Petcatalog
 

More from alind tiwari

Rainforest alliance pdf_test
Rainforest alliance pdf_testRainforest alliance pdf_test
Rainforest alliance pdf_testalind tiwari
 
Eco computing test
Eco computing testEco computing test
Eco computing testalind tiwari
 
Recyle the E-waste-T
Recyle the E-waste-TRecyle the E-waste-T
Recyle the E-waste-Talind tiwari
 
organic community garden suggestion
organic community garden suggestionorganic community garden suggestion
organic community garden suggestionalind tiwari
 
silent features of organic f
silent features of organic fsilent features of organic f
silent features of organic falind tiwari
 
silent features of organic f
silent features of organic fsilent features of organic f
silent features of organic falind tiwari
 
Provide a venue for recycling electronic waste in Brooklyn
Provide a venue for recycling electronic waste in BrooklynProvide a venue for recycling electronic waste in Brooklyn
Provide a venue for recycling electronic waste in Brooklynalind tiwari
 
T-recylce the E-waste
T-recylce the E-wasteT-recylce the E-waste
T-recylce the E-wastealind tiwari
 
one slide solution
one slide solutionone slide solution
one slide solutionalind tiwari
 

More from alind tiwari (20)

Rainforest alliance pdf_test
Rainforest alliance pdf_testRainforest alliance pdf_test
Rainforest alliance pdf_test
 
Eco computing test
Eco computing testEco computing test
Eco computing test
 
Global Recycling
Global RecyclingGlobal Recycling
Global Recycling
 
Recyle the E-waste-T
Recyle the E-waste-TRecyle the E-waste-T
Recyle the E-waste-T
 
green tea
green teagreen tea
green tea
 
organic community garden suggestion
organic community garden suggestionorganic community garden suggestion
organic community garden suggestion
 
final test
final testfinal test
final test
 
silent features of organic f
silent features of organic fsilent features of organic f
silent features of organic f
 
final test
final testfinal test
final test
 
silent features of organic f
silent features of organic fsilent features of organic f
silent features of organic f
 
my new pitch
my new pitchmy new pitch
my new pitch
 
Test Nan
Test NanTest Nan
Test Nan
 
Provide a venue for recycling electronic waste in Brooklyn
Provide a venue for recycling electronic waste in BrooklynProvide a venue for recycling electronic waste in Brooklyn
Provide a venue for recycling electronic waste in Brooklyn
 
One note
One noteOne note
One note
 
Save trees
Save treesSave trees
Save trees
 
T-recylce the E-waste
T-recylce the E-wasteT-recylce the E-waste
T-recylce the E-waste
 
Nan's pitch
Nan's pitchNan's pitch
Nan's pitch
 
one slide solution
one slide solutionone slide solution
one slide solution
 
Good one
Good oneGood one
Good one
 
Good one
Good oneGood one
Good one
 

test

  • 1. Blackbook code flow in events page BB : events Controller : PollsController.php Functions: •list() (admin) •addPoll() (admin) •edit_poll() (admin) •delete_poll() (admin) •checkUserPollStatus($user_id) (Ajax function : end user) CategoriesController.php Functions : •list() (view function : end user) •listevents() (view function : admin) •save($array, $category _id) (admin) •deleteevent($category_id) (admin) EventsController.php Functions : •lists() (view function : end user) •details($event_id) (view function : end user) •addevent() (view function :admin ) •editevent($event_id) (view function :admin ) •deleteevent($event_id) (admin) •getCategories() (block function in the view) → reference to Category model •getLatestPoll() (block function in the view) → reference to Poll model. •(Other supporting functions ) Model : Poll.php Functions: •getPolls() (admin) •getLatestPoll() (end user) •get Category.php Functions: •getCategories() (admin and end user function) •getCategoryDetails($category_id) (admin and end user function) •deleteCategory($category_id) event.php
  • 2. Functions : •getevents() : end user and admin function •geteventDetails() : end user and admin function •deleteevent() : admin function •addevent() : admin function •editevent() : admin function Views : categories/ •list_categories_admin.tpl (admin) •list_categories_user.tpl •add_categories.tpl •edit_categories.tpl events/ •list_activites.tpl •event_details.tpl •edit_event.tpl •add_event.tpl