Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Load controller from another controller
Post: RE: Load controller from another controller

take a look here - it should fit your need https://github.com/bcit-ci/CodeIgniter/wiki/Phil-Sturgeon's-Template-Library https://github.com/philsturgeon/codeigniter-template
29,566 Views
12 Replies
07-23-2019, 11:19 PM
sintakonte
    Thread: Codeigniter 3 Model best practices
Post: RE: Codeigniter 3 Model best practices

this isn't trivial at all, and i'm unsure about your level but i'll try ... First of all - i strongly suggest the use of objects (respective classes) in any circumstance - because of its flexibilit...
7,741 Views
3 Replies
07-23-2019, 08:20 AM
sintakonte
    Thread: Primary Key
Post: Primary Key

Hey guys, i started the implementation process of the already discussed variant of structuring data (https://forum.codeigniter.com/thread-71733.html) in an automated way. Maybe i'm blind, but ho...
1,426 Views
0 Replies
01-21-2019, 02:50 AM
sintakonte
    Thread: Best way to load header and footer once globally?
Post: RE: Best way to load header and footer once global...

Phil Sturgeon once wrote a library which should fit your needs take a look @ https://github.com/philsturgeon/codeigniter-template it supports layouts, partials and so on A documentation can b...
22,882 Views
8 Replies
10-08-2018, 11:00 PM
sintakonte
    Thread: [split] Arguing for an ORM
Post: RE: [split] Arguing for an ORM

alright i try to describe it in a pictured way i came up with this topic because i saw the development in CI4 - your new model structure represents already about 70% of our current CI3 solution - a...
17,242 Views
14 Replies
09-18-2018, 01:49 AM
sintakonte
    Thread: [split] Arguing for an ORM
Post: RE: [split] Arguing for an ORM

lazy loading is mandatory in this regards - and for larger growing projects is this approach perfect, i took a look right now in one of our  projects - currently we've 254 resource Models (each model ...
17,242 Views
14 Replies
09-17-2018, 07:07 AM
sintakonte
    Thread: [split] Arguing for an ORM
Post: RE: [split] Arguing for an ORM

to be honest i don't really care if this (possible) solution is called ORM or not - but in my opinion we all handle data - and we all do it in different ways - which is probably good so - but all data...
17,242 Views
14 Replies
09-17-2018, 04:04 AM
sintakonte
    Thread: [split] Arguing for an ORM
Post: [split] Arguing for an ORM

The thing with an ORM is - it helps you structure your data (and i'm not talking about doctrine, propel or any other siwss army knifed constructions) it doesn't really depend on which database you ...
17,242 Views
14 Replies
09-17-2018, 12:39 AM
sintakonte
    Thread: Form Validation - returns "(Anonymous function)"
Post: RE: Form Validation - returns "(Anonymous fun...

i dont understand what you mean @ciadmin  but nevertheless i solved the problem and it whas on my side i needed to wrap the rule to an additional array after that it worked fine (i just though...
4,759 Views
3 Replies
03-14-2018, 01:37 AM
sintakonte
    Thread: Form Validation - returns "(Anonymous function)"
Post: Form Validation - returns "(Anonymous function)"

Hey guys, i migh've found some bug. In the docs there is a section called Callable use anything as a rule (https://www.codeigniter.com/user_guide/libraries/form_validation.html?highlight=form_va...
4,759 Views
3 Replies
03-13-2018, 06:57 AM
sintakonte
    Thread: View Layouts - Input Desired
Post: RE: View Layouts - Input Desired

i don't know isn't it better to use an output manager or something like that ? That whole "echo" thing looks a bit weird i think. Phil Sturgeon did a pretty good job with his Template Library imho...
18,207 Views
10 Replies
07-11-2016, 07:13 AM
sintakonte
    Thread: CI3: Apache vs Lightspeed Server
Post: RE: CI3: Apache vs Lightspeed Server

i don't think apache is your problem here  i took a quick look at one of our projects with ~10k registered Members in a B2B Shop and between 3k and 4k Orders / day we've peak time now (its a CI3 A...
6,590 Views
4 Replies
07-07-2016, 02:30 AM
sintakonte
    Thread: At what point do you seperate things into different models?
Post: RE: At what point do you seperate things into diff...

i would leave this in separate Models If i understand you correctly a possible approach could be, to work with collections - below you see an example (i simple wrote it in notepad down now - so there...
17,519 Views
14 Replies
06-22-2016, 05:05 AM
sintakonte
    Thread: wiredesignz Moduler Extension HMVC
Post: RE: wiredesignz Moduler Extension HMVC

ivantcholakov Wrote: (05-05-2016, 05:07 PM) -- Q. Any security issues with HMVC? A. Make sure, the controllers/widgets you create (and call with Modules::run(...)) are not accessible by the browse...
8,394 Views
5 Replies
05-09-2016, 08:07 AM
sintakonte
    Thread: My web app is slow
Post: RE: My web app is slow

not sure if this is location dependent but i called http://macmetro.com/ajax/get_models/2/ 10 times in a row: The response times were between 1.2 and 5 seconds which is far too slow...
12,459 Views
9 Replies
04-11-2016, 07:11 AM
sintakonte
    Thread: Passing instance objects between controller and model
Post: RE: Passing instance objects between controller an...

in order to prevent include_once calls we made a pre controller Hook which autoloads those classes  and all classes are stored within a new folder called objects inside the application directory ...
8,950 Views
4 Replies
03-23-2016, 06:01 AM
sintakonte
    Thread: Site-wide variables not available in controller/model files
Post: RE: Site-wide variables not available in controlle...

besides the principle debate - if you want to have your variables in your CI Environment - a possible idea would be: create a site-vars.php in your config folder something like (you've to adjust t...
9,270 Views
5 Replies
03-23-2016, 05:31 AM
sintakonte
    Thread: Codeigniter and ajax query involving one more view
Post: RE: Codeigniter and ajax query involving one more ...

just out of curiosity you wrote: $this->view->load('list_promo_estab_ajax', $data); shouldn't it be $this->load->view('list_promo_estab_ajax', $data); or was it a typo? ;) check that @first, if it...
3,636 Views
2 Replies
12-29-2015, 02:08 AM
sintakonte
    Thread: [Solved] Populate select dropdown with correct number of days when select month.
Post: RE: Populate select dropdown with correct number o...

no offense but you should've found the typos in the script by yourself Code: -- $('select[name="month"]').on("change", function() { var year = $('select[name="year"]').val(); if (year > 0) ...
21,004 Views
8 Replies
12-21-2015, 04:58 AM
sintakonte
    Thread: [Solved] Populate select dropdown with correct number of days when select month.
Post: RE: Populate select dropdown with correct number o...

you should do this via javascript - it doesn't have much to do with CI, i think if you use jquery you can try something like this (untested just wrote it down) Code: -- $('select[name="month"]')....
21,004 Views
8 Replies
12-21-2015, 04:31 AM
sintakonte

Theme © iAndrew 2016 - Forum software by © MyBB