Top > CakePHP

1画面で複数のモデルを更新する Edit

http://hina-coco.ouchino.com/?p=305
http://web.mt-systems.jp/archives/200

Bake で焼かれるデフォルトの HTML を変更する Edit

http://book.cakephp.org/1.3/ja/view/1526/Bake-%E3%81%A7%E7%84%BC%E3%81%8B%E3%82%8C%E3%82%8B%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%AE-HTML-%E3%82%92%E5%A4%89

1. cake/console/libs/templates/views を開く。
2. そこに4つのファイルがあることを確認する。
3. それらのファイルを、app/vendors/shells/templates/views にコピーする。
4. "bake" が構築するビューを制御するために、出力される HTML を変更します。

フォームヘルパーはカスタマイズしてMyFormHelperを作ってしまったほうがよい Edit

Modelはrecursive=-1でContainableにする Edit

フォームヘルパーのdatetimeでnullを許可する Edit

valueがnullなら空になる。

inclued拡張モジュールを使って調べたインクルードの順序 Edit

1	/cake/bootstrap.php
2	/cake/basics.php
3	/cake/config/paths.php
4	/cake/libs/object.php
5	/cake/libs/inflector.php
6	/cake/libs/configure.php
7	/cake/libs/set.php
8	/cake/libs/cache.php
9	/app/config/core.php
10	/cake/libs/debugger.php
11	/cake/libs/cake_log.php
12	/cake/libs/string.php
13	/cake/config/config.php
14	/cake/libs/cache/file.php
15	/cake/libs/file.php
16	/cake/libs/folder.php
17	/app/config/bootstrap.php
18	/cake/dispatcher.php
19	/cake/libs/router.php
20	/cake/libs/controller/controller.php
21	/cake/libs/controller/component.php
22	/cake/libs/view/view.php
23	/cake/libs/class_registry.php
24	/cake/libs/view/helper.php
25	/cake/libs/overloadable.php
26	/cake/libs/overloadable_php5.php
27	/app/config/routes.php
28	/app/controllers/app_controller.php
29	/app/controllers/users_controller.php
30	/cake/libs/controller/components/auth.php
31	/cake/libs/security.php
32	/cake/libs/controller/components/session.php
33	/cake/libs/cake_session.php
34	/cake/libs/controller/components/request_handler.php
35	/cake/libs/model/model.php
36	/cake/libs/validation.php
37	/cake/libs/multibyte.php
38	/cake/libs/model/model_behavior.php
39	/cake/libs/model/connection_manager.php
40	/cake/libs/model/datasources/datasource.php
41	/app/config/database.php
42	/cake/libs/model/app_model.php
43	/app/models/user.php
44	/cake/libs/model/datasources/dbo_source.php
45	/cake/libs/model/datasources/dbo/dbo_mysql.php
46	/cake/libs/i18n.php
47	/cake/libs/l10n.php
48	/cake/libs/view/helpers/app_helper.php
49	/cake/libs/view/helpers/session.php
50	/cake/libs/view/helpers/html.php
51	/cake/libs/view/helpers/form.php
52	/app/views/users/login.ctp
53	/app/views/layouts/default.ctp
54	/cake/libs/view/elements/sql_dump.ctp


URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White

Reload   New Lower page making Edit Freeze Diff Upload Copy Rename   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes