Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Single model per aplication .
Post: Single model per aplication .

Is there any drawbacks in using a single model extending basemodel per aplication ,? Code:class Basic_Model extends CI_MODEL { private static $instance;     function __construct() {         // C...
tony.a CodeIgniter 3.x 1 726 06-25-2020, 04:11 PM
    Thread: IDEA: Centralized userId
Post: RE: IDEA: Centralized userId

Ci4 should provide full featured user class as service ( with extenal api login ) and let other implementations as jwt .. etc to be handled in a module
tony.a CodeIgniter 4 Feature Requests 11 5,962 10-17-2019, 04:01 AM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

https://twenty-tech.com/laravel-quick-pe...ncepart-1/ https://akrabat.com/slims-route-cache-file/ Allow  router and subrouter to cache and load all routes  at once
tony.a CodeIgniter 4 Discussion 12 5,008 09-13-2019, 01:39 AM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

Main problem for me in ci4 (or i cannot see the solution) is to use the router class and router collection as "subrouter" to split the routes Scenario Dinamic Front router (load routes from modules...
tony.a CodeIgniter 4 Discussion 12 5,008 09-12-2019, 11:47 PM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

At 40 mb and 1 sec  is not an option for sure . trying not to hit the database to find the first segment and query various tables. Is a Region ? Is a city ? Is a category ? Is a subcategory ? Is a pa...
tony.a CodeIgniter 4 Discussion 12 5,008 09-12-2019, 12:02 PM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

[quote pid='367285' dateline='1568308620'] Instead of  [/quote] communes/{id}  I wanna have  www. Mywebsite. Com /paris Mywebsite/lyon Mywebsite/paris/for-sale Mywebsite/paris/for-sale/asc... params ...
tony.a CodeIgniter 4 Discussion 12 5,008 09-12-2019, 10:22 AM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

symfony version 4.3 -4.4 symfony has second higher memory usage  after ci4.  Symfony not my favorite, request class is also fat eating a lot of memory France has  36,681 communes, 101 departments, 26 ...
tony.a CodeIgniter 4 Discussion 12 5,008 09-12-2019, 10:07 AM
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

The test is little rigged . Ci4 match last route symfony random route. But the problem remains . Ci4 router is kinda slow in both :adding routes and matching routes
tony.a CodeIgniter 4 Discussion 12 5,008 09-12-2019, 01:36 AM
    Thread: Service singletons
Post: RE: Service singletons

Whats your opinion about providing only singletons in services lib and leave new class instance to developer .
tony.a CodeIgniter 4 Discussion 3 1,344 09-11-2019, 03:37 PM
    Thread: Benchmarking Ci4 router
Post: Benchmarking Ci4 router

Benchmarking Ci 4  router vs Symfony router ..... 35 000 routes most of them static  results  Ci 4 PHP Code: Code:Array (     [map_codeigniter] => Array         (             [duration] => 0.2...
tony.a CodeIgniter 4 Discussion 12 5,008 09-11-2019, 03:22 PM
    Thread: Service singletons
Post: Service singletons

Is there a reason why router ,routescollection,incomingrequest,response classes shoudn't be accesed just as singletons  inside Service class ?  Also instantiations done inside private constructor ?
tony.a CodeIgniter 4 Discussion 3 1,344 09-10-2019, 09:24 AM
    Thread: Never ending testing ENVIRONMENT
Post: RE: Never ending testing ENVIRONMENT

At least a branch where there is none of those
tony.a CodeIgniter 4 Discussion 7 2,637 05-07-2019, 02:13 PM
    Thread: Never ending testing ENVIRONMENT
Post: RE: Never ending testing ENVIRONMENT

I mean 30% of routing time(no opcache)  is switching  Enviroment and checking if is cli .  Imagine yourself   a big boys script (facebook,etc )  checking  17 times (if Enviroment == testing) in produc...
tony.a CodeIgniter 4 Discussion 7 2,637 05-07-2019, 02:07 PM
    Thread: Routes 4.0.0-beta.2
Post: RE: Routes 4.0.0-beta.2

but seems that Config\Routes is loaded twice .. see pictures
tony.a CodeIgniter 4 Support 4 1,829 05-04-2019, 11:46 PM
    Thread: Get controller and method in view
Post: RE: Get controller and method in view

Using   Services::router ? /** * Returns the name of the matched controller. * * @return mixed */ public function controllerName() { return $this->translateURIDashes ? str_replace('-', ...
tony.a CodeIgniter 4 Support 2 2,185 05-04-2019, 11:30 PM
    Thread: Get controller and method in view
Post: Get controller and method in view

Hy  there . How to get current controller  and method from view file ?
tony.a CodeIgniter 4 Support 2 2,185 05-03-2019, 11:34 PM
    Thread: Admin App
Post: RE: Admin App

Hmmm yes you are right . A catch all single admin route and do the logic in controller
tony.a CodeIgniter 4 Support 5 2,078 05-02-2019, 04:29 AM
    Thread: Admin App
Post: RE: Admin App

Hy. Thanks for your replay . I don't wanna load 60-70 admin routes for every front request . I already have user defined routes in database for every front request redirecting to app routes . Ill try ...
tony.a CodeIgniter 4 Support 5 2,078 05-02-2019, 03:16 AM
    Thread: Never ending testing ENVIRONMENT
Post: RE: Never ending testing ENVIRONMENT

Removing all  references to cli and ENVIRONMENT switch  we have a gain of 40 - 100 ms /request no opcache .
tony.a CodeIgniter 4 Discussion 7 2,637 05-01-2019, 10:38 AM
    Thread: Never ending testing ENVIRONMENT
Post: RE: Never ending testing ENVIRONMENT

Why whould you sacrifice 2-3-4-5-x years x 365 days of PRODUCTION website for 2 minutes usage of spark or cli commands ? Add a subdomain and do it from there . production means PRODUCTION with cap...
tony.a CodeIgniter 4 Discussion 7 2,637 05-01-2019, 06:42 AM

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