mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-14 13:39:51 +00:00
![]() 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 |
||
---|---|---|
.. | ||
dbo | ||
helpers | ||
bake.php | ||
basics.php | ||
cache.php | ||
controller.php | ||
dbo.php | ||
dbo_factory.php | ||
dispatcher.php | ||
error_messages.php | ||
file.php | ||
flay.php | ||
folder.php | ||
inflector.php | ||
legacy.php | ||
log.php | ||
model.php | ||
narray.php | ||
nstring.php | ||
object.php | ||
router.php | ||
template.php | ||
time.php | ||
validators.php | ||
view.php |