Revision: [2369]
Added missing doc comments to classes
Revision: [2368]
Removing core view paths from Configure class
Revision: [2367]
Updating View class to use new Configure class to search paths for view files
Revision:[ 2366]
Corrected loadControllers() in basics.php
Revision: [2365]
Updating function in basics.php to use new Configure class
Revision: [2364]
removed duplicate loading of app/config/bootstrap.php
Revision: [2363]
Added new Configure class to hold paths to models, views, and controllers related to Ticket #470.
Moved loading of app/config/bootstrap.php to Configure class from app/webroot/index.php.
Added creating instance of Configure instance in cake/bootstrap.php
Added example of setting custom paths in app/config/bootstrap.php
Corrected error in Object::_savePersistent().
Revision: [2362]
Added fix for Ticket #534
Revision: [2361]
Refactoring persistent code a little more.
File now holds a variable with the serialized class and is include vs. reading file contents.
Revision: [2360]
Refactored persistent methods to use cache()
Revision: [2359]
Fixing array_combine() Warning in Model::generateList()
Revision: [2358]
Set var $persistModel to false by default
Revision: [2357]
Moved persistent code to Object class.
Moved $TIME_START variable to top of file.
added __sleep methods for models
Revision: [2356]
Reverting persistent changes to Model class
Revision: [2355]
Adding fix for Ticket #550
Revision: [2354]
Corrected errors in persistent code
Revision: [2353]
Corrected overwrite in the model/model_php4.php file.
Revision: [2352]
Adding persistent methods to Model class.
This will allow caching of classes.
Added app/tmp/persistent directory.
Revision: [2351]
Reverting changes to dbo_source.php in [2350]
Revision: [2350]
Removed name pattern matches related to Ticket #534
Revision: [2349]
Adding fix for Ticket #548
Revision: [2348]
Adding fixes from Ticket #547.
Revision: [2347]
Adding fixes from Ticket #546.
Revision: [2346]
Adding fix for Ticket #527
Revision: [2345]
Refactored Html::url()
Revision: [2344]
Last fix for Ticket #483
Revision: [2343]
Updating last commit
Revision: [2342]
Adding fix for Ticket #483
Revision: [2341]
Adding fix for Ticket #543, DBO will now only cache SELECT queries
Revision: [2340]
Adding session_write_close() to the CakeSession::__regenerateId()
Revision: [2339]
Adding patch from Ticket #544
Revision: [2338]
Adding patch from Ticket #529
Revision: [2337]
Adding patch from Ticket #528
Revision: [2336]
Removing the converting of \n to <br /> in Sanitize::html()
Revision: [2335]
Added bash script from Ticket #533
Revision: [2334]
Added enhancement for Ticket #474
Revision: [2333]
Correcting errors introduced with prior fix
Revision: [2332]
Correcting errors introduced with prior fix
Revision: [2331]
Performance optimization for NeatArray::findIn(): replaced foreach loop with for
Revision: [2330]
Minor performance optimization: Replacing all occurrences of low() with strtolower()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2370 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2151]
Merging changes made to model_php5.php into model_php4.php.
Revision: [2150]
Cleaning up code, removing in line comments
Revision: [2149]
Fixed wrong params passed to SessionComponent::setFlash() in Scaffold class.
Changed View::_render() to only suppress errors in the view when DEBUG is set to 0.
Revision: [2148]
Adding suggestion from Ticket #446.
Revision: [2147]
Added fix for Ticket #443
Revision: [2146]
Added fix for Ticket #444.
Added table.field in the CakeSession class database methods
Revision: [2145]
Renamed _new to _blank in default.thtml.
Starting to refactor changes that broke self joined associations.
Revision: [2144]
Adding fix for Ticket #202
Revision: [2143]
Adding support for nested array-based conditions
Revision: [2141]
Updating View for Session flash changes
Revision: [2140]
Adding Session flash enhancements for a ticket that I took but can't find because someone else closed it
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2152 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2025]
A little more work on plugin to set some default routing.
Revision: [2024]
Changed DboSource::field() so the name() is not called for some field variables.
Revision: [2023]
Changes made in [2022] should only check if the $conditions is not empty.
Revision: [2022]
Changed DboSource::conditions() so it will add the "ticks" needed around the Model.field names.
The Model.field name conventions must be used for this to work.
Revision: [2021]
Adding fix for Ticket #405
Revision: [2020]
Added fix for Ticket #403
Revision: [2019]
Added patch from Ticket #404.
Fixing formatting of files.
Revision: [2018]
Fixing formatting of files
Revision: [2017]
Fixed bad search and replace
Revision: [2016]
Fixing formatting of files
Revision: [2015]
Replaced all 3 space indents with 4 space indents
Revision: [2014]
Updating variables to use the naming proper conventions
Revision: [2013]
Added patch from Ticket #406
Revision: [2012]
Adding fix for Ticket #407.
Fix variables that where not formatted per the coding conventions
Revision: [2011]
Adding patch from Ticket #401
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2026 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1948]
Added fix for Ticket #376
Revision: [1947]
Renamed log.php to cake_log.php
Revision: [1946]
Added fix for Ticket #371;
Moved LogError to bascis.php from log.php
Renaming Log class to CakeLog to avoid conflicts with Pear Log class or any other Log class.
Added check to File class to load Folder class if it is not in memory already
Moved LOG_ERROR define to app/config/core.php
Revision: [1945]
Updated Inflector::pluralize(); and Inflector::singularize(); to use some code that is in the new Inflector class from version 1.x.x.x
Added fix for Ticket #373
Added fix for Ticket #357
Added patch from Ticket #363
Revision: [1944]
Added fix for Ticket #349 PHP 5 version
Revision: [1943]
Added fix for Ticket #349
Revision: [1942]
Adding patches from Ticket #377
Revision: [1941]
Quick URL fix for AjaxHelper::editor
Revision: [1940]
Fixing Ticket #375
Revision: [1939]
Adding fix for Ticket #369, plus slider control and Ajax In-Place editor
Revision: [1938]
diff patched applied from gwoo
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1949 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1841]
Merging changes made in model_php5.php to model_php4.php
Revision: [1840]
Adding fix for PHP 5 when using mysql_connect setting.
Commented out the call to Dbo*::disconnect(). This was closing connections early.
Adding fixe for Ticket #302.
Adding Enhancement for Ticket #300.
Adding fix for Ticket #299
Adding Enhancement for Ticket #298
Adding fix for Ticket #297
Adding Enhancement/Patch from Ticket #296
Revision: [1838]
working on deeper recursive joins
Revision: [1837]
Updating copyright information in all files
Revision: [1836]
Adding fix when setting a field value to 0.
Before it would set this to NULL, which was not expected result.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1842 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1829]
Fixing AjaxHelper::form()
Revision: [1828]
Added check to return false is passing an empty string to requestAction(),
method would seg fault if param was empty.
Fixing another problem found when passing fields to the model methods.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1830 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1764]
Changed var $ds back to $db and var $source back to $table in beta.
Moved last error message out of the object class.
Fixed PHP 4 error in home.thtml.
Revision: [1763]
Added changes made in model error handling lost in merge
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1765 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1761]
Removing old db_acl.sql
Revision: [1759]
Removed unneeded calls to uses().
Changed basics.php listClasses() no longer using folder class.
Starting corrections in DboPostgres class.
Adding missing DboPostgres::query().
Added missing doc blocks to AjaxHelper.
Fixed undefined keys in FormHelper::generateFields()
Reformatted FormHelper::generateFields() adding open and close brackets where needed
Revision: [1758]
Fixed typo
Revision: [1757]
Fixed errors found when using PHP 4.
Fixed a scaffold error
Revision: [1756]
Merging changes to model_php4.php
Revision: [1755]
Fixed scaffolding for the changes made to the model.
Fixed Model::isForeignKey(), replaced array_key_exists with in_array, other function was failing
Revision: [1754]
Committing changes from bundt model to beta.
DataSources will not be in the beta release
Revision: [1751]
Cleaning up a little more in the code.
Removing loading of log.php unless it is really needed.
Refactored dispatcher to speed up the stripslashes code if it is called
Revision: [1748]
removing all references to error_messages and deleting the file
Revision: [1747]
updated more error messages
Revision: [1746]
removing all error message defines
Revision: [1745]
added _() method from 1.0 to basics.php only used to return string right now
Revision: [1744]
Adding fix for ticket #220
Revision: [1743]
More work on ErrorHandler class
Revision: [1742]
Renaming error view for missing database connection
Revision: [1741]
More work on ErrorHandler class
Revision: [1740]
More work on error class
Revision: [1739]
Replacing all $_SERVER variable check with env() in basics.php
Revision: [1738]
Adding env() to basic
Revision: [1737]
Updated session to use env()
Revision: [1736]
Removing ternary operators from Dispatcher
Revision: [1735]
Per nates request I am rolling back ACL to [1373]
Revision: [1734]
Removed the IP in the session class this was not very reliable.
Added a time setting that generates current time adding the Security::inactiveMins() to the session
Removed code that was added to basics.php to replace gethostbyaddr().
Added CAKE_SESSION_STRING define to core.php which is used in the by the Session class to generate a hashed key.
Revision: [1733]
Moving errors messages to ErrorHandler class.
Updating errors view for use with new class.
Updating Scaffold to use new class.
Updated Dispatcher to use new class.
Removing methods from Object class
Revision: [1732]
Adding ErrorHandler class
Revision: [1731]
Adding fix for Ticket #223
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1762 3807eeeb-6ff5-0310-8944-8be069107fe0
Merging:
Revision: [1647]
Commit to fix auto render using requestAction()
Revision: [1646]
Added fix for the date select forms in scaffold when using date field type in the database.
Added fix for Ticket #132.
Added @ to stop warning in php if a call to gethostbyaddr fails with a bad ip sent.
Performance increased more with changes the View::_loadHelpers.
Each helper would load the config file whan an instance was created and parse, change now reads it once.
Fixed previous fix I added to only load helpers once, this time it works.
Change the constructor in View to use __construct() like other classes in the core.
Added $this->autoRender = false; in PagesController::display() after $this->render() is called.
PHP 5 would work fine without it, PHP 4 would display a view under the rendered layout.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1648 3807eeeb-6ff5-0310-8944-8be069107fe0
Merging:
Revision: [1644]
Bad merge last commit had second param in the class_exists() call
Revision: [1643]
Fixed errors introduced in last changes:
Variable that was passed the loadController function was not expected controller class name,
It was the name fo the class without Controller. This would cause the loading to fail, since
it was possible that a class was already loaded with the name that was passed.
Example NewsController and a model called News.
Revision: [1642]
Added patch for MySql 5
Revision: [1641]
removing second parameter in the class_exists function calls.
closes Ticket #209
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1645 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1638]
removing php short tags
Revision: [1637]
Remove renderElememnts loading of helpers also, forgot it in the last commit
Revision: [1636]
Refactoring after profiling code.
Session was creating a new instance of Dispatcher removed the need for it.
Added a check to the Component class to pass the base to the SessionComponent class, will refactor that at a later time.
Changed View class so it would not load helpers when rending a layout, no need for that.
A great performance boost after the change.
Change the loadModels method call in app/webroot/index.php.
Will only attempt the loadModels call if the AppModel class is not in memory, and the Database class is in memory.
Removed all unnecessary calls to basics uses(). Again another big performance increase.
Added fix to the Html::guiListTree() after discussing the output that is expected.
A ticket was closed on this already.
Revision: [1635]
Removing calls to basic uses()
Revision: [1634]
Removing calls to basics uses() that are not needed.
Revision: [1633]
Removing calls to basics uses() that are not needed.
Moved Object class further up in the loading order
Revision: [1632]
adding fix for Ticket #132
Revision: [1631]
Added fix from Ticket #122
Revision: [1630]
Scaffold views can now be placed in a view directory.
These will override the core.
Example (Must have the scaffold dot name):
app/views/posts/scaffold.list.thtml
app/views/posts/scaffold.new.thtml
app/views/posts/scaffold.edit.thtml
app/views/posts/scaffold.show.thtml
Revision: [1629]
Think I fixed the issue with scaffold showing proper dates prior to January 1 1970 00:00:00.
Revision: [1628]
Added a few more change to allow saving dates prior to January 1 1970 00:00:00.
Still a few issues with this, but will get them figured out soon.
Changed scaffold to use only one form view.
Revision: [1627]
Added fix for Ticket #189
Revision: [1626]
Added fix for Ticket #120.
Revision: [1625]
left justified doc blocks
Revision: [1624]
remove files from uses() that are loaded by default in app/webroot/index.php no reason to attempt to load them again in the classes
Revision: [1623]
adding check to the loadModels and loadController that will only attempt to load files if the classes are not already in memory
Revision: [1622]
Adding fix to time helper that was lost in a previous merge
Removing all tabs from code
Revision: [1621]
Addtional model validation fixes
Revision: [1620]
fixed parse error
Revision: [1619]
Fixing ticket #102
Revision: [1618]
correcting mime types and keywords
Revision: [1617]
correcting mime types and keywords
Revision: [1616]
fixed link in footer
Revision: [1615]
Fixing ticket #207
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1639 3807eeeb-6ff5-0310-8944-8be069107fe0
[1613]
Fixing Bake (Ticket #5)
[1612]
Adding new file header
[1611]
Starting to fix Bake (Ticket #5)
[1610]
Adding patch for Ticket #63
[1609]
Fixing ticket #13
[1608]
Fix so only sub classes that have a __destruct() implemented will have it registered
[1607]
Fixing ticket #130
[1606]
Fix for Ticket #190
[1605]
Fixing ticket #136
[1604]
Fixed would throw error if a action was camelCased in the url or in requestAction()
[1603]
fixed a few typos in home view
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1614 3807eeeb-6ff5-0310-8944-8be069107fe0
Updated headers.
beginning to clean up files that are not used in this version of Cake
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1593 3807eeeb-6ff5-0310-8944-8be069107fe0
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
[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