cakephp2-php8/cake/libs/error.php

363 lines
10 KiB
PHP
Raw Normal View History

Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
<?php
/* SVN FILE: $Id$ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
* @package cake
* @subpackage cake.cake.libs
* @since CakePHP v 0.10.5.1732
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
/**
* Short description for file.
*
* Long description for file
*
* @package cake
* @subpackage cake.cake.libs
* @since CakePHP v 0.10.5.1732
*/
class ErrorHandler extends Object
{
var $controller = null;
/**
* Class constructor.
*/
function __construct($method, $messages)
{
parent::__construct();
static $__previousError = null;
if ($__previousError != array($method, $messages))
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
{
if(!class_exists('AppController'))
{
loadController(null);
}
$this->controller =& new AppController();
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
}
else
{
$this->controller =& new Controller();
}
$__previousError = array($method, $messages);
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
if(DEBUG > 0 || $method == 'error')
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
{
call_user_func_array(array(&$this, $method), $messages);
}
else
{
call_user_func_array(array(&$this, 'error404'), $messages);
}
}
/**
* Displays an error page (e.g. 404 Not found).
*
* @param int $code Error code (e.g. 404)
* @param string $name Name of the error message (e.g. Not found)
* @param string $message
* @return unknown
*/
function error ($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $this->_webroot();
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('code'=>$code,
'name'=>$name,
'message'=>$message,
'title' => $code.' '. $name));
$this->controller->render('error404');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Convenience method to display a 404 page.
*
* @param string $url URL that spawned this message, to be included in the output.
* @param string $message Message text for the 404 page.
*/
function error404 ($params)
{
extract($params);
if(!isset($url))
{
$url = $action;
}
if(!isset($message))
{
$message = '';
}
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
if(!isset($base))
{
$base = '';
}
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
header("HTTP/1.0 404 Not Found");
$this->error(
array('code' => '404',
'name' => 'Not found',
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
'message' => sprintf(__("The requested address %s was not found on this server.", true), $url, $message),
'base' => $base
)
);
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Missing Controller web page.
*
*/
function missingController($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $webroot;
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('controller' => $className,
'title' => 'Missing Controller'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingController');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Missing Action web page.
*
*/
function missingAction($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $webroot;
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('controller' => $className,
'action' => $action,
'title' => 'Missing Method in Controller'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingAction');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Private Action web page.
*
*/
function privateAction($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $webroot;
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('controller' => $className,
'action' => $action,
'title' => 'Trying to access private method in class'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('privateAction');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Missing Table web page.
*
*/
function missingTable($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('model' => $className,
'table' => $table,
'title' => 'Missing Database Table'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingTable');
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
exit();
}
/**
* Renders the Missing Database web page.
*
*/
function missingDatabase($params = array())
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('title' => 'Scaffold Missing Database Connection'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingScaffolddb');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Missing View web page.
*
*/
function missingView($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->set(array('controller' => $className,
'action' => $action,
'file' => $file,
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
'title' => 'Missing View'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingView');
exit();
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
}
/**
* Renders the Missing Layout web page.
*
*/
function missingLayout($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
$this->controller->layout = 'default';
$this->controller->set(array('file' => $file,
'title' => 'Missing Layout'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingLayout');
exit();
}
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
/**
* Renders the Missing Table web page.
*
*/
function missingConnection($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->viewPath = 'errors';
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('model' => $className,
'title' => 'Missing Database Connection'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingConnection');
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
exit();
}
/**
* Renders the Missing Helper file web page.
*
*/
function missingHelperFile($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('helperClass' => Inflector::camelize($helper) . "Helper",
'file' => $file,
'title' => 'Missing Helper File'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingHelperFile');
exit();
}
/**
* Renders the Missing Helper class web page.
*
*/
function missingHelperClass($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('helperClass' => Inflector::camelize($helper) . "Helper",
'file' => $file,
'title' => 'Missing Helper Class'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingHelperClass');
exit();
}
/**
* Renders the Missing Component file web page.
*
*/
function missingComponentFile($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('controller' => $className,
'component' => $component,
'file' => $file,
'title' => 'Missing Component File'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingComponentFile');
exit();
}
/**
* Renders the Missing Component class web page.
*
*/
function missingComponentClass($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('controller' => $className,
'component' => $component,
'file' => $file,
'title' => 'Missing Component Class'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingComponentClass');
exit();
}
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
/**
* Renders the Missing Model class web page.
*
*/
function missingModel($params)
{
extract($params);
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->base = $base;
$this->controller->viewPath = 'errors';
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
$this->controller->webroot = $this->_webroot();
$this->controller->set(array('model' => $className,
'title' => 'Missing Model'));
Merging fixes into trunk. Revision: [2522] renamed Bake class file Revision: [2521] removing old bake scripts Revision: [2520] Adding new Bake script Revision: [2519] Adding fix for Ticket #622 Revision: [2518] Adding fix for Ticket #535 Revision: [2517] Adding fix for Ticket #648, associated records are now post-processed by afterFind() method in associated model Revision: [2516] Adding fix for Ticket #618 Revision: [2515] More error page fixes Revision: [2514] Adding fix for Ticket #690 Revision: [2513] Removing empty method Revision: [2512] Adding fix for Ticket #675 Revision: [2511] More fixes for Ticket #670 Revision: [2510] Adding fix for Ticket #670, and removing pointless part of Helper::output(), since print() *always* returns 1. Revision: [2509] Adding fixes for Tickets #677 and #681 Revision: [2508] Added patch from Ticket #632 Revision: [2502] Adding fix to prevent model ID from getting overwritten when saving HABTM data [TEST ME] - thanks sdevore Revision: [2501] Rewriting foreach loops in queryAssociation() Revision: [2493] Adding fix for Ticket #673 Revision: [2492] Adding reconnect() method, to reconnect to database with different settings Revision: [2491] Adding Microsoft SQL Server driver [EXPERIMENTAL] Revision: [2490] Fixing a bug that occurs when connecting to two different databases on the same server, and enabling cross-database model associations Revision: [2488] Adding fix for Ticket #651 Revision: [2487] Adding fix for Ticket #665 Revision: [2486] Adding fix for Ticket #655 Revision: [2485] Forcing DboMysql to validate disconnect, and adding fix for Ticket #663 git-svn-id: https://svn.cakephp.org/repo/trunk/cake@2528 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-04-24 16:24:57 +00:00
$this->controller->render('missingModel');
Merging fixes and enhancements into trunk 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
2006-02-01 13:26:23 +00:00
exit();
}
/**
* Enter description here...
*
* @return unknown
*/
Merging changes to trunk: 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
2006-01-12 02:10:47 +00:00
function _webroot()
{
$dispatcher =& new Dispatcher();
$dispatcher->baseUrl();
return $dispatcher->webroot;
}
}
?>