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
0 answers

I am getting 'assertCookie' failed errors in the Lithium Test Dashboard

I installed a fresh Li3 using this command from the installationguide: composer create-project --prefer-dist unionofrad/framework project Afterwards i ran all tests to see if Lithium is working correctly and got the following errors in the Lithium…
1
vote
0 answers

Lithium: New command don't work

I've acted in accordance with this guid Link. Then, I created Repos.php file in /app/extensions/command/ And run li3 in command line but do not see the following message: COMMANDS via app repos I see the following text only: Lithium console…
user5810066
1
vote
1 answer

Detecting subdomain in Router::connect

I'm busy with building a website with an admin-area in the Lithium PHP Framework. However, I would like to access the admin area via a subdomain like: https://admin.mywebsite.com/{:controller}/{:action}/... I've made a subdirectory in the…
1
vote
1 answer

$t function does not work in lithium email template

I have a email template onecode.mail.php Which I call from $body = $view->render( 'template', compact('users','oneCode','username'), array( 'controller' => 'users', 'template'=>'onecode', 'type' => 'mail', …
Nilam Doctor
  • 491
  • 7
  • 18
1
vote
1 answer

Flask view methods and SRP

I've seen a pattern in Flask (and Lithium) where a single view method corresponds to multiple HTTP verbs; example: @app.route('/login', methods=['GET', 'POST']) def login(): error = None if request.method == 'POST': if…
1
vote
1 answer

Server error 500 using lithium framework and mongodb

I seem to get the 500 error when trying to query the database (mongodb) if I remove the query it display the view fine. From using the quick start guide and other online tutorials I carnt see that I am doing anything wrong. Model -…
Connor Brough
  • 579
  • 1
  • 9
  • 24
1
vote
2 answers

How to add a simple flow rule via OpenDaylight DLUX using the /operations/sal-flow:add-flow api

I am trying to add a simple flow rule via Lithium's DLUX using the /operations/sal-flow:add-flow api call but getting nothing but errors, please can someone help? Even a preview of a sample flow someone has added would be really helpful? My current…
alex321
  • 11
  • 2
1
vote
2 answers

Adding meta tags in header in Lithium PHP

I am trying to add meta data tags in header, this is my code: app/extensions/helper/FacebookHtml.php '
1
vote
1 answer

Extending helper functions in Lithium

I want to use this code to extend the form helper class, can someone explain where I need to save the code and how to make sure it gets included when I create my forms. Currently I've saved it to extensions/helper/Forms.php and then calling it…
Stephen
  • 15
  • 3
1
vote
1 answer

Implementing my own utility functions in Lithium?

I am a newbie to Lithium PHP and know the basics of Lithium. I want to implement my own Utility functions. I have created the utilities folder parallel to app\controllers. This is how my class looks like:
Rutwick Gangurde
  • 4,772
  • 11
  • 53
  • 87
1
vote
1 answer

How to get base URL in a Lithium template/view?

I want to access a folder named 'Videos'. It is placed parallel to images/scripts etc. I can send the base url in a variable from the controller but it doesn't make sense. Is there a way I can access the folder in a template/view?
Rutwick Gangurde
  • 4,772
  • 11
  • 53
  • 87
1
vote
1 answer

Loading a lithium library only in certain environments

I have added li3_docs (https://github.com/UnionOfRAD/li3_docs) to my application but I don't want this library to load in production environment. What is the best way to prevent the docs from being available in production environment? Initially I…
GoldiDot
  • 13
  • 2
1
vote
1 answer

Li3: Find filter in parent class not triggering when child calls find()

This is a question on Li3 philosophy. I have a child class, trying to run find() on a parent class which as a filter on its find() but that doesn't get executed when the child calls find(). I have a Members model extending a Users mode. The Users…
Housni
  • 963
  • 1
  • 10
  • 23
1
vote
1 answer

Lithium form helper HTML template

I want to generate a) When writing b) I believe That Is possible with form helpers / templates . a)
obinoob
  • 677
  • 4
  • 13
  • 34
1
vote
1 answer

li3 Post::all(); not returning all documents

I am going through lithum's quick start guide and I am having an issue displaying all the posts saved to my Mongo database. I have setup my PostsController like so:
DMcP89
  • 705
  • 2
  • 10
  • 26