mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
CakePHP 2 fork that supports PHP 8
301731fb1a
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 |
||
---|---|---|
app | ||
config | ||
docs | ||
libs | ||
logs | ||
modules | ||
public | ||
scripts | ||
tests | ||
vendors | ||
.htaccess | ||
index.php |
/////////////////////////////////////////////////////////////////////////////////////////////////////////// // +---------------------------------------------------------------------------------------------------+ // // + $Id$ // + Last Modified: $Date$ // + Modified By: $LastChangedBy$ // +---------------------------------------------------------------------------------------------------+ // /////////////////////////////////////////////////////////////////////////////////////////////////////////// This README will be updated for now visit: https://developers.nextco.com/cake/ OR: http://sputnik.pl/cake/