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

Adding a field when a model is read

Let's say I have a model named Reads that contains the following locked schema: protected $_schema = array( '_id' => array('type' => 'id'), 'name' => array('type' => 'string', 'unique' => true), 'read_by' => array('type' => 'string',…
Dawson Goodell
  • 418
  • 2
  • 5
  • 15
0
votes
1 answer

PHP Lithium - performance with or without model scheme definition mysql only

In model class, it provide a way to define the db table scheme manually. I didn't use it when I design the model class for mysql db adapter, and it's working well. I think Lithium will retrive the scheme information from mysql db automatically, so I…
Tom
  • 4,612
  • 4
  • 32
  • 43
0
votes
1 answer

PHP Lithium - Authentication how to access session data

I have read about authentication in Lithium manual, still I have some questions about it. After Auth::check ('default', $this->request), it will return an array of user data if succeed. I have finished this part according to the manual. if I want…
Tom
  • 4,612
  • 4
  • 32
  • 43
0
votes
1 answer

Lithium PHP GridFS image read failures

In trying to fetch images from a MongoDB GridFS collection using the 1.3.4 driver and the Lithium PHP framework, I'm getting broken images. I am having trouble pinpointing when this started happening, as, although the site in question is not live…
0
votes
1 answer

Lithium PHP: Open view without layout

I am using the PHP framework Lithium (aka li3). I want to be able to open just a view (ie without a layout) in a jquery dialog box. Ideally, I would like this to be done with a small modification to the URL, for example: Normal path to action:…
Max Mumford
  • 2,482
  • 5
  • 28
  • 40
0
votes
1 answer

Lithium PHP DocumentSet Caching

I'm attempting to cache the results of a query (DocumentSet) in hopes of enhancing performance on my clients application. So before the find the app will check to see if an appropriate cache key exists and, if so, serve that rather than hitting the…
joseym
  • 1,332
  • 4
  • 20
  • 34
0
votes
2 answers

Lithium PHP routes not working

I'm following the quickstart guide for Lithium: http://li3.me/docs/manual/quickstart I created my posts Model in /var/www/my_app/app/models/Posts.php I created my posts…
Blake Erickson
  • 755
  • 1
  • 9
  • 28
0
votes
1 answer

Lithium PHP form helper fails while generating URL when using globalization

I have activated globalization config in my lithium framework. When I using html helper in my View like '$this->form->create()'. The page threw an Exception with "No parameter match found for URL {$url}". I found that in my 'Lithium\action\Request'…
guosheng1987
  • 107
  • 1
  • 7
0
votes
1 answer

Different views in one

I´m working on a project using lithium framework and I need to be able to have different views in a "MAIN" view. For example. I have to be able to see the post and events forms (add a new event and a new post) in the principal view. I actually have…
0
votes
1 answer

Multiple lithium models relationships

I´m actually on a project and working with lithium framework for PHP. I´m using multiple databases (MongoDB and MySQL) and on the MySQL database I have lots of many to many relations between my tables. I´ve been reading about lithium relationships…
0
votes
2 answers

Lithium Framework Architecture - Call One Controller from Another

I'm working on a web app using the Lithium Framework with a MongoDB database. On one page of the application - I want to display data from multiple object types. I understand the concept of relationships (i.e. belongsTo, hasMany, etc.) between…
NinoCodes
  • 35
  • 1
  • 4
0
votes
1 answer

How to render an email using a view in Lithium?

In Lithium documentation is written that *View::$_request* "Holds the details of the current request that originated the call to this view, if applicable. May be empty if this does not apply. For example, if the View class is created to render an…
Mir
  • 1,575
  • 1
  • 18
  • 31
0
votes
1 answer

Lithium framework template parts

So here is my question : How can I use template parts ? I mean individual files like navbar.html.php which I would include in my layout and passing parameters. I did some researches but didn't found much about it ... Thanks for reading/helping =D
Sladix
  • 712
  • 2
  • 7
  • 19
0
votes
1 answer

Advanced Validation with Lithium PHP Framework

I'm building a pretty complex and dynamic form via the Lithium PHP framework. I've got the form working and saving to MongoDB with little problem. But I am having trouble with validation. Simple validations (such as checking if a field is not empty…
NinoCodes
  • 35
  • 1
  • 4
0
votes
1 answer

how to include view in lithium framework

I am using lithium framework to do my application because it supports mongodb , Now I am trouble with how to include another view file in a view file For example I get a view file named 'menu.html.php'
guosheng1987
  • 107
  • 1
  • 7