Search Results
Post Author Forum Replies Views Posted [asc]
    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/w...te-Library https://github.com/philsturgeon/codeigniter-template
sintakonte Best Practices 12 12,695 07-23-2019, 11:19 PM
    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 flexibility ...
sintakonte Best Practices 3 4,150 07-23-2019, 08:20 AM
    Thread: Primary Key
Post: Primary Key

Hey guys, i started the implementation process of the already discussed variant of structuring data in an automated way. Maybe i'm blind, but how can i define a primary Key in a model with more than...
sintakonte CodeIgniter 4 Support 0 740 01-21-2019, 02:50 AM
    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 be foun...
sintakonte Best Practices 8 9,395 10-08-2018, 11:00 PM
    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 - and...
sintakonte CodeIgniter 4 Feature Requests 14 7,948 09-18-2018, 01:49 AM
    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 ...
sintakonte CodeIgniter 4 Feature Requests 14 7,948 09-17-2018, 07:07 AM
    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...
sintakonte CodeIgniter 4 Feature Requests 14 7,948 09-17-2018, 04:04 AM
    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 us...
sintakonte CodeIgniter 4 Feature Requests 14 7,948 09-17-2018, 12:39 AM
    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 thought i d...
sintakonte Issues 3 2,432 03-14-2018, 01:37 AM
    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 I've an object where i do the following PHP Code:$this->ci()->load->model('adm...
sintakonte Issues 3 2,432 03-13-2018, 06:57 AM
    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. D...
sintakonte CodeIgniter 4 Feature Requests 10 10,315 07-11-2016, 07:13 AM
    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 App)...
sintakonte Best Practices 4 3,750 07-07-2016, 02:30 AM
    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 ...
sintakonte Best Practices 14 9,656 06-22-2016, 05:05 AM
    Thread: wiredesignz Moduler Extension HMVC
Post: RE: wiredesignz Moduler Extension HMVC

(05-05-2016, 05:07 PM)ivantcholakov Wrote: Q. Any security issues with HMVC? A. Make sure, the controllers/widgets you create (and call with Modules::run(...)) are not accessible by the browser. Se...
sintakonte Best Practices 5 4,688 05-09-2016, 08:07 AM
    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...
sintakonte General Help 9 7,047 04-11-2016, 07:11 AM
    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 PHP ...
sintakonte Best Practices 4 5,951 03-23-2016, 06:01 AM
    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 the ...
sintakonte Best Practices 5 5,883 03-23-2016, 05:31 AM
    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? ...
sintakonte Best Practices 2 2,322 12-29-2015, 02:08 AM
    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...
sintakonte General Help 8 13,142 12-21-2015, 04:58 AM
    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"]').on("...
sintakonte General Help 8 13,142 12-21-2015, 04:31 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.