Your SlideShare is downloading. ×
0
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Prefixルーティングとthemeのススメ
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Prefixルーティングとthemeのススメ

940

Published on

Published in: Technology, Spiritual
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
940
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. prefixTheme 312 12CakePHP2.0CakePHP Advent Calendar 2011 #12
  • 2. @slumbers99http://slumbers99.blogspot.com/ MBA Mac 10
  • 3. 3docomo au softbank
  • 4. prefixTheme
  • 5. prefixprefix admin
  • 6. prefix file : /app/configs/core.phpConfigure::write(‘Routing.prefixes’, array(‘do’, ‘au’,‘sb’));$this->Html->url(array(‘au’ => true));url : /au/posts/index
  • 7. prefixClass PostsController extends AppController{ public function au_index() { // /au/posts/index // /app/views/posts/au_index.ctp } public function do_index() { // /do/posts/index // /app/views/posts/do_index.ctp }}
  • 8. Themeθíːm ≠core.php
  • 9. ThemeTheme $theme
  • 10. ThemeClass PostsController extends AppController{ public $view = ‘Theme’; public $theme = ‘au’; public function beforeFilter() { // if ($result) { $this->theme = ‘au’; } }}
  • 11. Theme/app/views/themed/au/viewsthemed
  • 12. prefixTheme

×