Revision: [2104]
Correct changes of names in scaffold.
Revision: [2103]
Changed methods to protected methods
Controller::_beforeScaffold($method)
Controller::_scaffoldError($method)
Revision: [2102]
Added 2 methods to Controller class that must be overridden in child classes if you place to use Scaffold in production applications.
This will allow you to perform checks before displaying the forms, and also before performing any Scaffold methods.
Each of these methods are passed the name of the method they represent in Scaffold.
Controller::beforeScaffold($method)
Controller::scaffoldError($method)
These 3 name are passed to the methods above, but are not view related
'create' when creating a new record in the database
'update' when updating a record in the database.
'delete' name says what it does
These are view related names passed to the methods above
'index' the list of all records shown in scaffold.
'edit' the edit record form.
'show' when displaying a specific record.
'add' add record form.
Scaffold can now be used to generate forms and customize these on a per app or per controller basis.
Scaffold will first look:
Example: app/views/posts/
Then: app/views/scaffold/
There are also specific naming used for these views each related to a scaffold method.
scaffold.list.thtml
scaffold.edit.thtml
scaffold.new.thtml
scaffold.show.thtml
Added scaffold_error.thtml that is used if a controller does not implement Controller::scaffoldError() when using scaffold and Controller::beforeScaffold() is implemented and returns false
Revision: [2101]
Corrected some bugs found in View that would cause errors when using scaffold.
Revision: [2100]
Added fix for Ticket #427
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2105 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2092]
Added fix for = not being added the conditions.
Corrected paths for test suite.
Test are now located in app/test/
Revision: [2090]
Added fix to DboSource::conditions() that will check for the escaped single quotes.
Before this fix any matching single quote pair could cause failure
Revision: [2089]
Fixed duplicate WHERE being added to the sql string
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2093 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2087]
Removed array setting that is not needed
Revision: [2086]
Added unbindModel to turn off associations on the fly.
These are reset after a call to a find<*> method.
Added one more level key to isset check in DboSource::conditions.
Previous check would always return true.
Revision: [2085]
Refactored DboSource::fields()
Revision: [2084]
Added fix for Ticket #419
Revision: [2083]
Refactoring DboSource::conditions.
Revision: [2082]
Deleted a few methods by accident adding them back
Revision: [2081]
Added fix for Ticket #420
Added $startQuote and $endQuote vars to the MySql class, these must be added to each Dbo<database> if the database uses
a quote char around fields. Example MySql uses this ` MSSQL uses [ and ].
Revision: [2080]
Added delete() alias for del() in Model and SessionComponent classes.
This is suggestion from Ticket #421
Revision: [2079]
Added fix for Ticket #106.
This was added before but lost in a merge.
This fix allows adding a custom tags.ini.php file to app/config.
This file will be merged with the core, overwriting any keys that match, and adding those that do not.
Revision: [2078]
Refactoring DboSource::conditions().
This method will now return the Model.field properly when passed a string.
You can also set you own clause.
WHERE, GROUP BY, HAVING, and ORDER BY.
If one of these in not the first characters in the string, WHERE will be added by deafult.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2088 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2076]
Correcting a few more bugs found in the CakeSession class
Revision: [2075]
Adding fix fro Ticket #417
Revision: [2074]
Corrected name of method
Revision: [2073]
Added patch submitted by lemp on IRC channel
Revision: [2072]
Added fix for Ticket #418.
Bug fix added for session_destroy();
Revision: [2071]
Updated DboSource::conditions() with regex discussed in IRC channel.
Added --return delimiter to allow returning the value of an array key without
the string being wrapped by $this->Model->value();
It is used like:
$this->Model->find(array('Model.field' => '--return STRING'))
Revision: [2070]
Changed the DboSource::condition().
New syntax has been added.
By default all conditions are joined using AND.
array('Model.field' => ' = value','Model.field' => ' > value');
`Model`.`field` = 'value' AND `Model`.`field` = 'value'
To change this you would add a space CONDITIONAL space to the array key
Incorrect: array('Model.field' => ' = value','OR Model.field' => ' > value');
Correct: array('Model.field' => ' = value',' OR Model.field' => ' > value');
would produce
`Model`.`field` = 'value' OR `Model`.`field` = 'value'
Change where also made the the value of the key space OPERATION space is now needed.
Incorrect: array('Model.field' => '= value';
Correct: array('Model.field' => ' = value';
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2077 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2068]
Fixed typo in method names.
Updated DboSource::conditions().
Added a delimiter --return that would be used in a complex condition string.
NOTE: You limit your self to database specific code using this. Cake will not add the name() wrap around any of the
Model.field.
$this->Model->find('--return MY CUSTOM CONDITION STRING);
Added ability to use a array key that will not have $this->value() called to wrap the $value.
It is used like this (The word status will not have the value() called)
Also note you can add Conditional selections used in the where clause:
= Equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
<> Not equal to
LIKE can also use % with this
$this->Model->find(array('Model.field' => '= value',
'Model.field' => '> value',
'Model.field' => '< value',
'Model.field' => '>= value',
'Model.field' => '<= value',
'Model.field' => '<> value',
'Model.field' => 'LIKE value',
'Model.field' => 'LIKE %value%',
'status',
'any key withou a => "value" wil not be wrapped'));
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2069 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2066]
Change the bindTo<ModelName>() to bindModel()
This works similar to before but has sytax as follows.
$this->Book->bindModel(array('belongsTo' =>
array('Author' =>
array('conditions' => 'these conditions',
'order' => 'this order by DESC',
'foreignKey' => 'foreign key',))));
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2067 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2064]
Added doc block for Model::__resetAssocitions();
Removed unused params in Model::__constructLinkedModel();
Revision: [2063]
Refactored bindTo<ModelName> to allow method to be used to change associations settings.
This method will change the association on the fly, and reset them back once the query has completed.
This will allow something like this simple example.
$this->Book->bindToAuthor(array('belongsTo' => array('conditions' => array('Author.active'=>'1'))));
$this->set('changed', $this->Book->findAll());
$this->set('original', $this->Book->findAll());
$changed would have the associated for Books/Authors where Author.active = 1.
$original would have the associations for Books that where set in the Book class association vars.
Revision: [2062]
Added magic method to allow late binding of association model.
Revision: [2058]
Adding fix for error in acl.php reported in google group
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2065 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2056]
Corrected typo in a variable name
Revision: [2055]
Added regex to remove ORDER BY if it is passed in the string
Revision: [2054]
A little refactoring to changes made in [2053]
Revision: [2053]
Adding fix for Ticket #413
Revision: [2052]
Reverting changes made in [2050]
Revision: [2051]
Fixing Ticket #410
Revision: [2050]
Fixing Ticket #409, and adding additional column functions
Revision: [2049]
Removing old DBO class. Fixes Ticket #408
Updated all Dbo* database classes to extent DboSource.
Corrected formatting of code in CakeSession
Revision: [2048]
Adding fix for Ticket #411.
Updating variables and method to use coding standards.
Updated CakeSession doc blocks
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2057 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2035]
Cleaning up code formating
Revision: [2034]
Added fix for parse error when using PHP 4
Revision: [2033]
Fixed dispatcher to set the proper paths when app/webroot is moved outside of a normal cake install path
and placed deeper in the web path of the DOCUMNET ROOT
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2036 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [2031]
Added ability to turn off the cascading deletes when using Model::del($id, false);
Revision: [2030]
Corrected association cascading for hasOne and hasMany.
Revision: [2029]
Implemented cascading delete for hasMany, and hasOne associations.
Revision: [2028]
Renamed Model::__deleteJoins() to Model::__deleteMulti();
Revision: [2027]
Implemented Model::__deleteJoins() to delete HABTM associations.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2032 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: [1936]
Adding fix for Ticket #364
Revision: [1935]
Adding script.ac slider control and fixing Ticket #188 for real this time
Revision: [1934] [1933] [1932] [1931] [1930]
Docstrings, and some inconsistency fixed. Wrong parameters in one case. Moved them into the signature. Also some code standards fiddling.
Some outdated parameters. Added a todo in docstrings.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1937 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1927]
A little refactoring on the findBy<field> and findAllBy<field>.
These should both work on PHP 4 now without an issue.
Change the condition to be built as an array in DboMysql::query().
Still want to refactor the DboSource::conditions() which is note around line 1058 TODO:
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1928 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1925]
Adding fix for association conditions when set in the association array
Revision: [1924]
Adding fixes for $recursive
Revision: [1923]
Adding fix from Ticket #362
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1926 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: [1901]
More work on deeper associations.
Seems to work now, but going to test more.
Revision: [1900]
Getting closer with deeper joins.
Revision: [1899]
Committing changes made to recursive associations.
Revision: [1898]
Adding fixes for Tickets #188 and #195
Revision: [1896]
Adding controller callbacks
Revision: [1895]
A little more refactoring for Controller::redirect()
Revision: [1894]
Removed :// from Controller::redirect()
Revision: [1893]
Adding fix for Ticket #308.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1902 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1891]
Added patch from Ticket #278
Revision: [1890]
Adding patch from Ticket #227
Revision: [1889]
Adding fix from Changeset [1631].
This fixes Ticket #319
Revision: [1888]
Added fix for Ticket #315
Revision: [1887]
Adding patch from Ticket #312
Revision: [1886]
Adding fix that was committed in [1304] back.
Closing Ticket #77 again
Revision: [1885]
Fix added for Ticket #306
Added patch from Ticket #318
Added patch from Ticket #322
Revision: [1884]
Adding fix to Ticket #332
Revision: [1883]
Adding patch from Ticket #330
Revision: [1882]
Adding fix for Ticket #170 back to HtmlHelper::selectTag().
Was lost in a previous merge
Revision: [1881]
Adding fix for Ticket #336
Revision: [1880]
Adding fix from Ticket #307
Revision: [1879]
Plugins will use their own helpers and components if present
Revision: [1878]
Basic implementation of plugins within app/plugins working.
Revision: [1877]
Starting plugin code for multiple apps within one app.
Revision: [1876]
Added Ticket #345.
Revision: [1875]
Added check to AcoAction class that would not attempt to load AppModel Class if it is already defined in memory
Added fixes for Ticket #317, Ticket #333, Ticket #343, Ticket #337
Revision: [1874]
Adding fix for Ticket #340
Revision: [1873]
Added themeWeb var to helpers that will be used if a theme class overrides the view class
Revision: [1872]
Adding $format to timeAgo and relativeTime, for gwoo
Revision: [1871]
Docstrings changes. One char at a time we map out Cake.
Revision: [1870]
Docstrings for Session, and corrections to tabbing on datasource.
Revision: [1869]
Docstrings for the core database classes.
Revision: [1868]
Adding patch for Ticket #131
Revision: [1867]
Allowing ajax link titles to not be escaped
Revision: [1866]
Changed error class so calls to ErrorHandler::error() in production setting will work.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1892 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1864]
Adding fix to DataSource::__cacheDescription().
The call to cache() was always passing $data as a serialized value,
this would result in a failure in the cache function check $data == null
since $data was not null but had a value of "N;".
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1865 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1855]
Forgot to merge changes between the PHP 5 and PHP 4 model classes
Revision: [1854]
Added fix to Model class so that setting var $useTable = false; will not try to create a datasource connection.
Added fix to basics.php in the file_put_contents function that would give a Warning :failed to open stream: File exists.
This fix allows the file to be wrote to if it already exists.
Added fix for undefined notice in DboSource::generateAssociationQuery();
Added Model::$keyToTable to map foreign keys to thier proper tables so scaffold could work with them properly.
Fixed Controller::__generateAssociation() to use Model::$keyToTable.
Fixed layout issue with show view in scaffold.
Revision: [1853]
Added DataSource::buildSchemaQuery() which must be implemented in the child classes.
This will be used to import a table schema.
Added DboMysql::buildSchemaQuery()
Added fix for Ticket #304 by reverting change made in [1825].
Reopened Ticket #286
Added fix for Ticket #310
Revision: [1852]
Added fix for PHP Fatal error: Call to a member function on a non-object in... Controller::generateFieldNames() in PHP 4
when using a HABTM association.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1856 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1850]
Added fix for duplicate alias name being added to fields passed the the Model methods,
when a field already was aliased Example: Post.id will no longer return Post.Post.id.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1851 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1848]
Fixing references.
Revision: [1847]
Adding fix for errors when using scaffold.
On some version of PHP 4 some people where getting Call to member function on non-object...
in Controller::generateFieldNames() at line 494.
Fixed call to get_class_methods that was using the name of the class and not the instance of the class,
this would cause a Wrong datatype for second argument...
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1849 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1845]
Adding changes to DboSource::generateAssociationQuery and DboSource::conditions() noted in Ticket #301.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1846 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1843]
Added param $allowed to Sanitize::paranoid() this array will allow
passing characters that you do not want removed in the string.
Modified Sanitize::paranoid() to check an array.
Modified Model::findNeighbours() setting param $conditions to null by default.
Added fix for Ticket #294
Added fix to scripts/acl.php
changed DboSource::fields() to use the count() one time
instead of using it in the for loop also
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1844 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: [1834]
Few more changes to recursive associations.
These changes and the others that are being made
will allow deeper levels of associations. Currently
this is only 1 level deep and can not go deeper until completed.
Revision: [1833]
Making changes to recursive associations
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1835 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: [1823]
Adding one last fix to fields pulled in a query
Revision: [1822]
Copying changes made in model_php4.php to model_php5.php
Revision: [1821]
Fixed problem when passing fields to get from a table.
Working on deeper levels of associations.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1824 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1819]
Added fix for undefined index in Form::generateFields()
Adding missing doc blocks.
Adding fix for Ticket #290.
Added fix to allow setting fields for models.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1820 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1817]
Adding fix from Ticket #287
Removing a change to DboSource::generateAssociationQuery()
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1818 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: [1809]
Fixed self join code, may refactor after looking at it more. Currently it is working as expected.
Fixed errors in scaffold view caused by the changes I made.
Removed adding Child_ prefix to self joined associations.
Revision: [1808]
Adding changes I started on the self join code.
Revision: [1807]
Adding patch from Ticket #283.
Changed doc comment in SessionComponent class.
Added fix for Ticket #285
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1810 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1805]
Adding fix for Ticket #238
Revision: [1804]
Fixing associations queries.
Adding fix from Ticket #275
Revision: [1803]
Removing the auto generating of a new session id when CAKE_SECURITY set to high.
Adding renew() to the session component, this can be used to regenerate a new session id.
Revision: [1802]
Adding fix for Ticket #280.
Need to decide if we should set the 2 vars mentioned in the ticket automatically,
I changed the 2 method to call the dbo.
Revision: [1801]
Fixing errors in AclCLI class
Revision: [1800]
Made change to fields name setting, * will no longer be used, query will be built using the tables meta data
Revision: [1799]
Revision: [1798]
Adding fix for Ticket #269
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1806 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: [1786]
Little more cleaning up of the code
Revision: [1785]
Deleting old dbo files
Revision: [1784]
Adding [1780] fix lost in [1782]
Revision: [1783]
Added patch from Ticket #267.
Removed all debug output in the error views, this is moved to one error element that is loaded in View::renderLayout() if DEBUG > 2.
Added fix to Ajax::dropRemote().
Revision: [1782]
Added controller dump view when DEBUG is set greater than 2
Revision: [1781]
Adding elements directory to the core
Revision: [1780]
Adding this to close Ticket #265
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1787 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1778]
Fixing a few more bugs in the model code
Revision: [1777]
Fixes to Model::save() that allows saving a new record when primary key is not auto generated in database.
Added the DboSource::hasAny() back to the code.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1779 3807eeeb-6ff5-0310-8944-8be069107fe0
Revision: [1773]
adding fixes to PHP 5 model class
Revision: [1772]
Fixed errors in PHP model.
Fixed parse error in CakeSession Class.
Added stripslashes_deep function to basics.php
Fixed errors in Dispatcher class.
Revision: [1771]
reverting changes in last commit
Revision: [1770]
Fixing save() in model
Revision: [1769]
correcting more errors that we are finding
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1774 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
Revision: [1696]
Adding fix to allow NULL values to be passed as a string or NULL setting the SQL to NULL or "NULL".
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1697 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