上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页
摘要: In fact that I am too poor to buy a server to run my website, but I want to run cron auto, so I use ajax to do it! :PIn the file of the layout, add the code as below:代码in the path /site/cron, you can ... 阅读全文
posted @ 2010-09-22 23:04 DavidHHuan 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Maybe there is not a good introduction about how to embed css and images in a module in the forum (or cookbook) of Yii framework, but thanks to Qiang, who builds the great framework, that I found the ... 阅读全文
posted @ 2010-09-22 12:58 DavidHHuan 阅读(651) 评论(1) 推荐(1) 编辑
摘要: All I test the code below is under Ubuntu.1. Install expect[代码]2. Create a .sh file, here is login.sh, and insert the code as below[代码]Please note that you have to change to codes what is marked with ... 阅读全文
posted @ 2010-09-17 14:58 DavidHHuan 阅读(288) 评论(0) 推荐(0) 编辑
摘要: As we know, in drupal, the frontend and backend are mixed together, but when we click the button "delete" or "revisions" of a node, we are redirected to frontend, so how can we set to stay in backend ... 阅读全文
posted @ 2010-09-15 18:14 DavidHHuan 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Change the URL for the admin panel: /admin/ will be no more accessible. The goal is to avoid hacks.Let say we want to change the entry of backend from /admin to /config, that is the web user is deny w... 阅读全文
posted @ 2010-09-09 16:07 DavidHHuan 阅读(343) 评论(0) 推荐(0) 编辑
摘要: First you have to create a new module called "my_submit", and in the my_submit.module, insert the code as below:代码I have added readMe in the code comment. 阅读全文
posted @ 2010-09-08 11:19 DavidHHuan 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Modify the file, sites/all/modules/date/date_elements.incfunction date_combo_validate(), maybe line 521,after the code[代码]add these:[代码]sites/all/modules/date/date.themefunction theme_date_display_com... 阅读全文
posted @ 2010-09-07 20:52 DavidHHuan 阅读(270) 评论(0) 推荐(0) 编辑
摘要: When I insert a wrong url to the server, I got the error as blow : [代码]And then I check the log of apache, I got some notice : [代码]Thanks for Google, I got the resolve.Open the .htaccess files, we can... 阅读全文
posted @ 2010-09-01 13:48 DavidHHuan 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 1. Enable these module : Content type translation, Content type translation2. Edit the content type which you want to change the languageFor example, here we modify the "Pages" content type. a. In the... 阅读全文
posted @ 2010-09-01 10:50 DavidHHuan 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 将所有没有加入svn的文件都加入svn版本控制[代码]删除所有没有加入svn版本控制的文件[代码]Linux下批量删除.svn文件[代码] 阅读全文
posted @ 2010-08-30 19:59 DavidHHuan 阅读(289) 评论(0) 推荐(0) 编辑
摘要: after I modified the 404 page redirection in admin/settings/error-reporting , when I view a page which doesn't exist, that will correctly redirect to the node what I set, but some blocks disappear.The... 阅读全文
posted @ 2010-08-27 16:53 DavidHHuan 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1. Create a file named "StringHelper.php", and locate it in protected/components , and insert the code as below:代码2. Demo[代码]Have fun with Yii! :) 阅读全文
posted @ 2010-08-23 23:26 DavidHHuan 阅读(357) 评论(0) 推荐(0) 编辑
摘要: There may be another good way to create and get the thumb image in Yii, here is my method to do it.1. You have to install this extension, "phpthumb", please search this extension in this website. 2. C... 阅读全文
posted @ 2010-08-23 22:30 DavidHHuan 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Just test the code as below:代码Have fun! 阅读全文
posted @ 2010-08-23 14:16 DavidHHuan 阅读(390) 评论(0) 推荐(0) 编辑
摘要: When I runed a 32M database file in phpmyadmin, I got this error in the screen.[代码]There is a good way to fix this problem. Open the my.cnf file in the mysql install path. (Because I install the lampp... 阅读全文
posted @ 2010-08-19 15:43 DavidHHuan 阅读(867) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页