Subscribe to RSS Feed

Subscribe to Comments Feed

Subscribe to Atom Feed

tech

技術的なことのメモ
  • blog
  • sitemap
  • 紹介

cakephp最初のコントローラー

by outsider タグ: cakephp, php
05 08 2009

app/controllers/pages_controller.php

class PagesController extends AppController{
        var $name = 'Pages';
        var $view = 'Smarty';
        function display(){
        }
        function admin_index(){
                echo "admin_index";
        }
}

app/models/page.php

class Page extends AppModel {
        var $name = 'Page';
        var $useTable = false;
}

app/views/pages/smarty/display.tpl

this is display.tpl

Related posts:

  1. cakephp smartyのテンプレートのパスを変更
  2. bakeで雛型を作る
  3. paginatorのSmarty化
  4. cakephpでSmartyを使う

0 comments
add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0

Leave a Reply

返信をキャンセル

google adsense

カテゴリー

  • CentOS
  • php
    • cakephp
  • Windows
  • wordpress

タグ

cakephp CentOS munin php Windows wordpress yum
Design by: Bingo - The Web Design Experts