How to Develop Codeigniter Admin Panel - codeigniter

Hi i'm new to codeigniter.
I have developed this website using CI.
http://maxmovies.in/fattto
Now i want to create the admin panel for this website.
I want the url like this to access the admin panel.
http://maxmovies.in/fattto/admin/
First i thought adding a admin controller and proceed with that.
But my back-end will have around 25 pages.
I don't think adding 25 functions in the single controller is not
good idea.
I searched and got some tutorial but i'm not clear with that.
So can any one help me to config the admin panel for my website?
Thanks to all and sorry for if my english is not good.

create fattto/admin folder in controller view and module and set all code in this folder
when u write http://maxmovies.in/fattto/admin/ it open admin panel whatever code u write

You could organise your controllers into sub-folders, which would give you the desired effect.
The use of Routing could also help you achieve what you want, which will allow you to map a URL to a particular controller/method.

Related

Broadleaf - Extending DemoSite Admin - Add new Menu and Page

I have been looking into Broadleaf since last couple of days. I have managed to run it on local tomcat with MySql. I have extended Entity for my custom requirement following Broadleaf's documentation.
Now I want to add a menu option (in left menu) in admin. I have no clue from where Broadleaf admin site displays the web page. How left menu is displayed ? How data from controller are binding with view ?
For example, if you access product page in broadleaf admin section, then URL will be http://localhost:8081/admin/product/. Following it I managed to know that it calls AdminProductController.java of framework's admin module. I looked at the code of AdminProductController.java but didn't get a clue how data is being forwarded to view. Also didn't find the product jsp/template/html.
I guess admin module is using EntityForm.java for view. If I intend to use simple jstl then is it possible?
My question how easily I can extend admin of Heat Clinic demo site to add new pages, menu items etc? If anyone has customized/extended demosite admin then please suggest.
We have some docs on how to do this at http://www.broadleafcommerce.com/docs/core/current/broadleaf-concepts/admin/admin-custom-controllers. The bottom line here is that if you want to add a new page then you can simply use normal Spring MVC as you would on the frontend. The only difference is that there are some specific ways to place new template files (which is documented on that page).
To answer your question, most URLs in the admin are handled dynamically by the AdminBasicEntityController. Most of the sections are handled generically by this controller but there are still certain instances where we needed to override things specifically, like with AdminProductController.
Also, the admin is built with Thymeleaf and not JSPs so if you want to add more pages they will need to be done with Thymeleaf.

Croogo - allows users to add a pictures on a blog site

I am a new user of Croogo. I need to create a website, like a blog, where users can post and add pictures.
But I don't know how can I proceed, the admin can post trough the admin panel but what about users ? Which function should I use ?
I didn't found any tutorial on the web and I don't know how it works.
Thanks you for your help.
Better try to create it in the Vendor/croogo/croogo/Nodes path in the respective controller and view folder. You can start from here. Hope this will help you.

How to add simple custom form to magento admin panel

First of all let me clear what i want to do, here is my problem. I have my magento project running on server. Now my client is asking me to add a module like this, please have a look
http://www.chinaglaze.com/Try-On/index.html
Also he want that he can manage images and color codes from the Magento Admin panel. I have not much experience in magento extension development.
Please provide me reference if there is any magento extension already exist so that i can use that other wiase how to do it.
If you want a Magento frontend view which is admin manageable (with your own custom database tables) try this piece I wrote: link. Hope it suits you.
You should add a custom module to add that.
Check this link
http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_create_an_admin_form_module

Django multi-image upload in admin panel with ajax - some example

I find many articles with multi-image and plugins:
https://github.com/blueimp/jQuery-File-Upload
https://pypi.python.org/pypi/django-multiuploader etc.
But I don't know how use it in django admin when I have ImageField. I want to do gallery.
Now I have inline adding image in albums. Please help me and give some full example :) (I'm newbie)
We use django-jfu to upload many files outside the admin.
Interfacing to the admin is certainly possible by creating a custom admin method to invoke jfu. Add a completion button to the jfu upload page that creates the desired db records when the user is done uploading files. These would then be available within the admin.

Magento - Allow user to manage social media URLs

Ok so I’m trying to implement social media into the footer. However, they are images that change color when hovered over that I’m working into the CSS.
But my question is, if the end user changed their Facebook URL, how will they update the url? I obviously can’t just put it directly into the theme because then the end-user will know how to program and where to look just to change the URL.
How do I go about implementing this the right way so the end-user can update their social media URLs to their Facebook/Twitter/YouTube/Etc easily..?
What do you mean by saying "user changed their Facebook URL"?
You talking about customer or administrator?
If you mean administrator, then the you can create custom settings for social media links
For customers store theirs social uids
In order to do this, you will need to create an extension, albeit not a very complicated one. If you've never done this before, Alan storm wrote an excellent tutorial.
One file that is often included in extensions (but seems not to be mentioned in the above mentioned tutorial) is etc/system.xml. This file lets you define a new page in the System->Configuration section of the Magento admin panel. Magento provides a good tutorial on writing those.
Any fields you put in etc/system.xml will be modifiable in the Magento admin panel, and you can access them anywhere in your code with Mage::getStoreConfig('your extension's name/the name of the field'), e.g., Mage::getStoreConfig('facebook/enabled');

Resources