Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Routing with parametars problem
Post: RE: Routing with parametars problem

iRedds Wrote: (04-08-2022, 08:39 AM) -- The namespace uses a backslash. $routes->add('product/(:any)', 'Namespace\Catalog::productLookup/$1'); https://codeigniter.com/user_guide/incoming/routing....
1,189 Views
6 Replies
04-08-2022, 08:44 AM
Didytz
    Thread: Routing with parametars problem
Post: RE: Routing with parametars problem

iRedds Wrote: (04-08-2022, 07:35 AM) -- Slash in handler namespace is an error. @"kenji" It seems to me that an exception should be thrown for invalid slashes in the namespace of the route handler...
1,189 Views
6 Replies
04-08-2022, 08:26 AM
Didytz
    Thread: Routing with parametars problem
Post: Routing with parametars problem

Hi, I asked this on stackoverflow but decided that this is better place to ask for help, so my problem is this: When I need to take parameter from URI I just can't make my route works. So this is w...
1,189 Views
6 Replies
04-08-2022, 07:09 AM
Didytz
    Thread: Using composer to install thirdparty library
Post: RE: Using composer to install thirdparty library

captain-sensible tnx for reply. I did visit composer web page to try figure it out and I did in some way but I am not sure how it will play along with CI4. So lets clarify few thing: 1) I am running ...
3,502 Views
3 Replies
10-15-2020, 01:53 AM
Didytz
    Thread: Using composer to install thirdparty library
Post: Using composer to install thirdparty library

Hi, I am maybe asking "stupid" question but can someone help me with installing thirdparty library using composer. First, I never used composer as I always install scripts manual (CI 4 is installed ...
3,502 Views
3 Replies
10-15-2020, 12:52 AM
Didytz
    Thread: How to use third party library
Post: RE: How to use third party library

InsiteFX Wrote: (09-02-2020, 03:53 AM) -- From the doc first you need to download Composer which will install it. Once Composer is installed you need to run it from a terminal in the project root....
4,031 Views
3 Replies
09-02-2020, 04:35 AM
Didytz
    Thread: How to use third party library
Post: How to use third party library

Hi, This is maybe stupid question but I have no idea how to use third party library in my project? I want to use http://mobiledetect.net/ (http://mobiledetect.net/) library but I don't know where ...
4,031 Views
3 Replies
09-02-2020, 12:54 AM
Didytz
    Thread: Parallel execution of helper function
Post: RE: Parallel execution of helper function

bivanbi Wrote: (08-31-2020, 06:20 AM) -- By your description, I assume your cron job call the helper functions over HTTP. I do not know if your environment permits to call your CI instance directl...
2,307 Views
4 Replies
08-31-2020, 06:29 AM
Didytz
    Thread: Parallel execution of helper function
Post: Parallel execution of helper function

Hi, My code is run by cronjob every five minutes. Among other things, code calls helper function that is used for cashing content. Three helper functions are called in a loop around 50-100 times, dep...
2,307 Views
4 Replies
08-31-2020, 06:08 AM
Didytz
    Thread: Can't use cookie helper in CI 4.0.4
Post: RE: Can't use cookie helper in CI 4.0.4

kilishan Wrote: (07-23-2020, 07:00 AM) -- Are you stopping execution of the script with a dd(), die(), etc? If so that would stop the cookies from being sent or updated. -- No
4,784 Views
10 Replies
07-23-2020, 07:04 AM
Didytz
    Thread: Can't use cookie helper in CI 4.0.4
Post: RE: Can't use cookie helper in CI 4.0.4

InsiteFX Wrote: (07-21-2020, 03:22 AM) -- When working with cookies you need to do a web browser refresh to see the cookie update. -- I know that and I do refresh but it seems that something is not...
4,784 Views
10 Replies
07-21-2020, 04:36 AM
Didytz
    Thread: Manual update of CI
Post: Manual update of CI

Hi, Can you please tell me how is best way to do manula update of CI? For example I am using right now 4.0.3 and would like to update to 4.0.4, but without Composer. If I just overwrite files  wi...
1,163 Views
2 Replies
07-20-2020, 03:07 PM
Didytz
    Thread: Can't use cookie helper in CI 4.0.4
Post: RE: Can't use cookie helper in CI 4.0.4

Hi, I have same problem. I have included helper("cookie") but it is not setting nor deleting cookie. But If I use standard PHP  "setcookie...." it works fine. So basically I have same problem as OP....
4,784 Views
10 Replies
07-20-2020, 02:42 PM
Didytz
    Thread: Routes problem
Post: RE: Routes problem

InsiteFX Wrote: (06-15-2020, 02:55 AM) -- PHP Code: -- // Change to the below $routes->add('korisnik/admin/urediFeed/(:any)', 'Pers/UserAdministracija::urediFeed/$1'); // Try this $routes->get(...
3,611 Views
8 Replies
06-17-2020, 03:18 PM
Didytz
    Thread: Cron job
Post: RE: Cron job

dave friend Wrote: (06-15-2020, 10:53 AM) -- Didytz Wrote: (06-15-2020, 06:43 AM) -- Hi, Can I run codeigniter Controller as CronJob and if I can is there any specific code that I need to include i...
5,434 Views
2 Replies
06-15-2020, 02:14 PM
Didytz
    Thread: Cron job
Post: Cron job

Hi, Can I run codeigniter Controller as CronJob and if I can is there any specific code that I need to include in it? What I want to do is to run one file which will collect and save some data from o...
5,434 Views
2 Replies
06-15-2020, 06:43 AM
Didytz
    Thread: Routes problem
Post: RE: Routes problem

InsiteFX Wrote: (06-15-2020, 02:55 AM) -- PHP Code: -- // Change to the below $routes->add('korisnik/admin/urediFeed/(:any)', 'Pers/UserAdministracija::urediFeed/$1'); // Try this $routes->get(...
3,611 Views
8 Replies
06-15-2020, 06:37 AM
Didytz
    Thread: Routes problem
Post: RE: Routes problem

burgoyn1 Wrote: (06-14-2020, 11:46 AM) -- Just out of curiosity, what happens if you change (:num) to (:any), and move the new route between the lines: Code: -- $routes->add('korisnik/promjenaP...
3,611 Views
8 Replies
06-14-2020, 12:47 PM
Didytz
    Thread: Routes problem
Post: RE: Routes problem

dave friend Wrote: (06-14-2020, 08:41 AM) -- Please show the exact 404 message including "some controller that I don't have." Just a guess, but I suspect you have not used namespace correctly. -- S...
3,611 Views
8 Replies
06-14-2020, 10:09 AM
Didytz
    Thread: Routes problem
Post: Routes problem

Hi, I have those routes defined: Code: -- $routes->add('registracija', 'Pers/Registracija::index'); $routes->add('registracijaPotvrdi', 'Pers/Registracija::registracijaPotvrdi'); $routes->add...
3,611 Views
8 Replies
06-14-2020, 07:09 AM
Didytz

Theme © iAndrew 2016 - Forum software by © MyBB