Commit graph

10224 commits

Author SHA1 Message Date
phpnut
2acd3acbf6 [1188]
Author: phpnut
Date: 2:44:40 AM, Monday, October 24, 2005
Message:
Should complete work on new look for scaffold

[1187]
Author: phpnut
Date: 1:59:09 AM, Monday, October 24, 2005
Message:
More work on scaffold to get all changes done in the last few days correctly displaying.

Fix for Ticket #89

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1189 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-24 07:51:09 +00:00
phpnut
dd6024b1c4 [1185]
Author: phpnut
Date: 10:55:53 PM, Sunday, October 23, 2005
Message:
fixed text call issues with routes



git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1186 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-24 03:57:58 +00:00
phpnut
38076557aa [1183]
Author: phpnut
Date: 10:42:06 PM, Sunday, October 23, 2005
Message:
Fixed errors created with change I have been making.
Controller::generateFields(); was not setting the tagName properly.

[1182]
Author: phpnut
Date: 10:13:33 PM, Sunday, October 23, 2005
Message:
Removing the need to set hasMany and hasAndBelongsToMany to plural.
All associations should be created as CamelCase associations now.

[1181]
Author: phpnut
Date: 9:38:50 PM, Sunday, October 23, 2005
Message:
Forgot dispatcher.php in last commit

[1180]
Author: phpnut
Date: 9:37:06 PM, Sunday, October 23, 2005
Message:
refactoring and removing unneeded calls to Inflector


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1184 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-24 03:44:54 +00:00
phpnut
68b194965e [1178]
Author: phpnut
Date: 8:52:12 PM, Sunday, October 23, 2005
Message:
adding cakephp power image

[1177]
Author: phpnut
Date: 8:48:32 PM, Sunday, October 23, 2005
Message:
Updated scaffold to use new layout template.

[1176]
Author: phpnut
Date: 7:09:27 PM, Sunday, October 23, 2005
Message:
renaming cake/conf to cake/config

[1175]
Author: phpnut
Date: 7:06:04 PM, Sunday, October 23, 2005
Message:
moving tags.ini.php to cake/conf/tags.ini.php

[1174]
Author: phpnut
Date: 6:52:19 PM, Sunday, October 23, 2005
Message:
updating css/cake.scaffold.css

[1173]
Author: phpnut
Date: 6:46:07 PM, Sunday, October 23, 2005
Message:
updating css/cake.deafult.css and default layout

[1172]
Author: phpnut
Date: 6:42:48 PM, Sunday, October 23, 2005
Message:
updating css/cake.scaffold.css

[1171]
Author: phpnut
Date: 6:41:00 PM, Sunday, October 23, 2005
Message:
Adding spaces to tags.ini file

[1170]
Author: phpnut
Date: 6:37:17 PM, Sunday, October 23, 2005
Message:
Removing code that is no longer used

[1169]
Author: phpnut
Date: 6:34:24 PM, Sunday, October 23, 2005
Message:
removing files that are no longer used

[1168]
Author: phpnut
Date: 6:19:46 PM, Sunday, October 23, 2005
Message:
Cleaning up Scaffold class.

[1167]
Author: phpnut
Date: 5:26:27 PM, Sunday, October 23, 2005
Message:
Changes are added to remove the $this->models array that would hold the instance of the models.    
Now they are available as $this->ModelName; This should be CamelCased.                             
Added check in the Scaffold to return forms when accessing the actions update, create without a form being submitted.

[1166]
Author: phpnut
Date: 3:53:08 PM, Sunday, October 23, 2005
Message:
Making change to allow setting the name of a class camel cased to fix issues with PHP 4.
In both the model and the controllers:

  Model: var $name = 'ModelName'; 

  Controller: var $name = 'ControllerName'; ControllerName not ControllerNameController.  

[1165]
Author: phpnut
Date: 1:45:17 PM, Sunday, October 23, 2005
Message:
Fix added for problems with key name that was added to the class registry when underscored

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1179 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-24 01:56:20 +00:00
phpnut
ee07b4efa9 [1163]
Author: phpnut
Date: 6:42:00 PM, Saturday, October 22, 2005
Message:
fixed return value in Model::findAll();





git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1164 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-23 02:39:20 +00:00
phpnut
9f411d1be4 [1161]
Author: phpnut
Date: 4:32:45 PM, Saturday, October 22, 2005
Message:
Adding fixed for Ticket #91




