Commit graph

92 commits

Author SHA1 Message Date
gwoo
8657757bde fix form helper, bake, refactor Controller::_selectedArray to just take the association name and checks Controller::data, also made Controller::_selectedArray work for submitted form data and returned model data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4029 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 10:21:22 +00:00
gwoo
e2614e5140 updating bake and form helper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4027 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 07:58:35 +00:00
gwoo
31f62cca32 oops
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4024 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 06:58:11 +00:00
gwoo
5a39777c95 fix to baked views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4023 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 06:44:45 +00:00
gwoo
8615ddecac fix to baked forms
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4022 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 05:45:46 +00:00
gwoo
8d4fe47571 fix to bake loading models
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4021 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-29 04:19:50 +00:00
gwoo
3b4553a758 updating bake for 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4008 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-28 09:34:25 +00:00
phpnut
26350a3890 Changed code format for test files generated by bake.php.
Changed name of controller test file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3925 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 06:51:50 +00:00
gwoo
46408b2a8b 1.2 bake: porting changes from 1.1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3924 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-23 06:46:10 +00:00
dho
a1be115dd1 Fixing several problems related to creating unit tests (ticket #1624)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3829 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-06 09:12:38 +00:00
phpnut
969676bbf9 Fixing path search for the test suite in bake script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3826 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-04 07:08:17 +00:00
gwoo
1db5de6623 1.2: bake, merging changes from 1.1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3823 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-03 22:47:43 +00:00
gwoo
45fd88df49 bake in 1.1 and 1.2 refactor and bug fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3780 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 19:57:17 +00:00
dho
fb7e66881c Fixing wrong key names for hasMany associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3775 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-31 08:07:16 +00:00
gwoo
b68181311c fixing #1598: bake edit actions
fixing  baked views with admin

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3762 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-28 20:15:41 +00:00
phpnut
12a6df23ef Adding Controller::_selectedArray().
Changed Bake to use _selectedArray instead of _ _selectedArray()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3742 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-26 03:08:53 +00:00
gwoo
cd81fd3b24 baker 1.2: last one before adding i18n support back
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3729 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 20:58:14 +00:00
gwoo
20bdd8181b bake 1.2 : removed _ _() for now, added admin to urls for admin methods and views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3722 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-20 01:19:46 +00:00
gwoo
5b6eb9f59d 1.2: updating bake to use _ _() function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3718 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-19 04:55:07 +00:00
phpnut
260c257514 Fixing bug in bake that would use the class name for the foreign key in a hasOne association
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3708 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 13:00:34 +00:00
phpnut
b64e19073b Fixed bake script dropping associations if no is selected during the model creation.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3705 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 11:22:34 +00:00
gwoo
6d572a2b2b bake: fixing lists
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3700 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-18 00:16:09 +00:00
gwoo
cf81d3077a bake: add list of controllers for controllers and view baking, just like models.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3698 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 19:37:55 +00:00
gwoo
3e2c52a5ab bake: fixing generated views
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3697 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 18:28:52 +00:00
gwoo
1b09e10216 bake: fixing controllers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3695 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 18:01:58 +00:00
gwoo
251bf74e6a bake: fixing pluralName error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3694 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 17:39:48 +00:00
gwoo
0f4783b2ad bake: stop the primaryKey from being printed if it equals id
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3693 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 16:49:09 +00:00
gwoo
51f95aada4 re-format of generated model code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3691 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-17 05:05:08 +00:00
gwoo
3e21696255 removing debug code from bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3688 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 20:57:56 +00:00
gwoo
cefde59a76 some more fixes for custom associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3687 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 20:30:27 +00:00
gwoo
4e081f804e some more fixes and code changes in bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3686 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 11:19:39 +00:00
gwoo
25b1bfa1c2 fix for custom model table in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3684 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 08:33:23 +00:00
gwoo
6f2d0f6951 fix for custom model name in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3683 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 08:28:26 +00:00
gwoo
5b0738d73f fix for custom associations in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3682 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 08:13:41 +00:00
gwoo
8e8898102c fix for custom associations in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3681 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 07:30:01 +00:00
gwoo
efa9eaba4d fix for custom associations in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3680 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 07:10:32 +00:00
gwoo
7554887b1e fix for custom associations in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3679 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 06:45:13 +00:00
gwoo
9a4e2c4f48 fix for custom associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3678 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 06:19:46 +00:00
gwoo
878d786f05 removed useTable from bake model if it follows conventions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3677 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 06:06:49 +00:00
gwoo
c9a209ec92 updating bake 1.2 model building
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3676 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-15 05:58:13 +00:00
gwoo
f67e3189ab changing default connect setting in bake to connect rather than pconnect
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3671 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 19:05:23 +00:00
phpnut
337a7af264 Removing bad character in bake script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3670 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 18:45:00 +00:00
phpnut
3d47887211 Updating Bake to create admin route in core.php if not already set and admin routing option is used.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3669 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 18:07:52 +00:00
gwoo
1c1bc8bfa8 more happy fixes for bake, admin option works now
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3640 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 09:31:20 +00:00
gwoo
89549ec129 fix belongsTo select for bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3639 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 08:52:26 +00:00
gwoo
46b1451a8e another fix for bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3638 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 07:54:27 +00:00
gwoo
9d1c5334bd another fix for bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3637 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 07:51:55 +00:00
gwoo
80481ae318 added extract() to Set, added format() to TimeHelper, fixed bake admin views creation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3636 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 07:41:10 +00:00
gwoo
c7e5a528a3 removing debug code from bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3635 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 04:45:12 +00:00
gwoo
1a977a2053 bake fix for root path
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3633 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 03:46:47 +00:00