Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Cant send Email over SMTP
Post: RE: Cant send Email over SMTP

try adding these 2 variable on Email.php as well PHP Code: -- public $fromEmail = '[email protected]'; public $fromName = 'Some-name'; --
245 Views
4 Replies
11-24-2021, 07:02 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

:cry: :cry:  feel very stupid now. 'InsiteFX' gave the right code and I still didn't follow it.  thank you 'iRedds'  :D :D
495 Views
14 Replies
11-24-2021, 04:31 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

My local URL 'http://xx.localhost/' 'Admin/Reports/' is the path to the file (controller). 'Brands' is the controller 'stores' is the function. PHP Code: -- $routes->get('/admin/report...
495 Views
14 Replies
11-21-2021, 01:47 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

with "(:num)" I get a 404 error. 404 - File Not Found Controller or its method is not found: \App\Controllers\Admin::index if I use it as ":num" the page loads but "$1" is passed as the variabl...
495 Views
14 Replies
11-18-2021, 03:58 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

with the auto route off we can't pass these variable on the URI unless the URI class is used. So, any idea how can we have a custom routs with data been passed as my code below (which is not working) ...
495 Views
14 Replies
11-18-2021, 03:36 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

Yes the default routing works :D Any idea how to manage custom routing and have the auto routing off? PHP Code: -- $routes->setAutoRoute(false); --
495 Views
14 Replies
11-18-2021, 02:46 AM
chakycool
    Thread: Routing with variables
Post: RE: Routing with variables

Thanks guys for the response. this '/admin/reports/stores/(:num)' did not work :( this the path to the controller "Admin/Reports/", the controller is "Brands" and the function is "stores" hence PH...
495 Views
14 Replies
11-18-2021, 02:04 AM
chakycool
    Thread: Routing with variables
Post: Routing with variables

Hi, Below is my routing but I can't get the last uri segment in to the function. PHP Code: -- $routes->get('/admin/reports/stores/:num', 'Admin/Reports/Brands::stores/$1',['filter'=>'accessfilt...
495 Views
14 Replies
11-18-2021, 01:17 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

ikesela Wrote: (09-12-2021, 10:39 AM) -- you should post your entity class here. something not right with your code maybe. since i test on my entity class for created_at, it work perfectly. -- Than...
1,161 Views
15 Replies
09-13-2021, 12:36 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

Hi Paul, thanks for the suggestion but I found the issue. Everybody who specify the "public $appTimezone" make sure it's in camel case. I had it all in lower case and all worked but the Humanizatio...
1,161 Views
15 Replies
09-12-2021, 02:41 AM
chakycool
    Thread: CodeIgniter v4.1.4 released
Post: RE: CodeIgniter v4.1.4 released

Thank you team.
1,970 Views
14 Replies
09-07-2021, 01:17 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

Thanks ikesela for the suggestion but I still get the same error as before. "Call to a member function getTime() on null" "created_at" is not just a string when is comes out via Ci4.
1,161 Views
15 Replies
09-07-2021, 01:16 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

Tried this and I get a error " Call to a member function getTime() on null" SYSTEMPATH\I18n\Time.php at line 1168 * 1162 * @return mixed 1163 * @throws Exception 1164 */ ...
1,161 Views
15 Replies
09-06-2021, 06:58 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

Thanks paulbalanda, it worked. One more thing, how can I use the "humanize()" on this date?
1,161 Views
15 Replies
09-06-2021, 05:22 AM
chakycool
    Thread: CI4 error run curl
Post: RE: CI4 error run curl

Ci4 has made this very easy. Read up on the CURLRequest Class. https://codeigniter.com/user_guide/libraries/curlrequest.html?highlight=curl
611 Views
3 Replies
09-06-2021, 01:24 AM
chakycool
    Thread: having problem printing out "created_at" date
Post: RE: having problem printing out "created_at" date

$item to array didn't make things better. Array ( [menu_id] => 26 [comp_id] => 20002 [name] => Appetizers [image] => 20210905162616247.jpg [edited_by] => 0 [created_at] => CodeIgniter\I18n\Time Obj...
1,161 Views
15 Replies
09-05-2021, 11:44 PM
chakycool
    Thread: having problem printing out "created_at" date
Post: having problem printing out "created_at" date

This sound silly but I don't know what I'm doing wrong I just cant seem to echo out the  "created_at" & "updated_at" fields coming from the DB. Times stamps are created automatically using "protected ...
1,161 Views
15 Replies
09-05-2021, 05:53 AM
chakycool
    Thread: curlrequest - help
Post: RE: curlrequest - help

I'm not defining the base_uri but passing the full URL. Below is the updated code. $keys->url = "https://dommain.com" $client = single_service('curlrequest'); $result = $client->post($keys->url....
643 Views
2 Replies
08-19-2021, 02:10 AM
chakycool
    Thread: curlrequest - help
Post: curlrequest - help

HI, I'm trying to call a REST API using the curlrequest service and I think I go the post syntax wrong. Can someone help me. PHP Code: -- $client = single_service('curlrequest'); $result = $clien...
643 Views
2 Replies
08-15-2021, 11:44 AM
chakycool
    Thread: Live page coding
Post: Live page coding

Hi, I like to have the app running on 1 screen and code on the other screen with code auto refresh. I use VS-code with "Live server" extension and this works perfectly with CI3. Now when I do th...
870 Views
1 Replies
08-11-2021, 06:06 AM
chakycool

Theme © iAndrew 2016 - Forum software by © MyBB