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

In Lithium Is it possible to use db specific functions in Model::create?

Similar to what you can do in a find call: Calling MySQL functions in Lithium I would like to be able to do this: $result = Model::create(array( 'geoFunctionResult' => "GeometryFromText('POINT({$this->request->data['longitude']}…
Ketema
  • 6,108
  • 3
  • 21
  • 24
0
votes
1 answer

virtual attributes with validators, splitting/joining a column value to create them

I have an existing SQL table the schema of which I cannot modify, and I would like to create a Lithium data model for it. The problem is that one column contains multiple "fields" separated by a special character. E.g. data = "username|email|age" I…
Csongor Fagyal
  • 514
  • 2
  • 10
0
votes
1 answer

multiple models, same table in lithium

I have a bunch of DNS records in a table, where the "type" column defines the type of the given record. I would like to have a class hierarchy of models in Lithium representing these records such as: RR - base resource record (abstract - sort of) …
Csongor Fagyal
  • 514
  • 2
  • 10
0
votes
1 answer

Lithium: How Document->save() or Record->save() works

In lithium, document and record classes, or their superclasses/interfaces, have no save() method. Yet lithium's method for saving the record is as follows: $record = Model::create() $record->save() I am not certain how this works, since record…
Mr. Zen
  • 704
  • 3
  • 7
  • 17
0
votes
1 answer

Lithium & MongoDB: Finding documents by date range

I have numerous documents containing a field called "date" which is simply a unix timestamp. whithin lithium, i want to find all documents in a given date range. i'm currently trying the following: //$_stats contains two \DateTime objects which are…
aeno
  • 560
  • 5
  • 24
0
votes
1 answer

lithium add an external js file to view

in cake we use $this->html->script('jsfilenamewithdotjs'); to add an external js file to a view How'd we do that with lithium
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
0
votes
1 answer

Url masking through htaccess not working

I was trying to setup Lithium Php framework. I followed the documentation for getting started. I have done this: *"make sure mod_rewrite is enabled, and the AllowOverride directive is set to 'All' on the necessary directories involved. Be sure to…
0
votes
2 answers

How do I render favicons in Lithium?

How would I render favicons in Lithium? Right now I have this in my layouts: html->link('Icon', null, array('type' => 'icon')); ?> However, the favicon doesn't show up. Attempting to view the favicon resource via Chrome Inspector…
Housni
  • 963
  • 1
  • 10
  • 23
0
votes
1 answer

Lithium & phpActiveRecord - are my ACL associations correct?

I'm using Lithium with phpActiveRecord using li3_activerecord. It's been a few years since I got back into ORM's and associations and I'm a little confused with my current ACL setup. Here are my tables and their associations, simplified for…
Housni
  • 963
  • 1
  • 10
  • 23
0
votes
2 answers

proper use of call_user_func_array

I'm attempting to extend Lithium PHP with smarty, everything is working except my smarty plugin to allow access to lithium helpers. My smarty function is meant to be a "catchall" for lithium helpers. The part I'm struggling with is dynamically…
joseym
  • 1,332
  • 4
  • 20
  • 34
-1
votes
1 answer

why do the source code located on app/resources/tmp/cache folder ?

I'm new in lithium. I have a lithium codes, and i want to change it a bit. so, my idea was to search in the all source code for specific code that i want to change (e.g. tag>), and i found it in the app/resources/tmp/cache subfolder. why do the…
-1
votes
1 answer

How can I set up m:n relationships in lithium?

I have 3 tables in my MySQL database: books (id, title) keywords (id, keyword) books_keywords (book_id, keyword_id) What is the best way to set up models and controllers in li3 to retrieve book titles with their keywords?
leknas
  • 1
  • 1
-1
votes
1 answer

Approach and recommendations to implement a modular web application in php

I'm looking at implementing a hospital application in php with a couple of sub applications within it as modules. The application will have modules like pharmacy for handling issues of stocking, dispensing and sale of drugs; laboratory for handling…
-1
votes
1 answer

Class not found error in Lithium Framework (li3)

I am using Lithium Framework. I am trying to call class into a controller, that class is placed inside libraries folder.... But it is showing this error Fatal error: Class 'app\libraries\Test' not found in…
Ali Mehdi
  • 884
  • 1
  • 11
  • 33
-1
votes
1 answer

How do I install lithium framework without git?

My webhost doesn't have git installed (I know, I know). I have downloaded the source code to the lithium project. How do I configure this to work on my webhost? I need the lithium core? Where does this go in relation to my www dir? I'm familiar with…
Harry Moreno
  • 10,231
  • 7
  • 64
  • 116
1 2 3
20
21