cakephp2-php8/libs
phpnut 301731fb1a Corrected the use of View class instance.
It looks like the way you where coding it was to be used as a Singleton.
In Controller::render() I am setting all View() attributed by pass reference.
I do not think it will effect other parts of the system.

You can see why I did this by uncommenting the print_r function in View::render().
Reload url in browser.
Then in Controller::render() remove the & from:
$view->autoRender =& $this->autoRender;
This is the only one that seems to cause array to print.

This may also caused in the Router::connect().
Look at this if you get time.
I noticed that each setting in the conf/routes.php file calls outer::connect();
Tee profiler show this happening 6 times on current install from trunk
Router::parse() is called 2 times.


We really need to get some good unit test in place.

Also speeded things up a little.

Profiler test:

Before changes on default install from trunk

Between:
Total Request Time: 13013.4 Milliseconds
Total Request Time: 13065.84 Milliseconds
28 files

After changes
Between:
Total Request Time: 10230.99 Milliseconds
Total Request Time: 10511.59 Milliseconds
27 files



git-svn-id: https://svn.cakephp.org/repo/trunk/cake@304 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-07-03 07:07:47 +00:00
..
dbo I'm sorry, I've reversed two changes. I've changed the error views names to underscored, and I've changed the default DEBUG to 1. 2005-06-22 23:16:26 +00:00
helpers Tests run properly now - need to add more of them into /libs/helpers/html.php! 2005-06-22 01:20:19 +00:00
bake.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
basics.php I do not want any uppercase letters in filenames. I want CamelCase actions that link to under_scored files. 2005-06-23 08:32:04 +00:00
cache.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
controller.php Corrected the use of View class instance. 2005-07-03 07:07:47 +00:00
dbo.php DboFactory comes back, no more global variables. To get actual instance of db, call DboFactory::getInstance(). You can also change the running object with DboFactory::setConfig('configname'). 2005-06-23 20:41:10 +00:00
dbo_factory.php DboFactory comes back, no more global variables. To get actual instance of db, call DboFactory::getInstance(). You can also change the running object with DboFactory::setConfig('configname'). 2005-06-23 20:41:10 +00:00
dispatcher.php Corrected the use of View class instance. 2005-07-03 07:07:47 +00:00
error_messages.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
file.php - added the csspp library that automatically reduces the size of CSS files; it is activated by prefixing an CSS file URL with /ccss/ instead of /css/ and there's a switch in the /config/core.php to activate it in Controller::cssTag() 2005-06-19 03:35:19 +00:00
flay.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
folder.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
inflector.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
legacy.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
log.php - minor fix to CCSS 2005-06-19 03:55:52 +00:00
model.php DboFactory comes back, no more global variables. To get actual instance of db, call DboFactory::getInstance(). You can also change the running object with DboFactory::setConfig('configname'). 2005-06-23 20:41:10 +00:00
narray.php - changed NeatArray to Narray, it's shorter, easier to use, 2005-06-20 23:08:59 +00:00
nstring.php - merged in Brego's SimpleTest implementation, fixed some of the tests (the Folder test fails to delete one of the test directories on my system, so it's not perfectly clean yet) 2005-06-18 23:26:35 +00:00
object.php DboFactory comes back, no more global variables. To get actual instance of db, call DboFactory::getInstance(). You can also change the running object with DboFactory::setConfig('configname'). 2005-06-23 20:41:10 +00:00
router.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
template.php Merging changes from Kamil's sandbox. 2005-07-02 22:49:04 +00:00
time.php - changed NeatArray to Narray, it's shorter, easier to use, 2005-06-20 23:08:59 +00:00
validators.php setting proper mime-type on files in the trunk 2005-06-30 02:09:47 +00:00
view.php Corrected the use of View class instance. 2005-07-03 07:07:47 +00:00