git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1162 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-22 21:34:17 +00:00
phpnut
2bb31637cf [1159]
Author: phpnut
Date: 1:39:26 PM, Saturday, October 22, 2005
Message:
Just about done with refactoring the model class.
This should be tested to make sure all changes are working as expected.

[1158]
Author: phpnut
Date: 5:34:41 AM, Saturday, October 22, 2005
Message:
More work on associations.
Adding fields setting, order by and conditions to hasMany and hasAndBelongsToMany

[1157]
Author: phpnut
Date: 3:39:13 AM, Saturday, October 22, 2005
Message:
More cleanup in Model class.   

[1156]
Author: phpnut
Date: 2:43:38 AM, Saturday, October 22, 2005
Message:
Removing duplicate code the the associations.
Added Model::_associationSwitch(); to move all association settings to one location and remove duplicate code.

[1155]
Author: phpnut
Date: 1:52:47 AM, Saturday, October 22, 2005
Message:
More cleaning up of the model class

[1154]
Author: phpnut
Date: 1:40:34 AM, Saturday, October 22, 2005
Message:
Cleaning up code layout

[1153]
Author: phpnut
Date: 1:32:05 AM, Saturday, October 22, 2005
Message:
removing temp variables and extra calls to Inflector::underscore();

[1152]
Author: phpnut
Date: 1:22:58 AM, Saturday, October 22, 2005
Message:
More work on associations.
Removing code that is no longer needed.

[1151]
Author: phpnut
Date: 12:02:43 AM, Saturday, October 22, 2005
Message:
more work on associations

[1150]
Author: phpnut
Date: 6:25:45 PM, Friday, October 21, 2005
Message:
more refactoring of associations

[1149]
Author: phpnut
Date: 6:04:18 PM, Friday, October 21, 2005
Message:
refactoring model and adding more association code

[1145]
Author: phpnut
Date: 2:43:05 PM, Thursday, October 20, 2005
Message:
more refactoring on associations

[1143]
Author: phpnut
Date: 1:44:42 PM, Thursday, October 20, 2005
Message:
Refactoring associations code.
Starting work allowing full use of associations array settings


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1160 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-22 19:31:38 +00:00
phpnut
6baaa1120f [1125]
Adding empty directories where overrides for the core views can be placed.
Adding an empty directory for elements 

[1127]
Adding directory to hold core inflection files 

[1128]
More work on the new inflector.
This still is not completed but should be soon

[1130]
Documentation strings, du jour.

[1131]
Docstringed and ready. Inflector lacks one docstring. It is noted in its todo

[1132]
Incomplete documentation, and some corrections to previous documentation.
Gwoo noted that there'll be more changes in the Helpers soon, so I back off here.

[1134]
Adding before filters back to code.
Commented out a regex in Inflector::pluralize(); that os causing problems.
Removed a duplicate define in index.php.
Removed the bare array being set automatically when using requestAction().
With this change you must use requestAction(); like this.
$object->requestAction('/bare/controller/action/param');
Added GOTCHAS file with links to problems people may have with CakePHP.
Some more work done on new Inflector. 

[1135]
Added a check when trying to access a private method of a controller.
This will now display an error page informing user that this is not allowed. 

[1137]
Fixed a few undefined variable errors in the code
Corrected problem with double layout display when an error is returned and caught.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1138 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-18 22:27:39 +00:00
phpnut
ebdb8df957 fixing error where I commented out extends Object
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1115 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-09 02:47:43 +00:00
phpnut
d62b9ec65e Merging from sandboxes
[1079]
Merged [1005] committed by nate but not added to core prior to release.
Merged [1078] prior to modifying all developers sandboxes.

[1081]
adding view and template directories

[1082]
adding base files for view generator 

[1083]
correcting all package and sub package tags for in doc blocks.
Making sure every file in the core has doc block in them

[1084]
renaming working copy of latest release

[1093]
Added fix for associations using underscores if var $useTable is set in the associated models.
This closes ticket #11.

[1094]
Fix for Ticket #24.
The problem was tracked to a variable in View::_render();
$loadedHelpers was being assigned a reference when it when it should not have been.

[1096]
Initial work on controller components needs testing.
Also added a work around for the basics.php uses().
Using the define DS where the files from the original version are now located in deeper libs directories.

