Yii - could not open input file yiic for Yii 2.0 - php

So I downloaded a yii archive then extracted it into my xampp htdocs folder.
I wanted to create a new app but tutorials show to use yiic when creating new webapps. The problem is no yiic is found, and even in the directory, I do not see any yiic file to execute the program.
Should there be a yiic.bat?
I download Yii version 2.0 for the latest framework.
I also tried creating via Yii version 1.6 and the command worked.
The problem is i cant find yiic on 2.0.

Please run init command after installing YII from composer
sudo php init
It will ask for setting the environment, for beginning select "Development"

Related

Laravel isn't downloading on GIT BASH

I am trying to download laravel using GIT BASH, with the prompt
laravel new laravel
This is what it keeps showing me. And Yes! I have composer and its installed in the same directory I tried to download laravel into.
Check that you have added laravel is added to your path so its accessible from anywhere.
To test it try running the command like
path/to/installation/folder/laravel new laravel
If that works then you need to move the installation folder to /usr/local/bin/laravel so that its globally accessible

Yii : how to install yii-user

I need to install yii-user.
I am currently referring this page: http://www.yiiframework.com/extension/yii-user/.
But I don't understand some parts, like when they "Change your config main" I don't know which file. As well as "Change your config console:". And I don't know where to run this command yiic migrate --migrationPath=user.migrations.
Could anybody help me with detailed installation steps?
Thank you
For installing the extension yii-user, download it and copy it under the protected folder.
Steps to follow :
Generate a new application using the command in your terminal:
sudo ./yiic webapp /var/www/html/yiisite
Download the extension yii-user and copy it to protected folder of
the generated site.
Make the changes in the yiisite/protected/config/main.php
Replace yiisite with your generated application directory name.
Some recommendations :
Whenever you are about to use a framework or new technology always refer the documentation, it contains a whole lot of information to help you get started. In case you are learning Yii framework, check the documentation here
For ex : If you are using linux. Go to your yii framework directory and type the following . As I use ubuntu so to create a new application I would type :
sudo ./yiic webapp /var/www/html/yiisite
This command would generate a new application for you. And regarding your doubt for the config settings. It will be the file "Your generated site/protected/config/main.php".
For Ex : In my case it is yiisite/protected/config/main.php
My suggestion would be to spend some time reading the documentation to understand how things work in Yii or watch the video tutorials Yii Tuts
Hope this helps you.

How to Installing new Yii2 framework with Terminal

I am not able to to install yii2 which has been released on 12 oct 2014, because they are not giving yiic for install. And I don’t want to use composer.
following command does not work:
php yii2/framework/yii webapp appName
check official documentaion http://www.yiiframework.com/download/
there "Install from an Archive File" section
Download one of the following archive files, and then extract it to a
Web-accessible folder:
Yii 2 with basic application template
Yii 2 with advanced application
template
I don't want post these links here because they will be updated in future.

How to install Yii framework in an android devices?

I am studying Yii framework in my android phone. I have an application called AndroPHP. It has a LightHttpd, MySql and PHP.
I can run CodeIgniter, Wordpress and Smarty in my phone but I don't have an idea how can I install a Yii framework. I searched in the Internet I can't find any correct solution.
I tried to install it using the yiic webapp in my android terminal emulator. And my error is
sh: yiic: not found
I have a YII framework extracted in sdcard/www/YII/
And I used the yiic in the framework folder.
To access the yiic I have this path:
root#android:/storage/sdcard0/www/YII/framework#
And to use the yiic I have this
yiic webapp sdcard0/www/bid
where bid is my folder under www
Any idea how can I install this framework? Or any android application that has a tutorial in installing Yii. Ok that's all thanks.
use ./yiic webapp sdcard0/www/bid you should use ./ since current directory is not included in path.

Trouble installing Omnipay via Netbeans composer extension

I am currently trying to install Omnipay into my Codeigniter project. I am stuck on windows because I do not have ssh access to the box where this needs to run on. So far I have gotten a new directory in the project root that is named "vendor" and it contains a lot of empty directories referring to Symfony (for what reason is beyond me).
Then I get a runtime exception that I need to enable the openssl extension in my php to download the necessary files and this is where I am stuck at. I don't run WAMP on my computer and I just use the php.exe I downloaded to work with netbeans.
Isn't there an easier way to get omnipay to run? Like just download the files from somewhere and plug them into my project like normal? It seems to be an aweful lot of headache to get a simple library to run in my CI project.
Please forgive my ignorance towards composer but I currently see no benefit of using it for this particular project.
You can "just download" the files here: https://github.com/omnipay/common/archive/master.zip
The problem is, Omnipay depends on Guzzle (an HTTP library), and Guzzle depends on some Symfony components. So you will spend the rest of the day downloading dependencies and making sure you have all the necessary files. That is the problem Composer solves for you.
I don't have any experience running Composer on Windows, but I would start here:
http://getcomposer.org/doc/00-intro.md#installation-windows
Using the Installer
This is the easiest way to get Composer set up on your machine.
Download and run Composer-Setup.exe, it will install the latest
Composer version and set up your PATH so that you can just call
composer from any directory in your command line.
Once you have Composer installed, you should simply be able to make a file named composer.json in your project root, with the following contents:
{
"require": {
"omnipay/omnipay": "~2.0"
}
}
Then use the Command Prompt and cd to your project's directory, and run composer update to download the Omnipay files and all their dependencies.

Categories