frameworks
Can a Controller have database queries (MySQL)? If yes, when?
I am reading lots of tutorials on MVC, so my question, can a perfect PHP MVC framework have database queries in Controller? As I understand, the most comfortable way is to put all database queries in[详细]
2023-04-01 07:11 分类:问答Programmatically updating/editing an attribute's option in Magento
I have an attribute called \"vendor_id\". I have N products that have the \"vendor_id\" as an attribute of the product. The options for the \"vendor_id\" attribute are being generated programmatically[详细]
2023-04-01 03:32 分类:问答printer driver implementation in java
I need to implement a custom printer driver which does the following in the backgroud: Create a PDF document of the document to print[详细]
2023-04-01 00:31 分类:问答Codeigniter controllers: POST with private functions or no-POST with public functions?
With security in mind is it best to (for codeigniter apps): Have a controller that checks for POST input and then delegate to private functions.[详细]
2023-03-31 19:54 分类:问答How to get data from database with kohana?
Hy! I configured the modules/database/database.php file. In controller/index.php I have: $query = DB::query(Database::SELECT, \'SELECT * FROM posts ORDER By id DESC\');[详细]
2023-03-31 19:34 分类:问答Getting error: undefined variable; what to do?
I use the Kohana 3.2 framework.开发者_如何学运维 I have one variable with a static string. Code for index.php controller:[详细]
2023-03-31 13:21 分类:问答Why Java frameworks do not enforce use of interfaces?
I was just wondering, why there is no interface for a Spring Bean or for a EJB Bean (or for an OSGi service)? I know that there is no need for this because frameworks can use reflection API for callin[详细]
2023-03-31 13:12 分类:问答ArgumentError in ImagesController#index but appliaction trace is empty
I am calling the index action for a class which gives the following error: Started GET \"/images\" for 127.0.0.1 at Sun Aug 28 06:14:41 +0200 2011[详细]
2023-03-31 11:53 分类:问答PHP cli micro-framework?
I want to program a little CLI script in PHP, basically with two possible arguments to do two different things. Very easy. But I would like to do in an elegant way.[详细]
2023-03-31 08:18 分类:问答Sencha Touch: Problem loading form: Cannot read property "OffsetBoundary of undefined"
So I have a form and its respective store. The store works fine and it keeps the data in localStorage, but when I open the app again and try to update the form with the data from localStorage it doesn[详细]
2023-03-31 07:51 分类:问答