Ask a cakephp for a path to the print problem
It's mine
The routes file has the following configuration
Router::connect ('/tf/* ', Array (' controller ' = ' tf '));
I visit:
Http://localhost/demo
Time to display normally
Access
Http://localhost/tf/load?userid=1
A blank page appears
Open Source Code
Only
Such a paragraph ~
and tf_controller.php
This PHP is present ~
The code inside should be no problem.
Load is a
function Load ($userid, $centerId = null, $ERRORMSG = NULL)
Such a definition
The Beforefilter () method has been commented out and is a blank page even if uncomment
Beforefilter inside the content is echo " ";
And no matter what I visit
http://localhost/tf/*
As long as it's under TF, it's all blank pages.
Excuse me is not my configuration problem
Or the configuration file is conflicting
or some other reason.
Please tell me the solution ... Thank you
------Solution--------------------
Router::connect ('/tf/* ', Array (' controller ' = ' tf '));
How do you know what you're going to do if you don't fill in the action?
------Solution--------------------
$Route->connect ('/tf/', Array (' controller ' = ' posts ', ' action ' = ' index '));
------Solution--------------------
I am successful in this machine test, you also try.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.