I just downloaded yii-mail and would like to use it in my yii application but i dont know where to but the files. I tried going to the documentation on the link provided on the yii-mail page but it doesnt help. Where should i put the files and is there some line of code i need to add to the application so I can use the mail function?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Follow this steps:
Code:
Yii-mail is an extension for the yii framework (obvious), so when you download the files associated with that extension you'll put them in the extensions directory under your "protected" directory within you're yii project. Specifically you're extensions directory should have subdirectories each with the name of an extension.
In addition you will probably also have to go into /protected/config/main.php and add some code to allow the use of the extension. There is likely a "how to, copy/paste" of how to do this on the page for the extension itself. Specifically though, you will be adding code to the "components" array in main.php, which is just a big array itself.