suppose to have in Mongo a collection "user" like:
suppose to have in Mongo a collection "user" like:
An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).
I wrote about this on my blog, but wanted to post it here too.
Ok, this wiki is not only for yii projects.
Today I will show you how to handle multiple file upload step by step.
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.