基于PHP5的简单快速的面向对象的PHP框架
     ThinkPHP框架 | 中文最佳实践PHP开源框架,专注WEB应用快速开发8年!   thinkphp框架 - 是由上海顶想公司开发维护的mvc结构的开源php框架,遵循apache2开源协议发布,是为了敏捷web应用开发和简化企业应用开发而诞生的。
           
               
           
            
        
            
             
              
      
                 
                
                
            
            
setcookie doesn't work when I use with thinkphp framework. just $a = setcookie('a','a'); no path no domain. var_dump($a) returns bool(false); no output before this, and no warning.
but when I didn't use the framework , it works.
        Source: (StackOverflow)
                  
                 
            
                 
                
                
            
            
I use Thinkphp to develope a web project.Now i need query the mongodb with specified fields and suppress the '_id' field.But the '_id' field is include in result set by default.I know in mongodb client can use follow code to suppress '_id' field,but what about use PHP/Thinkphp?
db.inventory.find( { type: 'food' }, { _id:0 } )
        Source: (StackOverflow)