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
0
votes
1 answer

Why is lithium's (li3) last-route not catching everything?

The last connect on the Lithium Router: Router::connect('/{:controller}/{:action}/{:args}', 'Main::end'); Should match all the routes? No? But instead of execute my Main::end method (who simply exit('with some text, for testing...')), Lithium give…
cl0udw4lk3r
  • 2,663
  • 5
  • 26
  • 46
0
votes
2 answers

Fresh lithium framework installation returns error 403

I read the docs and installed lithium exactly like they have explained but I keep on getting a 403 forbidden error. I am new to apache and php and I have been spending two full days trying to make lithium work. I am running apache 2.0 on osx lion…
Marwan Roushdy
  • 1,214
  • 12
  • 25
0
votes
1 answer

MongoDB password and Lithium framework

I came across a scenario in which the MongoDB password was removed from the DB. Then Lithium showed "Connection was reset.. ", instead of lithium error. I will explain you step by step: In Connections.php Connections::add('default', array( 'type'…
Nilam Doctor
  • 491
  • 7
  • 18
0
votes
1 answer

Testing Environment-sensitive code in Lithium

In a test, is there a way to temporarily override what Environment::get() returns in a class that extends StaticObject? I'm writing a feature toggle plugin for Lithium. I want to test switching features on and off based on the environment. For…
michaeltwofish
  • 4,096
  • 3
  • 28
  • 32
0
votes
1 answer

Using slaveOk for all queries

I'm unsure of the proper way to use slaveOK with Connections::add(). It was suggested here to use Mongo::setSlaveOkay(), but I'd like it for all queries. I'm unsure of how to properly test it, but I'd like to think this would…
Eric C
  • 971
  • 6
  • 14
0
votes
3 answers

Lithium: Can we see queries executed as shown in CakePHP

Do you know of any method to show the queries being executed in Lithium as it does in CakePHP. It may become easier for me to find what is executed. At the bottom of the page it shows the queries executed. ![The screen shot]…
Nilam Doctor
  • 491
  • 7
  • 18
0
votes
0 answers

Lithium Couchdb query design by key

This code is working fine: $posts = Posts::all(array( 'conditions' => array( 'design' => 'posts', 'view' => 'all', 'limit' => 10, 'descending' => 'true' ) )); It queries all Posts documents. But when you use filter by key it…
John Laniba
  • 435
  • 3
  • 12
0
votes
1 answer

Lithium Couchdb find:all

I started working on lithium and couchdb using their blog tutorial. One thing i noticed is that find:all is not working properly: Posts:find('all', array('conditions' => array('title' => 'title')) The conditions are not working. It all queries the…
John Laniba
  • 435
  • 3
  • 12
0
votes
2 answers

Accessing Session Variables in Single Page Applications

I'm developing a simple(!) 2 page application. Page1: Takes basic details from the user about the program is creating for his trip - name of the trip, dates etc. After clicking Save, a entry is created on MongoDB using controllers in Lithium PHP for…
Nilesh Kale
  • 233
  • 1
  • 4
  • 12
0
votes
2 answers

How do I create a Lithium - form->select from controller output

I want to create a dropdown for types collection from MongoDB, in my MongoDB collection: section has types and controller code with view code. I want to create a form->select from the output of the controller. types { "_id":…
Nilam Doctor
  • 491
  • 7
  • 18
0
votes
1 answer

Why is the li3 HTML helper not generating the correct path some of the time?

Question In the 'default' layout for my Lithium install I have the following code: html->script(array('jquery-1.7.1-dev.js')); ?> For all normal requests (e.g. /path/to/framework/users/login, where Users is a model and there is a…
cfogelberg
  • 1,468
  • 19
  • 26
0
votes
2 answers

How to store files of different types in separate collections using Lithium and GridFS?

I have a model that looks like this: class Pdf extends \lithium\data\Model { protected $_meta = array('source' => 'fs.files'); protected $_schema = array('_id'=>array('type'=>'id')); public $file; /** * @param $zipfile string…
Terrence
  • 1,032
  • 1
  • 8
  • 16
0
votes
1 answer

Change default controller path in lithium

I'm writing a new version of an API and would like to support legacy versions by having distinct sets of controllers for each version. Within the default "app\controllers" path in Lithium, I would like to have for example "v1" and "v2" paths. I have…
0
votes
1 answer

How to use Hudson for building Lithium Tests?

I am trying to setup hudson to build lithium unit tests. I guess the command "li3 test tests/cases" should build these cases, but I'm not sure about setting the paths in Hudson. Anyone done continous integration of lithium projects?
Mr. Zen
  • 704
  • 3
  • 7
  • 17
0
votes
2 answers

lithium framework on shared hosting

Don't want to pay for dedicated server for dev work. I don't want to run a live apache server. Is it possible to integrate lithium framework into shared hosting account doc-root?
Dan Kanze
  • 18,485
  • 28
  • 81
  • 134