Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7855119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:17:13+00:00 2026-06-02T20:17:13+00:00

I use YII framework and I needed to echo out query that is generated

  • 0

I use YII framework and I needed to echo out query that is generated with the method insert($attributes=null) in CActiveModel class which, as it’s told in documentation, is in framework/db/ar/CActiveRecord.php.

Well, my task was not hard, so I opened this file and edited this method, but nothing happened. After a little head-ache I’ve found out that my application was importing this class from the folder where I downloaded YII first.

What could be the reason of this behavior? I’ve solved my problem by changing path but I wonder, is it good solution?

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:17:16+00:00Added an answer on June 2, 2026 at 8:17 pm

    It’s on index.php where you tell your application where to find the classes of the framework, so that’s the line you should edit.

    // change the following paths if necessary
    $yii=dirname(__FILE__).'/../yii/framework/yii.php';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Use case: Wanna insert custom annotation to fields in java class generated by JAXB
With Yii php framework, I use inheritance. In my AbstractModel, I have this method:
I'm building a web application and eventually would want to use Yii framework. But
I use subversion to manage my yii website (php framework) and have separate backend
I'm use Yii PHP framework but i cant write this code, what's the true
I've noticed in my development with the Yii framework that there's a function for
I wish to use a PHP Framework such as Yii, however, it seems to
I'm use Yii Framework. I have a named anchor <a name=projet>projet</a> in about.php page.
I am using Yii framework, and make an extensive use of CListViews. However i
I'm prety new to yii framework so i could use some help with something.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.