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
1
vote
1 answer

Lithium redirect send request data

Trying to build a controller method that can redirect and send the request data along with it. Controller/route redirect doesn't seem to have anything that can achieve this. This question gave a new approach but I'm unable to figure out how to…
Bankzilla
  • 2,086
  • 3
  • 25
  • 52
1
vote
2 answers

Get Li3 to return JSON results as an array of objects, not an object of objects

I am trying to utilize the JSON result of a GET request to my Li3 app, but I would like the result to be an array of the returned JSON objects, rather than an object of the JSON objects. I have the following code in my view file…
Ryan Schie
  • 83
  • 7
1
vote
0 answers

On comment form submit, JSON syntax error: unexpected token <

I can't figure out why JSON isn't working in my comment system. Any help would be much appreciated. Currently when I submit the comment form, the ajax-loader flashes and spins, but the comment doesn't load and I get the "unexpected token" syntax…
Teoman Kirac
  • 748
  • 3
  • 8
  • 16
1
vote
1 answer

404 router in Lithium PHP

I know how to make response routes in the actual /config/routes.php file, but I can't find where to change the default 'fetal dispatcher' error. I'd like to be able to have it route to a nice 404 page I've made when there's a missing page/action…
keithp
  • 352
  • 1
  • 4
  • 13
1
vote
2 answers

What is best practice for setting up a multiple webroot environment on a Lithium application?

I'm interested in having a unified backend environment for multiple users and having multiple frontend environments for users. All should run from a single application instance, which will be the equivalent of the app folder. I've gone back and…
1
vote
1 answer

Lithium Framework MySQL raw query

I am fairly new to Lithium PHP Framework but I do know how to use the basic database abstraction method. I am using a plugin to build menu trees and it works great, although I want to use Lithium's abstraction layer for the functions. I'm stuck on…
keithp
  • 352
  • 1
  • 4
  • 13
1
vote
1 answer

How I can upload an image to a remote Mongo fs.grid?

I am trying to upload a remote image to Mongo fs.grid. I want to do that without a view, just with a model. I have an "example" here: https://gist.github.com/matysanchez/8607114 Thanks in advance for your answer.
1
vote
1 answer

Lithium PHP integration testing - routes.php not included?

I'm building a toy app in Lithium (PHP framework) based upon the Union of RAD's Framework project. It's all working great in the browser but when running integration tests, routes.php is not loaded, so the routing isn't working. Here's the code I'm…
gavD_UK
  • 395
  • 5
  • 11
1
vote
0 answers

subdomain rewrite rule lithium framework

I plan to have this as a URL: https://SubDomain.domain.com//Controller/action/param1/param2/?query=param3 in Lithium Framework (li3.me) What is the purpose of the htaccess files in Lithium? It should redirect me through .htaccess…
1
vote
1 answer

getting all the methods in a file

I am trying to find a best way to get all the private, public, static, protected methods in a file.... what would be the best way to do it. currently when I do file_get_contents it dumps the whole file but I need some kind of regex that will give me…
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
1
vote
1 answer

Lithium Base URL in Controller

This seems like a really simple question, but having trouble figuring out an answer. In lithium, How do you get the base url of a site from within the controller? Thank you.
user2566987
  • 308
  • 1
  • 9
1
vote
0 answers

Lithium relationships - I keep getting an incorrect LEFT JOIN

I'm trying to get a specific SQL JOIN (MySQL) and I'm not quite sure how to get that going in Lithium. I have 3 models: [ …
Housni
  • 963
  • 1
  • 10
  • 23
1
vote
1 answer

How to add class and id attributes to lithium form helper?

I'm using the Form Helper in Lithium and wonder how to add the HTML attributes class and id to the output of $this->form->create();? I want to set these attributes on the form element.
lorem monkey
  • 3,942
  • 3
  • 35
  • 49
1
vote
1 answer

running lithium quickstart with mongodb

As a newbie, I followed this link: http://www.blakeerickson.com/posts/2013/04/07/how_to_correctly_configure_ubuntu_to_run_lithium_php and this link: http://li3.me/docs/manual/quickstart to install and run the Lithium tutorial. Everything is OK until…
tak-po li
  • 85
  • 4
1
vote
1 answer

How to structure routing in an Angular js and Lithium app?

So I am planning out an app of moderate complexity using Angular for the frontend and Lithium for the backend. I'm full of questions at this point, but for this post I would like some ideas on templating. Both lithium and Angular have the capacity…
Askdesigners
  • 419
  • 5
  • 15