Codeigniter2.2.0-in the controller to call the load failure error, thinkphp call Controller _php Tutorial

Source: Internet
Author: User
Tags mssqlserver php error

Codeigniter2.2.0-in the controller to call the load failure error, thinkphp call Controller


The error is as follows:

Helloa PHP Error was encounteredSeverity:NoticeMessage:Undefined property:test:: $loadFilename: controllers/ Test.phpline Number:9fatal Error:call to a member function view () on a non-object in D:\xampp\htdocs\citest\application\ Controllers\test.php on line 9

The code is as follows:

 
  Here is the cause of the error echo ' Hello ';} Public Function Index () {$this->load->view (' Test/index ');} Public function is about () {$this->load->view (' test/about ');} protected function test1 () {echo ' Test protected function ';} Private Function Hello () {echo ' Hello,ci ';} Public Function Test2 () {$this->test1 (); Echo '
'; $this->hello ();}}

Did you see what was wrong? Because I rewrite the constructor of the test controller, which is the same as the class name public method and the __construct method is the same function, rewrite the Ci_controller in the parent class after the instantiation of what is gone, must be instantiated by itself.

In addition to removing the method with the same name as the class, the method is as follows:

Public Function test () {echo ' Hello ';p arent::__construct ();} Public Function Index () {$this->load->view (' Test/index ');}

That's fine.

After a lapse of three years, re-use CodeIgniter, forget a lot of things ...


Error "Service controller operation failed for MSSQLSERVER service: 1726 Remote procedure call failed" When installing SQL2000, how to resolve?

MSSQLServer service cannot start a failure case

Failure phenomena
Starting MSSQLSERVER with SQL Server Service Manager is not responding and booting MSDTC is not a problem. In Control Panel, use the <服务> "Service >" started when prompted "unable to start the MSSQLServer service. Error 2140: A Windows NT internal error occurred. "

Reason
was informed by the operator that in Enterprise Manager, there was a startup parameters in the SERVER's properties that parameter was removed, causing SQL SERVER to not Start

Workaround
In MS-DOS, go to C:\Mssql7\Binn, execute

sqlservr-d c:\mssql7\data\master.mdf-e C:\Mssql7 \log\errorlog-l C:\mssql7\data\mastlog.ldf

Approximately one minute after the prompt message appears using ' Xpstar.dll ' version ' 1998.11.13 ' to execute Extended stored procedure ' sp_msgetversion ', which means that it has started normally, you cannot turn off the MS-DOS window, open Enterprise Manager, open the Server Properties window of startup parameters, adding parameters to the Startup Parameters window:

-dc:\mssql7\data\master.mdf
-ec:\mssql7\log\errorlog
-L C:\mssql7\data\mastlog.ldf

Then shut down the MS-DOS window and start the service with SQL Server Service Manager.

above is fixed on SQL7, for SQL2000, the symptom and operation method is basically the same, the difference is in MS-DOS mode of the message is not the same, there is the path of the file is changed to C:\Program Files\Microsoft SQL Server\MSSQL, the rest is the same.
 
/Services >

How the controller of the MVC architecture in PHP obtains the results of the underlying return and calls the error directly

Oh your jump is executed inside the class, outside the calling method will jump inside. If you want to customize, you change the way the class is in the following position.
/************** can only jump in here ***************************/
Header ("Location:.. /view/admin_home.php "); This position is not changed to return True

Header ("Location:.. /view/user_login.php?loginproving=passworderror "); This position is not changed to return false;

Above the place submitted here
/************* want to handle jump ***************************/here
$LoginProving-Usernameproving ($userName, $passWord); Instead of $result = $LoginProving, usernameproving ($userName, $passWord);
This allows you to determine if the login succeeded if ($result) {Successful jump link}else{error jump link}

http://www.bkjia.com/PHPjc/882091.html www.bkjia.com true http://www.bkjia.com/PHPjc/882091.html techarticle codeigniter2.2.0-in the controller call load failure error, thinkphp call controller error is as follows: Helloa PHP error was encounteredseverity:noticemessage: Undefined Propert ...

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.