Get administrator component value from the front-end - joomla

How can I get a specific value from a component in the administrator from the front-end without using the database?

I have found the solution:
JComponentHelper::getParams('component_name')->get('field_name');
Hope this helps people out :).

Related

Is it possible to set content related permissions on cartalyst/sentinel?

i'm new to laravel and cartalyst/sentinel, but for this project i'm facing out an authorization problem:
I have to set User CRUD permissions for the single content, and i'm facing out how to do id with cartalyst/sentinel.
(a lil' example: if i have a blog, i wanna set User CRUD permissions separately for each article).
Can anyone help me to find some documentation about something like this?
I have already implemented this kind of permissions with CakePHP, but is the first time i'm using laravel.
Thank You
The way I think you'd best go about this is by setting the users permission by using the article ID. You could give a user permissions like this: "articles.14.read":1,"articles.24.*":1. 14 & 24 being IDs of articles I made up.
At the last seems noone never has been capable to solve this problem, and i cant test the solution proposed. So i've falled back to the ACL stock support of Laravel 5.0.
Baybe i'll retry when i need the multisession system or other things from sentinel.

Magento : the cart is always empty

I've been looking for several days now and the problem is stil there.
I'm running the following version of Magento :1.9.0.1
I do not experience any particular problem on local (using Mamp). But on my production server my cart page (beginning of the checkout process) is always empty no matter the number of items i try to add inside my cart.
I tried lots of different solution posted on many websites but nothing seems to solve it (since this is working on local it might be a server configuration problem).
Any suggestion ?
Thank you
(Ps: English is not my main language so i'm sorry for the poor syntaxe).
Are you able to login to the site?
Just check in the backend. System->Configuration->Web->Session cookie management
Whether there is a wrong value set for cookie domain
I finally found the answer. The problem was related to a theme template module. I remove the module and it's working now.
Ty

Laravel 4 How to use Authority package

I have created model User and table users to store user information
I also have executed the migration script.
I have no idea how to log user in and make authority recognize the user.
I really need tutorial or sample application or anything that could help.
Thanks for reading.
Your help are much appreciated
Unfortunately there are a couple of steps to many to describe here, but just have a look at http://net.tutsplus.com/tutorials/php/authentication-with-laravel-4/.

Session issue in codeigniter for arabic character

I am just stuck with a issue regarding session. I have a multilingual ecommerce site for english and arabic language. In case of arabic language when someone registers with a arabic name, description or such fields s/he can register successfully. But during login the session data being lost.
Actually when setting all the data into a session array its being stored and i tested it by printing the array. But after the valid authentication when user being redirected to index page or profile page then the session array disappears. The full array being lost. and login doesnt working. Its only happening for someone who has arabic fields on their data. for english its perfectly ok.
I have removed the session.php from syatem/libraries directory. Then it works only on localhost, on server it creates problem when ordering or viewing items of a particular org.
Any suggestion will be accepted cordially.
Thanks
Thank u so much all of u for your reply.... and my issue has been solved.
Unfortunately my session table user_data field collation was not utf8_unicode. Thats why the data was being lost when it redirects to home page. Since it is using the ci_session table. Its working now nicely.
Before posting the question i have tried using native session, updated the Session.php file on system/libraries....But haven't got the perfect solution.
But finally could have figured out the silly mistake and done with the issue.
Cheers to all....:D
Thanks
Please try to use Native Session instead of default CI_Session and see if your problem will be solved?
Here is a link for you:
https://github.com/appleboy/CodeIgniter-Native-Session

Joomla Custom component with sample form in admin

I need a sample form in administrator having add,edit,delete options to manage "success stories" in my web app.
I searched to get sample component to install.
If i get that, i will change form according to my app & table too.
Please help me by giving link resource that suits my requirement. I am sorry to ask this, i am new to joomla.
Thanks in advance,
Sunil.
Take a look at the Joomla Component Creator: http://www.notwebdesign.com/joomla-component-creator/

Resources