Commit graph

5 commits

Author SHA1 Message Date
brego
975e0b3755 Changed error methods, and a typo in one error file.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@277 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-23 20:45:22 +00:00
phpnut
77d259860c used unset to remove $this->db from the printed object
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@272 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-06-23 00:27:37 +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
38ddea527e Ok, this one is very big. Firstly, I've outsourced (:]) helper methods like linkTo etc into separate files, located in /libs/helpers/*.
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
2005-06-21 23:44:49 +00:00
pies
37e42105c6 I've merged in the changes by scharfie@gmail.com. For more information please see http://www.bluemargin.com/cake_custom_errors.zip. Olle, can you extract some information from the app/views/pages/home.thtml of that file?
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
2005-06-19 06:45:55 +00:00