[1097]
committing a few typos in the code I added

[1098]
reformatting code in component.php

[1104]
changed the test route and corrected a regex in inflector.

[1111]
removing the contructor from dispatcher, it is not needed

[1112]
Changes made for errors when a file is not present in webroot.
Fixed the regex used in Router::parse().
Change the error layout template.

[1113]
Changes to Folder class to allow setting the permissions mode when constructing.
This class needs to be refactored and move everything that is in the contructor out.
The constructor should set the vars for use in other Folder::"methods"().
Will work on this at a later time.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1114 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-09 01:56:21 +00:00
phpnut
dd5ad1537c a few corrections to previous commits
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1076 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-04 18:33:48 +00:00
phpnut
e37a842373 last merge for the 0.10.0.1073_dev release
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1073 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-04 06:39:40 +00:00
phpnut
2c99d184f2 reverting changes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1059 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-03 21:16:04 +00:00
brego
111e8076c3 This change fixes the problem me and gwoo experienced. I didn't remove all the debug-comments, as they may still prove usefull soon. Please test if this works at your place.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1058 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-03 20:43:55 +00:00
phpnut
d44a364285 merging all changes done in sandbox for next release into the trunk
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1057 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-03 04:48:00 +00:00
phpnut
ab1db2532e removing changes made in trunk after directory changes made on next release
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1056 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-03 04:43:55 +00:00
phpnut
a316884f37 removing changes made in trunk after directory changes made on next release
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1055 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-03 04:41:33 +00:00
brego
a00a927cca Code formatting.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1010 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-29 18:19:30 +00:00
brego
b59672754b Redone more crappy formatting.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1009 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-29 17:58:44 +00:00
brego
e684156bf7 Changed more crappy formatting.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1008 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-29 17:31:23 +00:00
brego
f1292b5b76 Changed crappy formatting.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1007 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-29 17:29:00 +00:00
phpnut
d9b3e3e9df removing from core distribution
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@973 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-25 16:03:30 +00:00
phpnut
c6c2d6310f moved to test suite
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@971 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-25 15:57:27 +00:00
phpnut
3fb93807a9 Merging [920] [922] [929]
[920]
Small bugfix for after condition in AjaxHelper::remoteFunction

[922]
Fixed Ticket #224
Added patch from Ticket #221
Added patch from Ticket #222
Renamed renderMethod() to requestAction() the name fits better since we are really requesting another objects response.
Added a default setting to turn of autoRender for the class you are requesting the action from, 
this will allow you to request an action and use the return how you like, instead of letting the object output the content
directly to the browser if it would normally do so.

[929]
Adding fix for Itcket #225.

Moved code for beforeFilters to first section of Controller::constructClasses().
Removed current implementaion of  beforeFilters. This will be changed to pass
a reference of the object to the filters through a core filters class.
The core filter class will then load the filters and perform all request on the object in the order the
filters are arranged in var $beforeFilters, each beforeFilter needs to be a class that the core filter class will create
an instance of. If one of the filters fails, it will return the object, untouched and not try to process other filters, an 
failed var will be set on the controller.

This will be done before data base is initialized for the current object that is being filtered.

Modifed the requestAction() changes are noted below

        Using inside of a controller.
        Default
        $this->requestAction('/controller/action/argument/');
        Request Object to render output directly
        $this->requestAction('/controller/action/argument/', a('render'));

        Using a helper object to make request inside of a view:
        Default
        $helpername->requestAction('/controller/action/argument/');
        Request Object to render output directly
        $helpername->requestAction('/controller/action/argument/', a('render'));

        Using the View object "$this" in a view to make request:
        $this->requestAction('/controller/action/argument/');
        Request Object to render output directly
        $this->requestAction('/controller/action/argument/', a('render'));




git-svn-id: https://svn.cakephp.org/repo/trunk/cake@930 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-21 05:48:09 +00:00
phpnut
b31a699d3e correcting mime type on files
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@918 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-20 00:23:17 +00:00
phpnut
ea2058256a Merging following revisions to trunk
[913]
Refactoring Dispatcher and Scaffold classes.
Removed Dispatcher::scaffoldView() and added it to
Scaffold::_scaffoldView() less coupling between the 2 classes now

