-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabled pi command line #1404
Comments
The function has been achieved in commit 4b552a6 Then how to start a command controller, please following this brief document:
Open the www/pi file, and change the php file path in the first line to your php installed path. for example, your php installed in /data/lib/php, the first line should be changed to:
Or leaves this file unchanged, and execute the command line by:
Create a 'Command' folder under Add a new controller, for example
And do what you want to do like you do with front/admin actions. Note that you can output result just with |
@linzongshu I will check it , very interesting , good to see you send pull request on core , hope you will have more time to work on pi on next weeks |
@voltan |
Yii provide a command controller for developers to easily execute php script in server end. Just like:
I look deep into Zend code, and find that Zend also provide a console mode, then we can extend its function and provides a convenient way for developers to develop command line action just like yii does, for example:
This will be very great for developers to execute script as well as use Pi api.
@taiwen @voltan @Marc-pi
The text was updated successfully, but these errors were encountered: