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

  • Home
  • SEARCH
  • 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 755343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:07:09+00:00 2026-05-14T15:07:09+00:00

I was just curious if Yii is supposed to be compiled into PHP or

  • 0

I was just curious if Yii is supposed to be compiled into PHP or not. Is it possible to use Yii just by copying the Framework to a folder on the server and then including something (something as in one of the yii files- I am not sure how it works) in the scripts I wish to use the framework for?

(Noob when it comes to frameworks and usage)

Thanks,
Josh

  • 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-05-14T15:07:09+00:00Added an answer on May 14, 2026 at 3:07 pm

    I’ll go with the line

    Is it possible to use Yii just by
    copying the Framework to a folder on
    the server and then including
    something

    and answer yes :p Though, you should just follow webapp creation through yiic webapp like
    so:

    1. Download the yii (yii-someversion.tar.gz or what have you) distribution,
    2. extract it somewhere (e.g. /opt/yii in *nix or C:/web/yii in windows.)
    3. Now put that directory in your path ($PATH in *nix, or %PATH% in windows),
    4. go to a shell / command prompt, change the directory to your
      webserver’s document root and do a yiic webapp <app folder name>

    After answering a couple config question, you should have an look at the
    index.php created there, you should have something like:

    <?php
    
    // change the following paths if necessary
    $yii=dirname(__FILE__).'/../yii/framework/yii.php';
    $config=dirname(__FILE__).'/protected/config/main.php';
    
    // remove the following lines when in production mode
    defined('YII_DEBUG') or define('YII_DEBUG',true);
    defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
    
    require_once($yii);
    Yii::createWebApplication($config)->run();
    

    and that’s about it :p

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just curious here: is it possible to invoke a Windows Blue Screen of Death
Just curious. How does actually the function Sleep() work (declared in windows.h)? Maybe not
Just curious (maybe this is an implementation detail so you may not know) but
Just curious to see if there is a lua way to ping a server
Just curious whether it's possible to mirror databases across versions.
Just curious - apart from its ubiquitous use in specifying the presentation of HTML
Just curious...when writing a require/include statement, what do you prefer as better practice? require('filename.php');
Just curious, is it possible to have Model Validation do the following: NewPassword can
Just curious, when I imported data from a spreadsheet with 519 lines into an
Just curious if anyone knows a quick way to use ucwords() on a string

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.