yincart / basic Goto Github PK
View Code? Open in Web Editor NEWyincart b2c version which base on yiiframework
Home Page: yincart.com
License: BSD 3-Clause "New" or "Revised" License
yincart b2c version which base on yiiframework
Home Page: yincart.com
License: BSD 3-Clause "New" or "Revised" License
这个要看情况,如果js不多的话,可以考虑按照指南-性能优化-最小化脚本 这样直接合并掉。缺点是后期不好改,而且单个js比较大。
This folder contains the current open tab on your IDE.
The problem is :
My solution is clone this directory under other local directory, then we can open the parent folder instead of directly open the yinCart folder, so that we can put the .idea folder outside the project. Or we can change the PHPStorm configuration, but i don't know how to do that yet.
Plus: I think we'd better put the folder like js, css, image under /www folder. What do you think?
这个文件夹是用来存放你现在正在编辑的窗口信息的。
问题在于:
我的办法是,要么大家在本地把yinCart的文件夹放到一个父文件夹之内,编辑时打开父文件夹,这样.idea就不会在yinCart里面而是外面了。或者改改IDE的设置,不过偶暂时还不会。
另外:我们最好把 js, css, image放到/www文件夹里面。你们觉得呢?
yiicart/assets
yiicart/protected/runtime
yiicart/protected/backend/runtime
亦清(61391362) 20:48:27
上次 那个 onbeginrequest 问题可能是
php版本 跟yii版本问题引起的
亦清(61391362) 20:48:39
我今天也碰到了
54xiaosu(87753586) 22:25:35
这个是yii的bug
54xiaosu(87753586) 22:26:42
saveglobalstate 里面居然还detach掉
亦清(61391362) 22:27:31
根源在于 给事件监听器 弄了个匿名函数的缘故
亦清(61391362) 22:28:21
在php 某些版本上会表现不同
亦清(61391362) 22:28:38
5.3是可以的 但到5.4 就出错
54xiaosu(87753586) 22:29:13
wait
54xiaosu (87753586) 22:30:52
就好似这个
54xiaosu(87753586) 22:32:44
可以去掉里面的detach 或者将listiterator改为非引用
54xiaosu(87753586) 22:33:30
一般不用 global 那玩意
54xiaosu(87753586) 22:34:13
或者配置里面将 securitymanager 的两个key 自己配置上 就不用管那个bug了 也别用那个 global
54xiaosu(87753586) 22:37:34
开启 request的那写个 valication
54xiaosu(87753586) 22:37:54
然后删除 runtime/state.bin
54xiaosu(87753586) 22:38:31
不要设置securitymanager的key
54xiaosu(87753586) 22:39:50
执行
Yii::app()->request->cookies; #这个为了是global哪里发生改变 添加 onendrequest 事件
然后再添加个 onendrequest 事件
54xiaosu(87753586) 22:39:55
问题就会再现
54xiaosu(87753586) 22:41:20
'securityManager' => array(
'class' => 'CSecurityManager',
'validationKey' => '5e99dbc544c55a9fe39dac8f5417cb74',
'encryptionKey' => 'd21f7c15998be10c06b543d6416874fa',
),
54xiaosu(87753586) 22:41:51
配置里加上这个,然后不要使用那globalstate那玩意 除非你修复那bug
CDbCommand 无法执行 SQL 语句: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't.lft' in 'order clause'. The SQL statement executed was: SELECT * FROM `category` `t` ORDER BY t.root, t.lft
导入data/yincart-1.0.7rc6.sql时发生以下错误
ERROR 1217 (23000) at line 3940: Cannot delete or update a parent row: a foreign key constraint fails
我的MySQL版本是5.1.x
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.