埋掉一座城吧 关注:21贴子:4,668
  • 18回复贴,共1
testdrive/ index.php Web 应用入口脚本文件
index-test.php 功能测试使用的入口脚本文件
assets/ 包含公开的资源文件 css/ 包含 CSS 文件
images/ 包含图片文件 themes/ 包含应用主题
protected/ 包含受保护的应用文件
yiic yiic 命令行脚本
yiic.bat Windows 下的
yiic 命令行脚本
yiic.php yiic 命令行 PHP 脚本
commands/ 包含自定义的
'yiic' 命令
shell/ 包含自定义的
'yiic shell' 命令
components/ 包含可重用的用户组件
Controller.php 所有控制器类的基础类
Identity.php 用来认证的
'Identity' 类
config/ 包含配置文件
console.php 控制台应用配置
main.php Web 应用配置
test.php 功能测试使用的配置
controllers/ 包含控制器的类文件
SiteController.php 默认控制器的类文件
data/ 包含示例数据库
schema.mysql.sql 示例
MySQL 数据库
schema.sqlite.sql 示例
SQLite 数据库
testdrive.db 示例
SQLite 数据库文件
extensions/ 包含第三方扩展
messages/ 包含翻译过的消息
models/ 包含模型的类文件
LoginForm.php 'login' 动作的表单模型
ContactForm.php 'contact' 动作的表单模型
runtime/ 包含临时生成的文件
tests/ 包含测试脚本
views/ 包含控制器的视图和布局文件
layouts/ 包含布局视图文件
main.php 所有视图的默认布局
column1.php 使用单列页面使用的布局
column2.php 使用双列的页面使用的布局
site/ 包含 'site' 控制器的视图文件
pages/ 包含 "静态" 页面
about.php "about" 页面的视图
contact.php 'contact' 动作的视图
error.php 'error' 动作的视图(显示外部错误)
index.php 'index' 动作的视图
login.php 'login' 动作的视图
system/ 包含系统视图文件


本楼含有高级字体1楼2013-04-02 11:04回复
    2楼2013-04-02 11:05
    收起回复
      2025-05-28 10:18:10
      广告
      5楼2013-04-07 22:53
      收起回复
        6楼2013-04-08 14:14
        收起回复
          http://koda.iteye.com/blog/504128


          7楼2013-04-08 14:14
          收起回复
            汉化:
            yii 利用message 用于webapp的国际化,汉化问题。 - [YII]2012-01-08 Tag:
            版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
            http://jcter.blogbus.com/logs/186104252.html
            1.利用php yiic help message打印message命令的相关用法.
            /*
            USAGE
            yiic message
            DESCRIPTION
            This command searches for messages to be translated in the specified
            source files and compiles them into PHP arrays as message source.
            PARAMETERS
            * config-file: required, the path of the configuration file. You can find
            an example in framework/messages/config.php.
            The file can be placed anywhere and must be a valid PHP script which
            returns an array of name-value pairs. Each name-value pair represents
            a configuration option.
            The following options are available: - sourcePath: string, root directory of all source files.
            - messagePath: string, root directory containing message translations.
            - languages: array, list of language codes that the extracted messages
            should be translated to. For example, array('zh_cn','en_au').
            - fileTypes: array, a list of file extensions (e.g. 'php', 'xml').
            Only the files whose extension name can be found in this list
            will be processed. If empty, all files will be processed.
            - exclude: array, a list of directory and file exclusions. Each
            exclusion can be either a name or a path. If a file or directory name
            or path matches the exclusion, it will not be copied. For example,
            an exclusion of '.svn' will exclude all files and directories whose
            name is '.svn'. And an exclusion of '/a/b' will exclude file or
            directory 'sourcePath/a/b'.
            - translator: the name of the function for translating messages.
            Defaults to 'Yii::t'. This is used as a mark to find messages to be
            translated.
            - overwrite: if message file must be overwritten with the merged messages.
            */
            2.做一个实例,把yiic 刚建立的webapp的login页面汉化.
            复制framework\messages\config.php 文件到 protected\messages\下
            把'language'改成 'languages'=>array('zh_cn').
            3.修改login的view文件.
            修改protected/views/site/login.php
            修改两行labelEx($model,Yii::t('login_message','username')); ?>
            labelEx($model,Yii::t('login_message','password')); ?>
            4.执行命令php yiic message "C:\AppServ\www\yii\computer\protected\messages\config.php"
            会提示在目录message下生成zh_cn目录和文件login_message.php
            修改文件
            /**
            * Message translations.
            *
            * This file is automatically generated by 'yiic message' command.
            * It contains the localizable messages extracted from source code.
            * You may modify this file by translating the extracted messages.
            *
            * Each array element represents the translation (value) of a message (key).
            * If the value is empty, the message is considered as not translated.
            * Messages that no longer need translation will have their translations
            * enclosed between a pair of '@@' marks.
            *
            * Message string can be used with plural forms format. Check i18n section
            * of the guide for details.
            *
            * NOTE, this file must be saved in UTF-8 encoding.
            *
            * @version $Id: $
            */
            return array (
            'password' => '密码',
            'username' => '用户名',
            );
            5。在protected\config\main.php里添加两行代码
            'language'=>'zh_cn',
            'sourceLanguage'=>'en_us',

            6。再次访问LOGIN会发现菜单和label提示成了中文。如果是乱码注意longin_message.php文件的编码。


            本楼含有高级字体8楼2013-04-27 09:53
            收起回复
              语法一 :<label><?php echo Yii::t('_form_build_views_dev_modules','Upload');?></label>
              语法二 : Yii::t('_form_build_views_dev_modules','Upload')


              9楼2013-05-03 17:02
              回复
                删掉 server,步骤
                在etc中的apache2下面的sites-available中有一个default文件,你在里面直接编辑它即可,里面有documentroot把原来的var/ www改成backup / code / laworks / server即可


                11楼2013-07-22 21:24
                收起回复
                  2025-05-28 10:12:10
                  广告
                  删除服务器编辑器框按钮的选项 、目录:目录为:server\protected\extensions\editor\source\ckeditor\config.js


                  12楼2013-07-29 14:34
                  回复
                    如果你再配置一台数据库服务器,在装好MYSQL以后,如果要使用ROOT用户,则需要修改ROOT的访问权限:
                    UPDATE MYSQL.`user` SET Host='%' WHERE User='root'
                    再执行: flush privileges; (刷新)
                    如果为了安全不使用ROOT用户,则使用如下命令添加一个用户:
                    GRANT ALL PRIVILEGES ON *.* TO 用户名@"%" IDENTIFIED BY '密码' WITH GRANT OPTION;
                    网站服务器需要修改的地方是:

                    下面的main.php文件中的75把其中的localhost改成数据库服务器的IP地址,即可
                    如果是局域网,数据库服务器不对外的话,那可以直接使用ROOT,这样你修改起来也方便.


                    13楼2013-07-29 14:57
                    回复
                      在windows命令行窗口下执行:
                      C:\>netstat -aon|findstr "80"
                      TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
                      看到了吗,端口被进程号为2448的进程占用,继续执行下面命令:
                      C:\>tasklist|findstr "2448"
                      thread.exe 2016 Console 0 16,064 K
                      很清楚吧,thread占用了你的端口,Kill it

                      处理wampserver 80端口


                      本楼含有高级字体15楼2013-11-22 14:38
                      回复