Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: ci3 vs ci4 database library
Post: ci3 vs ci4 database library

Hi !   looking to implement ci database  library into an existing "oldie" project , still not decided whitch one to implement  !   Main "advantage "  of ci3 is reusable query builder ?   same qb cla...
1,579 Views
0 Replies
03-04-2022, 02:15 PM
tony.a
    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() {      ...
1,722 Views
1 Replies
06-25-2020, 04:11 PM
tony.a
    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
11,397 Views
11 Replies
10-17-2019, 04:01 AM
tony.a
    Thread: Benchmarking Ci4 router
Post: RE: Benchmarking Ci4 router

https://twenty-tech.com/laravel-quick-performancepart-1/ https://akrabat.com/slims-route-cache-file/ Allow  router and subrouter to cache and load all routes  at once
10,519 Views
12 Replies
09-13-2019, 01:39 AM
tony.a
    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 modul...
10,519 Views
12 Replies
09-12-2019, 11:47 PM
tony.a
    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 ? I...
10,519 Views
12 Replies
09-12-2019, 12:02 PM
tony.a
    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......
10,519 Views
12 Replies
09-12-2019, 10:22 AM
tony.a
    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, 2...
10,519 Views
12 Replies
09-12-2019, 10:07 AM
tony.a
    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
10,519 Views
12 Replies
09-12-2019, 01:36 AM
tony.a
    Thread: Service singletons
Post: RE: Service singletons

Whats your opinion about providing only singletons in services lib and leave new class instance to developer .
2,936 Views
3 Replies
09-11-2019, 03:37 PM
tony.a
    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]...
10,519 Views
12 Replies
09-11-2019, 03:22 PM
tony.a
    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 ?
2,936 Views
3 Replies
09-10-2019, 09:24 AM
tony.a
    Thread: Never ending testing ENVIRONMENT
Post: RE: Never ending testing ENVIRONMENT

At least a branch where there is none of those
6,452 Views
7 Replies
05-07-2019, 02:13 PM
tony.a
    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 produ...
6,452 Views
7 Replies
05-07-2019, 02:07 PM
tony.a
    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
4,331 Views
4 Replies
05-04-2019, 11:46 PM
tony.a
    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('-'...
4,135 Views
2 Replies
05-04-2019, 11:30 PM
tony.a
    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 ?
4,135 Views
2 Replies
05-03-2019, 11:34 PM
tony.a
    Thread: Admin App
Post: RE: Admin App

Hmmm yes you are right . A catch all single admin route and do the logic in controller
5,045 Views
5 Replies
05-02-2019, 04:29 AM
tony.a
    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 ...
5,045 Views
5 Replies
05-02-2019, 03:16 AM
tony.a
    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 .
6,452 Views
7 Replies
05-01-2019, 10:38 AM
tony.a

Theme © iAndrew 2016 - Forum software by © MyBB