[914]
Adding settings to fix issue when using get_class() in PHP 4.
If value of var $casedClas is set in controller this name will be Inflected to the proper table name if underscores are used
in the database.

[915]
Added suggestion from ticket #220

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@917 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-19 22:59:06 +00:00
phpnut
92d2625186 merging change from [911]
Refactoring Dispatcher::dispatch() created a private Dispatcher::_invoke().
Removed code that was no longer used by Dispatcher
Refactored duplicate code in Object::renderMethod();

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@912 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-19 20:07:16 +00:00
phpnut
59af4d3258 Merging changes from:
[905]
Refactoring renderMethod() moving to object class to make it available to whole system

[908]
Bug fixes to ticket #219.
Added bug fixes I found in code.
Fixed Router::parse(); which only checked lower case strings
Refactored renderAction method. Moved to object class to allow all classes to access the method now.
This will allow a User object to make a request to a Permsissions object checking.
For example: You have a User object that needs to check its permission to access
User object would make are request to Permission object.
$accces = $this->renderAction('/permission/allow/userid/');

You would then be able to use the results of $access in your controller.
To check this in the view
$accces = $html->renderAction('/permission/allow/userid/');

Simple as that.

[906]
Added sortable() to AjaxHelper as a method of creating sortables,
and refactored a fair amount of the code.

[907]
Coding standard corrections.

removed blank line at end of paths.php file

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@910 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-19 17:20:24 +00:00
phpnut
1d1c2cf171 Fixed error in the basics.php loadController()
This function was using require instead of require_once.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@903 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-19 02:15:45 +00:00
phpnut
5f1d672d5e Some changes to allow calling a method from another controller in the view.
helpers can now use this like a url to get methods return value:
$helpername->renderMethod('/controller/action/param/');
Refactored dispatcher.
Adding bug fix by nate in [894] [896]
Added extra param View::renderMethod()
Fixed bug related to #72, #111, #113, #209
Some of those tickets where closed as duplicates already

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@900 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-19 01:16:05 +00:00
phpnut
1a93ab942f merging changes made in sandboxes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@893 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-18 18:58:45 +00:00
phpnut
a86866a7a1 merging [880] [881] [882] and [883] fixes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@884 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-18 13:25:20 +00:00
phpnut
7eb53efb5b Added variable correction make in [876]
Ticket #216 closed

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@877 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-18 10:08:10 +00:00
phpnut
02f5dfb43f merging fixes to the trunk,
re syncing sandboxes

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@875 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-17 22:20:28 +00:00
phpnut
00aa3c66d2 merging fixes into trunk from [869]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@870 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-17 12:37:05 +00:00
phpnut
29a1ee9043 merging fixes into trunk from [857] [858] [859] [860] [861]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@862 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-17 07:56:32 +00:00
phpnut
1dce095546 merging changes from sandboxes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@856 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-17 02:22:07 +00:00
phpnut
37da997748 Last test for changes made in client
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@822 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-14 04:29:16 +00:00
phpnut
be9b1ddc7b adding missing test file
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@820 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-14 04:13:21 +00:00
phpnut
3c97ea8474 merging changes from [816]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@819 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-14 04:11:56 +00:00
phpnut
24cc71311e merging changes from my sandbox
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@812 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-14 02:58:23 +00:00
brego
c45c15bb50 Fix for #169.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@803 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-13 19:56:19 +00:00
phpnut
e640ab7596 merging from my sandbox
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@798 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-11 12:45:10 +00:00
phpnut
f6662921c2 merging from my sandbox
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@795 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-11 04:51:40 +00:00
phpnut
731cc517e9 merging changes to tests from my sandbox
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@789 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-11 02:35:47 +00:00
phpnut
6019c0d98d merging changes and bug fixes from sandboxes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@757 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-09-07 01:52:45 +00:00
phpnut
7c7a2151ab updating trunk with bug fixes and other modifications
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@737 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-28 16:33:50 +00:00
phpnut
4c5e5ec9a2 Merging changes from [714] [715]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@716 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-26 04:03:51 +00:00
phpnut
9bdd3cf9aa merging fixes from [712]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@713 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-25 23:23:44 +00:00
phpnut
d5ebd2f4b7 merging changes from [692] [693] [697] [699] [701] [704] [706] [707]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@709 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-25 16:40:50 +00:00