I need to create a skeleton application in yiic from my console. I tried running the following command:
yiic webapp demo
My yii and frameworks folders are placed here:
C:\wamp\www\yii\yii-1.1.14.f0fee9\framework
My htdoc folder's path is here:
C:\wamp\bin\apache\apache2.4.9\htdocs
Can someone guide me here please? Thanks
The yiic.bat file needs to be edited. We have to provide the full path to our php.exe file placed in the bin folder.
Related
Right now I have to open laragon start all > go into commands > and write php artisan serve, only then can I access the local website.
My question is how can I start all and serve the website on start of the program.
Thank you in advance!
you have to put your project folder into C:\laragon\www\
when start the laragon service it's gonna search in that folder and use the name of the folder project to create a custom url, for example
if you put your project folder named newproject into the C:\laragon\www folder, when you start the service, laragon it's gonna make an url with the name of that folder newproject.test
C:\laragon\www\newproject-> newproject.test
C:\laragon\www\blog-> blog.test
I have uploaded my Laravel Web application to my server and tried to run the symlinks command but the media/images are not syncing. Anyone here can help me how to fix the storage issue?
here is my symlinks command :
<?php symlink('/home/webcxsol/shog/storage/app/public','/home/webcxsol/public_html/storage'); ?>
My public folder is in the public_html folder of the server and all the other files are in the other folder.
If you are or wish to follow the framework conventions, there is a specific command for this which you could take a look at using: php artisan storage:link.
I am new with yii framework. I have downloaded yii-1.1.14.f0fee9.zip file, I extracted and renamed it as yii and placed to my wamp root directory. For creating sample skeleton application, first I created test_project folder in wamp root and then run folling lines to cmd prompt.
cd c:\wamp\www\yii\framework
yiic webapp ..\test_project
these lines executed in cmd prompt without error. But, could it see create any sample or skeleton files under test_project folder. I have also tried to run it with browser. It showing blank. Anybody can please help me to start a skeleton project in yii ? Iam really interesting to develop projects in yii. please help me guys.
Follow the steps
cd c:\wamp\bin\php\phpx.x.xx
c:\wamp\www\yii\framework\yiic webapp c:\wamp\www\test_project
Note that in step 1. is your php directory that has php.exe file
Update:
For detail you can have a look at this link http://www.larryullman.com/series/learning-the-yii-framework/
This is a very good tutorial for Yii application initiation.
hope this will help
I've never used wamp but as I see it has a WWW directory. You should place your projects in this directory, otherwise it won't be available for browsers. (Never take the framework files here, just leave there than you placed before)
Using yiic. It is a command line tools (doesn't work from browser) for making skeleton app, migrations etc.
try:
cd (c:....... framework) [enter]
yiic webapp c:\......\www\test_project [enter]
The main are points the WWW and the separated command
I guess it will work.
Greg
I'm on linux and my home directory is:
public_html/yii
(I installed yii in a subdomain yii.domain.com)
my framework is in:
public_html/yii/yiiroot/framework
i want to create a project called demo, but it always tries to create it in the framework folder.
ie.
cd public_html/yii
yiiroot/framework/yiic webapp demo
when I run this command it asks me if I want to create a webapp in:
public_html/yii/yiiroot/framework/demo
How do I reconfigure?
I guess you can just hardcode the absolute path of the webapp folder.
yiiroot/framework/yiic webapp ~/public_html/demo
I am trying to get started with the PHP MVC framework, CodeIgniter. I am using the following article to setup my dev environment:
http://hetal.wordpress.com/2009/09/04/working-with-eclipse-and-code-igniter/
I am trying to add the CI 'System' folder to a new project in Eclipse. I am doing this by selecting 'New Php Project' and then 'Create project from existing source'. I am pointing it to the system folder as instructed.
I get an an error:
Parent of resource: /var/www/CI/System/.project is marked read-only.
The details says, "Permission Denied".
I have tried running Eclipse using gksudo but then I don't have PHP plugins installed etc.
It's saying that it only has read access to the /System/ folder, and therefore it does not have permission to write the .project file.
chmod the /System/ directory and try to import it into Eclipse again.
chmod og=rw /var/www/CI/System/
/* Gives the owner & group read & write access */
You're attempting to have Eclipse write files (i.e. the Eclipse .project) to a directory that it doesn't have permission to do so. It appears you're trying to write to the actual /var/www/ directory.
Normally the way I do it is to have CodeIgniter in my development directory/eclipse workspace and then make a soft-link in the /var/www/ that points to the Code Igniter I have setup in my development environment.
In response to comment
%> cd /var/www/
%> ln -s /home/jsmith/eclipse/workspace/CodeIgniter CI
This will create a soft link named /var/www/CI that points to the CodeIgniter you have in your home directory. (or where ever you typically put your development files) This will allow the web server to serve and use the CodeIgniter files that are under your control in your directory which you have full permissions on.