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
3
votes
3 answers

When is Lithium php framework 1.0 expected to be released?

I am waiting for Lithium PHP framework's final release (1.0). Especially features like model joins and relationships. Is there any publicly available info on when this release is expected? Thanks!
Ishan
  • 31
  • 2
3
votes
1 answer

Li3 - Handle MySQL 5.7 Generated Columns Properly

In MySQL you can have read-only columns that get auto-generated content based on sub-queries / actions. For example, you can make it store the value extracted from a JSON column (using the 5.7 JSON features). This does not work in Li3 by default…
Bowersbros
  • 3,438
  • 2
  • 18
  • 24
3
votes
0 answers

Renderer Post Processing (HTML Minification and CSS Inlining)

I'm not really sure how to approach this problem. I'm generating emails via lithium and would like to inline the css styles after the view/template has fully rendered before it's displayed in the browser. It's very simple when building the view…
Eric C
  • 971
  • 6
  • 14
3
votes
1 answer

Lithium routes with different locales

I have a i18n route in Li3 that looks like: Router::connect('/{:locale:[a-z]{2}/{:args}', [], [ 'continue' => true, 'persist' => ['locale'], ]); This way, when a user (or a crawler) enters my site with a language prefix, the locale is used…
fedeisas
  • 1,991
  • 2
  • 22
  • 34
3
votes
1 answer

lithium Deprecated __init() method, needs to be called it manually

I recently update lithium library and I have this problem. I get this error: RuntimeException Deprecated `app\models\StoreCategories::__init()` method, needs to be called it…
Minh Nguyen
  • 490
  • 1
  • 3
  • 8
3
votes
4 answers

Lithium content negotiation displays all data - how to filter it out?

I have app/controllers/UsersController.php that does a simple Users::find('all'); in the index action. The path /users/index renders plain 'ol HTML output of the users data. The path /users/index.json render the JSON equivalent of the HTML output…
Housni
  • 963
  • 1
  • 10
  • 23
3
votes
2 answers

How to secure a Lithium php RESTful API?

I have created a RESTful apps using Lithium php framework and now my question is how to secure it? Is there any existing code for OAUTH or HTTP Digest Authentication that uses lithium framework?
John Laniba
  • 435
  • 3
  • 12
3
votes
2 answers

How does the lithium PHP framework generate a $this context in a PHP page?

I've been investigating the Lithium PHP Framework and I don't understand how it sets $this->context; (particularly in this layout.) Since you cannot simply re-assign $this obviously this layout will get included at some point and what confuses me…
user659025
3
votes
3 answers

Extremely slow lithium query, fast in MongoDB

So, I've been trying out the php framework lithium now and it seems like a really good framework and all but I have a slight problem. A query I run on a collection with only 6k+ documents is amazingly slow from php but blazingly fast when I run it…
Ms01
  • 4,420
  • 9
  • 48
  • 80
3
votes
1 answer

Working with nested documents/arrays in Lithium and MongoDB

I'm new to both MongoDB and Lithium and I can't really find the "good way" of working with nested documents. I noticed that when I try $user = Users::find('first' ... ); $user->somenewfield = array('key' => 'val'); what I get for "somenewfield" is…
PROM
  • 33
  • 5
3
votes
2 answers

how to use Lithium PHP framework with enumerated list of collections and changing collection in model

I'm looking to use Lithium framework to build my application config interface as I like its minimal approach and the document-store (i.e. Mongodb) centric model. However, (and I know its not quite released yet), there is little-to-no information,…
3
votes
2 answers

Lithium: How to call one validation filter from inside another

I have a base model that I extend from. In it, I have defined two validation filters. One checks if a record is unique, the other checks if a record exists. They work the exact same way except ones return value will be the opposite of the other. So,…
Housni
  • 963
  • 1
  • 10
  • 23
3
votes
1 answer

Calling MySQL functions in Lithium

How it's possible to call MySQL function (like GeomFromText() or SELECT AS) in the Lithium Framework's CRUD? Using database->read() is to inconvenient (I often change the database columns) and including the function in the variable's value only ends…
drelkata
  • 347
  • 1
  • 3
  • 11
2
votes
2 answers

MongoDB crashing PHP on file save, 500 error; can retrieve file saved without issue

I was debugging a situation last night where running lighttpd and fastcgi was causing a 500 error when I was uploading files. A closer inspection showed that files were indeed being uploaded, and even saved to the Mongo database back-end, but it was…
Dan
  • 445
  • 6
  • 31
2
votes
4 answers

filter methods in a controller

I want to create a filter for my add, update, and delete actions in my controllers to automatically check if they were called in a POST, as opposed to GET or some other method and have the pageInstanceIDs which I set in the forms on my…
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
1 2
3
20 21