Commit graph

18867 commits

Author SHA1 Message Date
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
phpnut
cdf8fd5812 merging changes from [683] [684] [685] [686] [688] [689] [690]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@691 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-25 03:45:14 +00:00
phpnut
e9358bacbe merging fixes and changes from my sandbox up to last svn commit [675]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@677 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-24 03:08:37 +00:00
phpnut
bf7386ffa0 merging fixes from [652] [653] [656] [658] [659] [663] [666] [667]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@668 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-23 23:21:33 +00:00
phpnut
dcf9a8cc38 forgot to commit these changes to trunk and my own sandbox
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@635 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-22 04:25:26 +00:00
phpnut
184e0d06e8 re syncing all sandboxes and updated trunk with all the latest changes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@634 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-22 04:15:57 +00:00
phpnut
650c85809a merging changes from [619] [620] [622] [623] and [630]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@632 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-22 02:48:37 +00:00
phpnut
e2af5c8608 merging changes from [614]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@616 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-08-21 20:01:32 +00:00