Revision: [2654]
Refactored the Object::cakeError()
Revision: [2653]
Adding check for custom error class in app/.
Added check for AppController::appError(); will be called if this method
is in AppController.
Revision: [2652]
Adding fix for Ticket #704
Revision: [2650]
Fixing scaffold CSS
Revision: [2648]
Adding fix for Ticket #717
Revision: [2647]
Adding fix for Ticket #718
git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2685 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2618]
Adding fix for Ticket #609
Revision: [2617]
Added fix for Ticket #684
Revision: [2616]
Adding patch from Ticket #649
Revision: [2615]
Adding fix for Ticket #608
Revision: [2614]
Additional fix for Ticket #584
Revision: [2613]
Adding fix for Ticket #584
Revision: [2612]
Added fix for undefined index notices
Revision: [2609]
Adding fix for Ticket #658
Revision: [2608]
Adding fix for Ticket #635, and code formatting fixes in FormHelper
Revision: [2607]
Adding fix for Ticket #636
Revision: [2606]
Adding fix to allow associations to be defined through non-associative arrays
Revision: [2605]
Adding fix for Ticket #672
Revision: [2604]
Adding fix for Ticket #708
Revision: [2603]
Adding fix for Ticket #687
Revision: [2602]
Refactoring database drivers, and adding fix for Ticket #398
Revision: [2601]
Merging change from model_php5.php
Revision: [2600]
Adding ODBC driver
Revision: [2599]
Adding fix for Ticket #702
Revision: [2598]
Adding fix for Ticket #699
Revision: [2597]
Fixing an issue in Model::set(), and moving limit() to DboSource
Revision: [2595]
Fixing unit test download URL in Bake
Revision: [2594]
Adding fix for Ticket #698
Revision: [2593]
Adding fox for Ticket #231
Revision: [2592]
Adding fix for Ticket #630, and updating MS SQL driver docstring
Revision: [2577]
Adding $alias property to enable future Oracle support
Revision: [2568]
Merging changes to bake from old sandboxes
git-svn-id: https://svn.cakephp.org/repo/trunk/cake/1.x.x.x@2620 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2457]
Adding fix for Ticket #612
Revision: [2456]
"Enables use of Controller::$data in addition to Controller::$params['data']"
Revision: [2455]
"Adding fix for Ticket #634"
Revision: [2454]
"Removing trailing directory separator on ROOT"
Revision: [2451]
Dispatching and routing changes for IIS
Revision: [2450]
Downgrading error level in AclNode::create and adding additional filename check in listClasses()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2462 3807eeeb-6ff5-0310-8944-8be069107fe0
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: [2316]
Added fix for message: Warning: array_diff(): Argument #2 is not an array in Controller::__construct()
Revision: [2315]
Adding fix for Ticket #517
Revision: [2314]
Corrected scaffold throwing errors when irregular words are used for model/table names
Revision: [2313]
Added patch from Ticket #495.
Added missing ?> bracket at end of file
Revision: [2312]
Corrected model names being set to lower case, When matched to an irregular word in Inflector methods.
Added custom inflections.php file to allow application to have custom inflection rules.
Correct variable in View::renderCache(). error thrown if time class was used $time variable changed to $timeStart.
Revision: [2311]
Corrected $db placed in wrong section of the method
Revision: [2310]
Removing the db attribute from the model, This will help better with persistent objects
Revision: [2309]
Adding fix for Ticket #490
Revision: [2308]
Update to previous commit
Revision: [2307]
Removing references to Model->db. DataBase connections are now singleton-only.
Revision: [2306]
Refactoring getDataSource() into loadDataSource() and enumConnectionObjects()
Revision: [2305]
Reverting changes to this file
Revision: [2304]
Fixing Ticket #496, getColumnType, and docstrings
Revision: [2303]
Adding fix for Ticket #510
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2317 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2253]
"Changing define to false by default"
Revision: [2251][2252]
"Adding check if define is not set"
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2254 3807eeeb-6ff5-0310-8944-8be069107fe0
Changing version number to 1.x.x.x, 0.10.x.x code base had been changed to the version number 1.x.x.x, and what was planned for 1.x.x.x code has
now been moved to 2.x.x.x, and 2.x.x.x moved to 3.x.x.x. This will give us easier to track version numbers from now on.
Revision: [2248]
Merging changes from model_php5.php
Revision: [2247]
"Removing test code from view class"
Revision: [2246]
Removed cache time define from core.php.
Modified the __() function in basics.php to echo string like it will in later versions of cake with translations.
Refactored the cache checking in bootstrap.php to read the files embedded time stamp and delete or output the cached version.
Added View::cacheView() for caching pages.
Revision: [2245]
Moving column formatting from DBO to Sanitize
Revision: [2244]
Adding beforeValidate() Model callback, and allowing query data to be modified in beforeFind()
Revision: [2243]
"Adding caching changes to Controller class "
Revision: [2242]
"Added check to delete cached version if it has expired"
Revision: [2241]
Adding app/cache/views directory
Revision: [2240]
"Fixed missing variable"
Revision: [2239]
"Adding full page caching to view class."
Revision: [2238]
"Adding defines for caching"
Revision: [2237]
"Adding caching check too bootstrap.php"
Revision: [2236]
Adding ClassRegistry::removeObject from Ticket #477
Revision: [2235]
"Correcting setting in DATABASE_CONFIG class"
Revision: [2231]
Adding convenience function am(), which allows merging an infinite number of arrays merged into one
Revision: [2207]
Change Model::save() to call beforeSave() before validations
Revision: [2199]
Removing conditions method call in Model::field()
Revision: [2196]
Setting proper mime type again
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2250 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2193]
Adding fix for Ticket #471
Revision: [2192]
Adding fix from Ticket #464.
Revision: [2191]
Adding fix for Ticket #461
Revision: [2190]
Adding fix for array_merge_recursive() error when unbindModelis used
Revision: [2189]
merging changes made in model_php5.php
Revision: [2188]
Fixing controller so $viewPath can be set as a var
Revision: [2186]
Adding Security component
Revision: [2185]
Adding additional RequestHandler detection, form security authentication, and automagic view variable $data
Revision: [2183]
Fixing Ticket #473
Revision: [2182]
Adding fix for Ticket #261
Revision: [2181]
Changing MySQL column defs from 12 hour times to 24 (#465)
Revision: [2180]
Fixing Tickets #463 and #462, and an error in Controller::setAction()
Revision: [2179]
Fixing a bug I found in AjaxHelper::link(), and changing the stopwatch time to 4 decimals
Revision: [2177]
Added patch from Ticket #459
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2195 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2158]
Changing vendors() to user require_once().
Revision: [2157]
Fixed missing directory separator.
Revision: [2156]
Added a few more fixes for Ticket #447
Revision: [2155]
Reverting changes in [2153]
Adding fix for Ticket #447
Revision: [2154]
Adding patch from Ticket #448
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2159 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2120]
Added fix for error in Controller::cleanUpFields().
Fixed typo in Scaffold::__scaffoldUpdate().
Revision: [2119]
Added fix for missing view error.
Added changes to allow SessionComponent::flash() to return similar to what was suggested in Ticket #430.
Changed delimiter to -! in the arrays used in DboSource::conditions().
Fixed single quotes being added when value was empty
Revision: [2118]
Corrected some bugs found in DboSource::conditions();
Added loading of app/config/bootstrap.php to index.php after the core bootstrap.php loads.
Changed doc block comment in app/config/bootstrap.php
Revision: [2117]
"Adding app/config/bootstrap.php.
Used for application wide settings"
Revision: [2116]
"Added better regex to the DboSource::fields()"
Revision: [2115]
Moving the DIRECTORY_SEPARATOR to top section of the file
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2121 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2098]
Removed check for database class to load model classes from the models directory.
Fixed missing views not being found.
Revision: [2097]
Fixed the WWW_ROOT setting
Revision: [2096]
Changed the way Sessions component is added to the components array
Revision: [2095]
Moved the WWW_ROOT define.
Revision: [2094]
Components/Helpers etc. in AppController are now automatically added to all controllers
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2099 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: [2009]
Adding fixes for session errors posted in the google group.
Changed the header for PHP version in the model classes.
Change uses() back to require_once
Revision: [2008]
Adding reference back to the PHP 4 model
Revision: [2007]
Merging changes from model_php5
Revision: [2006]
Fixing recursive associations, adding whitelist to Model::save
Revision: [2005]
Added fix for error in CakeSession class.
Updated home.thtml
Revision: [2004]
Rearranged some of the defines moving the most often changed ones to the top of the script
Revision: [2003]
Moved SQL files distributed with the core to app/config/sql/
Removed app/config/routes.php.default
Fixed class_exists check in TextHelper
Revision: [2002]
adding sql directory
Revision: [2001]
Fixed error when cake distribution is installed inside of the DOCUMENT ROOT
Revision: [2000]
Adding checks for classes that are already loaded so the require() calls will not error
Revision: [1999]
Replacing all require_once() with require()
Revision: [1998]
Moved creation of the Dispatcher object to app/webroot/index.php
Revision: [1997]
Adding session sql file
Revision: [1996]
Revision: [1995]
Fixing session db queries
Revision: [1994]
Change the require_once in bootstrap to require.
Merged changes John made to the CakeSession database methods
Revision: [1993]
Removing some constants that are not needed
Revision: [1992]
Adding fix for Ticket #400
Revision: [1991]
Fixing Ticket #348
Revision: [1990]
Fixing Tickets #397 and #399
Revision: [1989]
Fixed callbacks in JavaScript events and Ajax, fixed Controller::beforeRender so you can set view variables, and fixed Ticket #394
Revision: [1988]
Renamed the $dir param to $direction.
Added default value to the DboSource::order() $direction param.
Revision: [1987]
Adding changes back to the sessions class I reverted in [1984]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2010 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1985]
Changed DboSource?::order() to allow passing an array in the order param
Revision: [1984]
Reverting changes from [1983]
Revision: [1983]
Merging change from [1966] and [1967]
Revision: [1982]
Adding fix for DboSource::order().
This allows setting the order in the find methods.
Revision: [1981]
cleaned up code
Revision: [1980]
Corrected the array keys in the regex I added
Revision: [1979]
Added check to DboMysql::value() that does not add quotes around a numerical value.
Refactored DboSource::conditions() adding better regex.
Revision: [1978]
Added check for LIKE in a condition array this fixes the = being added.
Revision: [1977]
Added fix for Ticket #392
Revision: [1976]
Adding changes suggested in Ticket #381.
These have not been fully tested.
Revision: [1975]
Added fix for Ticket #391
Revision: [1974]
Added patch from Ticket #390
Revision: [1973]
Adding patch from Ticket #386
Revision: [1972]
Added patch from Ticket #385.
Changed wording of a comment.
Revision: [1971]
Added patch from Ticket #383
Revision: [1970]
Adding fix for Ticket #395
Revision: [1969]
Adding more detailed comment to path defines
Revision: [1968]
Making a few more changes to the path settings
Revision: [1965]
fixing path issue with loading PagesController
Revision: [1964]
Added model method for getting column types by field
Revision: [1963]
Corrected paths to the tmp directory.
Making a few more changes to the defines in index.php
Revision: [1962]
Moving tmp directory to app
Revision: [1961]
Starting separation of core from the application.
Revision: [1960]
Adding vendors directory to app directory
Revision: [1959]
Finished support for recursive associations. Still needs some testing...
Revision: [1958]
Adding fix for Ticket #387, and automagic id's for form inputs
Revision: [1957]
Revision: [1956]
Adding fix for error reported in Google Group: http://groups.google.com/group/cake-php/browse_thread/thread/395593a3cea34174
Revision: [1955]
Adding fix for Controller::referer()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1986 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: [1914]
Adding prefix setting to the database config class.
Setting the value here will use the prefix for all models.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1915 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: [1815]
Adding the path.php require back, and removing the code that was in the path.php file.
Revision: [1814]
More work on Model.
Removed all code from app/webroot/index.php that is moved to the bootstrap file.
Added CAKE_SESSION_TIMEOUT define in app/config/core.php
Revision: [1813]
Adding a bootstrap file to remove need to edit index.php anymore
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1816 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1796]
Adding missing layout error messages.
Changed more errors in View class to use the ErrorHandler class
Revision: [1795]
Added the missing error messages I found after RC 1 was built.
Corrected errors in the View class when helpers where not found.
Added error views for missing component classes and files.
Updated views for missing view classes and files
Revision: [1794]
Adding fix for Ticket #273
Revision: [1793]
Correcting loading order of required files in bake.php
Revision: [1792]
Added fix for Ticket #271
Revision: [1791]
Fix for Ticket #268 and Ticket #272
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1797 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
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
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
Author: phpnut
Date: 10:02:08 PM, Friday, November 04, 2005
Message:
Merging new ACL
[1312]
Author: phpnut
Date: 8:20:15 AM, Wednesday, November 02, 2005
Message:
More coding on the Security class.
Added cipher method provided by Nate to the class.
Added hash method that will be used to generate a authentication key
Added method to the CakeSession class to return all session vars if the session components read method is called with empty params.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1329 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 10:09:03 PM, Monday, October 31, 2005
Message:
Removed references in the Session class
[1283]
Author: phpnut
Date: 8:47:37 PM, Monday, October 31, 2005
Message:
Added fix to the Controller::constructClassess().
The database should have an instance available if a component will use it.
[1282]
Author: phpnut
Date: 8:36:07 PM, Monday, October 31, 2005
Message:
Updated the Model association methods to correct and error I introduced when reactoring last week.
Added a return from each of the settings in Security::inactiveMins(); This class is not fully implemented.
Updated scaffold and dipatcher with changes to the session class.
Fixed problem with session not working properly.
Added a regenrate id for sessions.
When CAKE_SECURITY is set to high this will regenrate a new session key on each request.
The old session file will be removed from the file system. This is a added security measure.
[1270]
Author: phpnut
Date: 1:55:28 PM, Sunday, October 30, 2005
Message:
Updated Session class to regenrate a new session key on each request when security level set to high.
Updated doc comments in some classes
[1269]
Author: phpnut
Date: 9:49:43 AM, Sunday, October 30, 2005
Message:
Added a fix for Ticket #105
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1286 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 8:13:45 PM, Friday, October 28, 2005
Message:
adding version text file
[1257]
Author: phpnut
Date: 8:03:24 PM, Friday, October 28, 2005
Message:
small typo in last commit
[1256]
Author: phpnut
Date: 7:16:50 PM, Friday, October 28, 2005
Message:
Added fix for a self join of 1 to 1 associations.
This is automatic and adds Child_ to the joined class for hasOne or belongsTo.
Scaffold is updated to work with this change.
You will have to consider the Child_ prefix when working with self joins.
[1253]
Author: phpnut
Date: 4:07:55 PM, Friday, October 28, 2005
Message:
Fixed problem with session cookies being set for each path in the URL.
Added char to switch in Controller::generateFieldNames()
[1252]
Author: phpnut
Date: 1:59:49 PM, Friday, October 28, 2005
Message:
Updated routes.php.default with change to route case.
Removed debug code I had added to Model::findAll
[1251]
Author: phpnut
Date: 1:51:00 PM, Friday, October 28, 2005
Message:
Added a fix for class already defined error.
Updated core.php docblock with level 3 setting for DEBUG.
Change instances of AppController to Controller for loading error messages.
Updated 404 errors to use default layout
[1250]
Author: phpnut
Date: 1:34:08 PM, Friday, October 28, 2005
Message:
renaming error or error404
[1249]
Author: phpnut
Date: 1:32:51 PM, Friday, October 28, 2005
Message:
moving error.thtml to errors directory
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1259 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 3:20:08 AM, Friday, October 28, 2005
Message:
Adding fix for Ticket #107
Revision: 1244
Author: phpnut
Date: 2:18:00 AM, Friday, October 28, 2005
Message:
Adding config setting to allow setting a admin path that can access admin methods only on a controller.
Added ability to add objects to the session.
Updated some scaffold templates.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1246 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 4:44:45 AM, Wednesday, October 26, 2005
Message:
AJAX is now available as a by default in the $html variable in the templates.
You access it like this:
$html->Ajax->xxx();
Updated default templates.
[1208]
Author: phpnut
Date: 6:49:26 PM, Tuesday, October 25, 2005
Message:
Adding fix in Controller::generateFieldNames();
[1203]
Author: phpnut
Date: 10:40:28 AM, Tuesday, October 25, 2005
Message:
Changes made to core templates and css.
Fixed added for Ticket #60
[1202]
Author: phpnut
Date: 2:30:58 AM, Tuesday, October 25, 2005
Message:
Fix for cake error templates
Fixed a key for tables that are underscored in scaffolded code.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1211 3807eeeb-6ff5-0310-8944-8be069107fe0
Author: phpnut
Date: 4:50:40 AM, Monday, October 24, 2005
Message:
Adding comment to doc block with possible settings for the driver configuration
[1191]
Author: phpnut
Date: 4:37:46 AM, Monday, October 24, 2005
Message:
Adding configuration setting in database.php to set the type of connection you want to use.
Read the comments in the doc block to explain how to set the connection type.
doc block also has information on setting the port to connect to.
Corrected Html::tableHeaders();
Closing Ticket #98 and Ticket #26
[1190]
Author: phpnut
Date: 3:25:00 AM, Monday, October 24, 2005
Message:
Fix for Ticket #36
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1193 3807eeeb-6ff5-0310-8944-8be069107fe0
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
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
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
I am not finished with copying methods out of template.php, but it will come - also data validation would not be a problem helpers inclusion happens in the Template::_render().
Also, there was a bug with error functions (as Controller::missingView) - on linux, calling $this->render('../errors/missingController'); rsulted in an error - beacouse apparently is_file() cannot work with '..'. I added a simple fix in Template::_getViewFn.
I've also made some cleanups. Will continue to work tonight.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@264 3807eeeb-6ff5-0310-8944-8be069107fe0
The point is to provide custom error messages for Cake. As you will see, the quality of documentation is astounding.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@255 3807eeeb-6ff5-0310-8944-8be069107fe0
- Dispatcher sets a Controller::here variable with the real URL used to access the page, so that tag generators can that use an url (linkTo and formTag for example) use the real url, not guess it from the controller and action names which often fails
- Log class works more reliably and a LogError() shortcut function was added
- Nstring class added, to store string-related functions (there are just four yet, including a random password generator and an string-to-array splitter
- SimpleTest library (with Rephlux) included in /vendors; I've tweaked SimpleScorer::inCli() function, because it didn't work on my setup, it should work everywhere now (it checks for empty REQUEST_METHOD, which should only be empty in CLI)
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@248 3807eeeb-6ff5-0310-8944-8be069107fe0
Larry, I've merged in _some_ of your changes, I'll merge in the scaffolding and joins code when you tell me it's ready. But I don't want to break how the Controller class works, can't we really do without the constructClasses() method call? Which reminds me, with your joins code, will we be able to use constructs like $user->post->findAll() and $user->post->save()?
Also, what are your changes to the DBO_MySQL class? I mean the mysqlResultSet(), and fetchResult() methods. I didn't see any MySQL-specific code inside them, perhaps they belong to the DBO class itself?
- I've changed the headers on user-editable files in /app and /config. I hope they will constitute a compromise between readability and legality. I've left file Id, copyright, and licence notices.
- /libs/basic.php::uses() function logs included files in global $loaded. Please, consider it a note to myself. Also, I've moved the NeatArray class out of the /libs/basics.php (into /libs/neat_array.php).
- Some cleanups in the Controller and Dispatcher classes.
- DBO::Prepare() accepts strings _and_ arrays now. It's a step towards a unified params theory.
- I think I've added some comments to DBO sub-classes, but it might have been Olle.
- A fix in Model class (findAll didn't work properly)
- Object's constructor sets $this->db to &DBO, which means all Object-descendand classes have default access to the database if it's connected. We need to clean up the code accordingly (some classes set their own $this->db references).
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@236 3807eeeb-6ff5-0310-8944-8be069107fe0
- default set of routes no longer routes all unknown requests to Pages controller (/pages/* is used now for that)
- Pages::index is used as default home, I'll try to make it read all the controllers and methods and present them as a website menu
- added tag definitions for cssTag and charsetTag
- extended NeatArray class with some more methods
- DbFactory auto-loads database configuration
- missing error message added (for no action set)
- /logs directory added (at least, I hope)
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@165 3807eeeb-6ff5-0310-8944-8be069107fe0
- Helpers for controllers -- each controller has it's own helper in the /app/helpers directory
- /logs and /modules directories
- The application runs just fine without /config/database.php if controllers don't ask for db access
- Changed the name of /public/dispatch.php to /public/index.php, it's nicer and more standard, won't you agree? Kamil's fix for no-mod_rewrite needs to be re-implemented
- Cleanups, fixes, and even one or two comments ;)
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@158 3807eeeb-6ff5-0310-8944-8be069107fe0
I've removed the author/licence information from some files -- such as app/app_controller.php and config/database.php -- as they are not our code and those files need to remain as clean as possible for people not to get lost in them.
I've run the tests on this one, but the tests are not as extensive as they should be. If you want to get the test controller etc. check out the version in my sandbox. But we'll probably be moving to SimpleTest soon anyway.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@114 3807eeeb-6ff5-0310-8944-8be069107fe0