Questions tagged [lithium]

Lithium is an RAD framework for PHP 5.3+

Lithium, an RAD framework for PHP, is focused on quality, speed, and flexibility. It's a set of philosophies and tools that enable one to build applications quickly, without sacrificing quality, extensibility, or control of the framework.

Lithium understands distributed storage and caching, queuing systems, micro-dispatch frameworks, with integrated support for document oriented databases like CouchDB and MongoDB, alongside relational databases like MySQL and SQLite.

Official Lithium (li3) Homepage

The Manual

API

The Source Code on GitHub

301 questions
28
votes
3 answers

What new features and improvements does Lithium provide over CakePHP?

I've used CakePHP on several projects in the past, and have more recently started using Ruby on Rails, but there's a new project I'm about to start that will require PHP. While refreshing myself on CakePHP I learned that there is a new framework…
Jimmy
  • 35,686
  • 13
  • 80
  • 98
13
votes
3 answers

What is the best way to generate a login token? Is this method of authentication vulnerable to attack?

I have to implement login tokens in my Lithium (the PHP framework) based application. Two reasons: I want to have a "remember me" function. I also need a way of tracking logins on the server so that I can verify authenticated users on a node.js…
rich97
  • 2,809
  • 2
  • 28
  • 34
8
votes
1 answer

Lithium and validating complex form inputs - how?

I've done quite a few Lithium tutorials (links below in case they help someone else, and also to show I've done my homework:) and I understand the most basic parts of creating models, views, controllers and using MVC to create a DB record based on…
cfogelberg
  • 1,468
  • 19
  • 26
8
votes
2 answers

Hidden features of the Lithium framework?

Since there isn't a lot of documentation out there, some features of the Lithium PHP Framework are not well known by the public. Are there any cool code features which I would miss if I just use the framework as shown in the docs?
powtac
  • 40,542
  • 28
  • 115
  • 170
7
votes
2 answers

PHP Fatal error: Class 'MongoDate' not found

I use lithium console (lithium/console/li3) to run some command and I get this error: PHP Fatal error: Class 'MongoDate' not found My system details: mongodb server: 2.6.1 php mongodb client: 1.5.2 apache 2.4.7 php 5.5.9-1ubuntu4 $Requests =…
Minh Nguyen
  • 490
  • 1
  • 3
  • 8
7
votes
6 answers

Word Cities/Towns/Countries database for MongoDB (or in JSON)?

I'm developing a application using MongoDB. One of the standard functionality I want to provide on the front-end is the 'auto-suggest' feature as one types in the first few letters of a city (example: If I start typing 'Mu...', it should suggest to…
Nilesh Kale
  • 233
  • 1
  • 4
  • 12
6
votes
1 answer

how to use LIKE with conditions in sqlite or mysql with lithium recordset

so I can look for concrete values by doing $recordset= Model::find('all', array( 'conditions' => array( 'condition' => $somevalue ) )) however, what do I do if I want to match on a partial…
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
6
votes
2 answers

Mongodb single database vs collection per client vs database per client

I want to build a webservice using mongodb and lithium. What is better: Store the data of all the clients in one collection (e.g. all the transaction documents of multiple clients in one collection transactions) Create multiple collections e.g.…
ynh
  • 2,919
  • 1
  • 19
  • 18
6
votes
1 answer

Lithium apps that go beyond CRUD

This is more or less a framework-centric version of a past Stack Overflow question, which is about how most introductory material on MVC applications tends to present a tight coupling between models, views, and controllers. For example, you'll have…
Jeff Lee
  • 1,306
  • 2
  • 14
  • 20
6
votes
3 answers

Partials in lithium

Normally I use the Zend Framework and this is something I miss in Lithium. Partials. There is a render method in the view where you can use 'elements' which is the closest I got. _render('element', 'form); ?> This does work, however it…
Matthijn
  • 3,126
  • 9
  • 46
  • 69
5
votes
2 answers

How do I perform joins with lithium models?

I read through lithium\data\model\query, but I didn't see any examples of joins.
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
5
votes
3 answers

Disable render process in lithium

i use uploadify for my upload process. The problem is that after each upload lithium tries to render the view of the controller. In my case uploadify.html.php. How can i disable this behaviour and just return a 200 OK. My controller code: class…
Mewel
  • 1,279
  • 15
  • 21
5
votes
1 answer

What is Lithium's equivalent to CakePHP's Configure::load() and Configure::read()?

I'd like to store configuration data in separate files and load it/read it using the proper Lithium way.
Aaron Shafovaloff
  • 860
  • 10
  • 12
5
votes
2 answers

Memcache, Mongodb or other Database storage for Lithium Sessions

I'm getting comfortable with the Lithium framework, and was wondering if there were any samples for using MongoDB or Memcache for Lithium Sessions. Would there need to be a new Session Adapter written?
Eric C
  • 971
  • 6
  • 14
4
votes
3 answers

Install lithium php framework

I'm a long time codeigniter framework user, and I love how you can just download it, extract and upload to your server via ftp and that's it, ready to go. Now, I'm curious to try lithium framework, but oh my, command prompts, shell access, github...…
Jason
  • 387
  • 3
  • 13
1
2 3
20 21