Commit graph

32 commits

Author SHA1 Message Date
phpnut
8a806d7fc5 going thru trunk and cleaning up the file headers so API docs can be created properly
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@309 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-07-04 01:07:14 +00:00
phpnut
55da45ec77 setting proper mime-type on files in the trunk
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@292 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-30 02:09:47 +00:00
brego
ba139f10bb Database should work now. I have introduced some semi-singelton magic in dbo. DboFactory is no longer needed. This is not tested properly, and tests will most likely fail! Follow up soon.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@274 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-23 13:59:02 +00:00
brego
9206b074d3 I do not want any uppercase letters in filenames. I want CamelCase actions that link to under_scored files.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@273 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-23 08:32:04 +00:00
pies
27d16ff9b9 I'm sorry, I've reversed two changes. I've changed the error views names to underscored, and I've changed the default DEBUG to 1.
The first one is for consistency (no UppperCase filenames, please), the second is because while I'm no enemy of application security, the application has to be safe _after_ it's written, not before. And to easily write an application, the developer should have the DEBUG mode set to 1 or 2.

Other than that, I think it's a very good idea to put the tag generators in helpers :)

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@271 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-22 23:16:26 +00:00
brego
0535607f5a Now we use DEBUG=0 as default... Also potential security hole - error pages showing database info - are only show when DEBUG>1.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@270 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-22 18:52:34 +00:00
brego
34a4490f74 Added /public/js/vendors.php which requests files from /vendors/javascript/ through "file" GET variable.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@261 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-21 16:48:06 +00:00
pies
b717167c4f - changed NeatArray to Narray, it's shorter, easier to use,
- Time::daysAsSql returns SQL limits for a set of days, perhaps should be in DBO,
- cleanups

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@259 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-20 23:08:59 +00:00
brego
847d6df3a3 PHP5 bugs:
- "public" cannot be defined as constant (PHP5 keyword)
- Cannot re-assign $this in libs/template.php on line 217...

Other:
- Started on refactoring as described in #27 - but this feels like fooled aproach. We need to modularize HTML and AJAX stuff to be included only on-call.



git-svn-id: https://svn.cakephp.org/repo/trunk/cake@256 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-19 23:30:36 +00:00
pies
a8eed860b2 - added the csspp library that automatically reduces the size of CSS files; it is activated by prefixing an CSS file URL with /ccss/ instead of /css/ and there's a switch in the /config/core.php to activate it in Controller::cssTag()
- added a new class, File, currently only used by the Log class and Compressed CSS (CCSS) caching; aims to support easy reading and writing of files

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@252 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-19 03:35:19 +00:00
pies
da79dff7d7 - merged in Brego's SimpleTest implementation, fixed some of the tests (the Folder test fails to delete one of the test directories on my system, so it's not perfectly clean yet)
- 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
2005-06-18 23:26:35 +00:00
pies
27faaea8ea - Controller::imageTag() uses a path set in /config/paths.php
- new Controller::linkEmail() tag generator, with binary encoding (not UTF-8 compatibile)
- Controller::parseHtmlOptions() accepts a new second parameter -- options to exclude
- fixed DBO::farr() (ticked #23)
- fixed and cleaned up DBO layers NEEDS TESTING!
- fixed Template::renderElement(), it didn't use the controller's view vars
- models are loaded only if a database configuration is present

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@247 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-14 19:57:01 +00:00
pies
f2f3d56e36 Added back the @package and @subpackage headers to /app and /config files.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@239 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-05 23:41:46 +00:00
pies
3f10d747b7 - Cake didn't work without mod_rewrite, fixed (/index.php, /libs/router.php).
- Controller accepts $params as a constructor parameter (for Larry).
- DBO::prepare() returned an array even when a string was passed to it, fixed.
- Flay and Folder tests fixed, DBO_Factory test disabled (no database config by default, so do database access to test).
- 

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@238 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-05 19:42:54 +00:00
pies
443a702376 I've merged in Olle's changes.
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
2005-06-05 11:05:24 +00:00
pies
065131205d Merged in Olle's changes (comments). Olle, can you sync with the trunk? It's up to half an hour ago.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@213 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-02 19:37:06 +00:00
pies
4234bc9488 I've added some fixes and new methods, hope this gets to be in the today's release. If not, at least the fixes should get in as soon as possible.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@192 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-29 19:43:59 +00:00
pies
eda3d2cfee The default home route was correct after all ;)
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@166 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-23 23:20:32 +00:00
pies
1f8dd75a34 - default layout uses the new cssTag and charsetTag
- 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
2005-05-23 23:08:43 +00:00
pies
4a87a75332 - Two standard controllers -- PageController and TestsController
- 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
2005-05-22 23:24:09 +00:00
pies
b5f6dba58e git-svn-id: https://svn.cakephp.org/repo/trunk/cake@148 3807eeeb-6ff5-0310-8944-8be069107fe0 2005-05-21 22:40:51 +00:00
brego
ec0abbaac0 Some docblock formatting changes, and /libs/bake.php - takes time, but domumenting is very educating :)
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@140 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-18 10:11:28 +00:00
brego
ea0191d321 commenting one more file, before going to bed.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@139 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 22:58:16 +00:00
brego
2f71ce4e4a more comments.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@137 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 22:42:43 +00:00
brego
4da3ef5b9b commenting happily...
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@136 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 22:32:06 +00:00
phpnut
ce08562f5d modifying file headers
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@131 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 21:39:28 +00:00
phpnut
a04f96df6b modifying file headers
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@130 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 21:27:56 +00:00
phpnut
cc358c225e fixed auto-props
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@122 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 02:03:09 +00:00
phpnut
f409b10a97 adding docblocks and file header
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@116 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-17 01:31:36 +00:00
pies
a778f3c3c3 Merging my changes into trunk. This should give us a nice clean trunk to continue with. It's strongly recommended that you merge this version with your sandboxes -- I've added all the phpdoc fields and changed a lot.
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
2005-05-16 23:14:37 +00:00
phpnut
bb71238ec1 change license to The MIT License
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@109 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-16 00:52:42 +00:00
phpnut
cd86555549 moving cake to a sub directory
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@106 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-05-15 21:41:38 +00:00