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.
Related
When I access to Yiisoft account on Github:
https://github.com/yiisoft
I see 3 pinned repos: Yii2, Yii2-app-basic and Yii2-app-advanced.
I know When I run the command:
composer create-project [template] [project-name]
I can create a project using one of installation templates. Also I know on the composer.json on this templates is set yii2 framework and yii2 bootstrap as dependencies, so they get downloaded.
What about if I want to create my own installation template, is there a guide how to do it?. I know it would not be that productive but just wondering out of curiosity.
UPDATE
I have noticed that just a couple hours ago this page was published:http://www.yiiframework.com/doc-2.0/guide-tutorial-start-from-scratch.html
but still it is based on the basic installation template, not a totally custom one.
I use composer to install symfony-demo. (It's symfony demo project for learning and teaching)
I'm using symfony-demo repository.
I'm on a windows machine. Running php 7.
Installed folder is c:\www\symfony-demo\
Apache is installed and c:\www is root folder.
loading http://localhost/symfony-demo/web works. The symfony application works.
However the assets like "/build/css/app.css" fail to load. The error status is 404 Not Found.
I think this is because I'm in a subdirectory of the root folder.
I've also tested running php bin/console server:run and testing it on 127.0.0.1:8000 but the results are the same. The css and js resources fail to load.
I'm comfortable editing Apache's .htaccess file. What am I missing? How do I either configure Apache or Symfony to find these resources?
The latest GitHub Repository fixed the error. The nightly build of the demo project did not have the assets. It now includes the missing css and js. The fix is mentioned in the commit.
The documentation of the symfony-demo is lacking information about the new build tools it is using. Check out the new api to build the frontend assets in Symfony based on Webpack Encore.
You can find more information in these issues Manage frontend dependencies properly and Manage application assets with the new Symfony asset manager.
Is their a way to integrate Drupal-8 and React js.
I mean frontend be React js and backed be of Drupal-8.
I have gone through:
http://www.anexusit.com/blog/how-to-add-reactjs-drupal-8-composer
I have followed all the steps and done but dont know how can I use it.
Can any one please suggest some clear steps to me ..
also followed:
https://www.reddit.com/r/reactjs/comments/564gdy/react_frontend_for_your_drupal_8_backend/
In need of some clear suggestions.
Thanks in advance.
Found this article, but didn't get time to try it as I am a bit busy on another thing. Hope this will help you.
https://medium.com/#Userium/headless-drupal-build-a-drupal-8-api-with-a-reactjs-front-end-e43bf0fb94db#.2qn0u2im4
I'm currently building a module for Drupal 8 using ReactJS. I recommend you to see this: https://github.com/blackwood/drupal-react_blocks that's for Drupal 7 and then to Drupal 8 try to understand this portuguese steps: http://www.drupalbrasil.com.br/drupal-8-e-reactjs
Before starting just install libraries module to Drupal 8 and then install rest web services so after that you can copy and paste code from above to start learning how the integration works.
Using drush to install libraries and rest web services module:
drush dl libraries
drush en -y libraries
drush dl rest
drush en -y rest
I recommend you to use PHP 7 because I'm currently having troubles installing rest module for PHP 5.6.
I highly recommend you try this module (found in this repository: https://github.com/dtraft/react_quickstart ). Its built with react and can run in Drupal 8.
Add this folder in sites/all/modules/ or you can also create a subdirectory for modules you make in sites/all/modules/custom/ .
And then follow the instructions found below the repository's link or the read.md file.
Clear your site's cache in your site's Admin/Configuration/Performance/ then click Clear all cache. Save the configuration.
Then go to, Extend menu of your site search for "Decoupled Drupal with React Quickstart". Install it.
Lastly, go to Structure/Block Layout menu and add a block any part of you site and then you can choose from all existing blocks. Choose Clock Face Block.
Refresh your sites home page and there you have it!
If you want to integrate react and use inside, you can simply create a react app anywhere and when you finished just do a
npm run build
once you finished just copy the js and css file generated inside build/static folder :(js/main.something.js and css/main.something.css) to your drupal module or theme and then just reference theme in module_or_theme.libraries.yml
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.
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"