Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Calculate value with data from another model
Post: RE: Calculate value with data from another model

I think controllers are only for retrieving the data from the model. What if i need the calculation in many other controllers?
2,417 Views
6 Replies
03-29-2020, 06:38 AM
groovebird
    Thread: Calculate value with data from another model
Post: Calculate value with data from another model

Hi, this is code from my seminar model: PHP Code: -- // Seminar Model public function find_by_id($id) { $this->load->model('Seminar_date_model', 'seminar_date'); $query = $this->db->where...
2,417 Views
6 Replies
03-29-2020, 05:08 AM
groovebird
    Thread: Transactions and db_debug
Post: Transactions and db_debug

Hi, i want to use transactions. For testing i executed a wrong query. Then the script aborts and i can't show a message or hint to the user. Can i disable db_debug for a specific controller or acti...
1,124 Views
0 Replies
05-03-2017, 12:34 PM
groovebird
    Thread: Exlude particulary areas from the cache
Post: Exlude particulary areas from the cache

Hi, is it possible to exclude some specific areas from the cache? As an example, i want to show an historylist at the bottom of the page. This area should not be cached. How can i do this?
1,033 Views
0 Replies
08-27-2016, 02:10 AM
groovebird
    Thread: How to implement reusable widgets?
Post: RE: How to implement reusable widgets?

Hi, this sounds good but is it possible to implement this in an existing application?
2,500 Views
3 Replies
06-13-2016, 02:29 PM
groovebird
    Thread: How to implement reusable widgets?
Post: How to implement reusable widgets?

Hi, i want to display the product top ten on several pages. What is the best way to do that? The data are stored in a database. Should i create a function in my_controller or is there another way (...
2,500 Views
3 Replies
06-13-2016, 01:03 PM
groovebird
    Thread: Routing 2 similar url pattern on different controller
Post: Routing 2 similar url pattern on different control...

Hi, i have two groups of urls which should be routed on 2 different controllers. the problem is, they have the same pattern. Example: new-products and our-products. this is the same pattern [:an...
1,443 Views
1 Replies
05-26-2016, 01:14 PM
groovebird
    Thread: How to use my own library multiple times
Post: RE: How to use my own library multiple times

ok, thank you. :-)
6,341 Views
8 Replies
11-02-2015, 03:37 PM
groovebird
    Thread: How to use my own library multiple times
Post: RE: How to use my own library multiple times

Hi, ciadmin Wrote: (11-02-2015, 01:49 PM) -- Approach that will work for you, with your source in application/libraries/Pricecalculator.php : $this->load->library('pricecalculator'); $a = new ...
6,341 Views
8 Replies
11-02-2015, 02:05 PM
groovebird
    Thread: How to use my own library multiple times
Post: RE: How to use my own library multiple times

Hi, i have to use this lib for every combination of a product and a rate and on the page i show many combinations of this.
6,341 Views
8 Replies
11-02-2015, 12:43 PM
groovebird
    Thread: How to use my own library multiple times
Post: RE: How to use my own library multiple times

Hi Paul, thank you. I know this, but in the CI-doku i read, that i can pass parameters: PHP Code: -- $this->load->library('library_test','param'); -- But if i need this library multiple t...
6,341 Views
8 Replies
11-02-2015, 12:22 PM
groovebird
    Thread: How to use my own library multiple times
Post: How to use my own library multiple times

Hi, for an price calculator i want to create my own library. The calculator gets 2 parameters, an product-object and an rate-object. For multiple products (e.g. in a list) i have to call this lib m...
6,341 Views
8 Replies
11-02-2015, 09:46 AM
groovebird
    Thread: Problems with doctrine
Post: RE: Problems with doctrine

Ok, i worked only with Entites\User :-)
2,098 Views
1 Replies
09-06-2015, 12:16 PM
groovebird
    Thread: Problems with doctrine
Post: Problems with doctrine

Hi, i want doctrine give a try. In my controller there is the following code: $em = $this->doctrine->em; $users = $em->createQuery('SELECT u FROM User u')->getResult(); The User-Class is in...
2,098 Views
1 Replies
09-06-2015, 11:59 AM
groovebird
    Thread: Query results - passing a string
Post: RE: Query results - passing a string

yes that works fine, but i dont know how to use this get-methods. In this methods i can format the output of some values. now i have only the raw value from the db.
4,548 Views
7 Replies
08-31-2015, 12:21 PM
groovebird
    Thread: Query results - passing a string
Post: RE: Query results - passing a string

Hi, does anybody know how this custom_result_objects work with a join of tables? Lets say i have a users and location table. As a result i get the user-object. Then i have access to my user->get_...
4,548 Views
7 Replies
08-30-2015, 04:26 AM
groovebird
    Thread: Passing data to a subview
Post: RE: Passing data to a subview

mwhitney Wrote: (08-28-2015, 11:47 AM) -- I must have misunderstood, because I thought you said you prefer not to call $this->load->view() in your view. -- You understand me completely right, but i...
6,781 Views
7 Replies
08-28-2015, 12:06 PM
groovebird
    Thread: Passing data to a subview
Post: RE: Passing data to a subview

Hi, that works, but i have to pass the data-array twice. Would it be the better way to call this->load->view directly in the view (like my first example)?
6,781 Views
7 Replies
08-28-2015, 11:32 AM
groovebird
    Thread: Passing data to a subview
Post: Passing data to a subview

Hi, i have a subtemplate with the following content: Code: --     -- and this is my controller: PHP Code: -- $view_data['subview'] = $this->load->view('subview',NULL,true); $vie...
6,781 Views
7 Replies
08-28-2015, 11:14 AM
groovebird
    Thread: Sharing a feature in more than one controller
Post: RE: Sharing a feature in more than one controller

Thank you. This works fine. I havn't done so much with CI and sometimes don't know what keywords to use for searching. But this forum is great.
4,465 Views
3 Replies
08-26-2015, 01:10 PM
groovebird

Theme © iAndrew 2016 - Forum software by © MyBB