Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Fatal Errors when DataBase command fails
Post: RE: Fatal Errors when DataBase command fails

kilishan Wrote: (10-18-2019, 01:41 PM) -- Instead of checking for the number of affected rows, catch the Exception that's being thrown. You can handle the same situation you're trying now within the ...
3,562 Views
4 Replies
10-18-2019, 02:04 PM
GuilhermeBiz
    Thread: Fatal Errors when DataBase command fails
Post: RE: Fatal Errors when DataBase command fails

titounnes Wrote: (10-18-2019, 10:14 AM) -- replace "insert" with "save" $builder_audio->save($data); -- Got this error (method "save" does not exist):     "title": "Error",     "type": "Error", ...
3,562 Views
4 Replies
10-18-2019, 10:24 AM
GuilhermeBiz
    Thread: Fatal Errors when DataBase command fails
Post: Fatal Errors when DataBase command fails

Hello all, I'm having a struggle with Fatal Errors being thrown when some of my Databases commands don't return successfully, for example: Code: -- $flag = true; $db = \Config\Database::connect()...
3,562 Views
4 Replies
10-18-2019, 07:34 AM
GuilhermeBiz
    Thread: Using Typecast in Query Builder or Query
Post: RE: Using Typecast in Query Builder or Query

That worked, thanks. But the problem is still there, I think in future releases of CI4 they must provide a way for doing this type of conversion.
4,005 Views
2 Replies
04-12-2019, 09:46 AM
GuilhermeBiz
    Thread: Using Typecast in Query Builder or Query
Post: Using Typecast in Query Builder or Query

Hello all, I'm having a problem when trying to typecast a value in my Postgres's DB wich is type TEXT to INT to perfom a Order By in a query. When trying to use the standart QUERY() function I receiv...
4,005 Views
2 Replies
04-12-2019, 06:19 AM
GuilhermeBiz
    Thread: Controller in subfolder
Post: RE: Controller in subfolder

As I've saw in other topics on the forum, just after making the post I figured out what I was missing... It was the Namespace from my Controller file, I was copying from the default one and only chan...
5,426 Views
2 Replies
03-26-2019, 07:29 AM
GuilhermeBiz
    Thread: Controller in subfolder
Post: Controller in subfolder

Hello all, I'm studying how to separate my project so that my Controllers don't get too big, with many methods and parameters in each method, wich could cause a tremendous headache in future developme...
5,426 Views
2 Replies
03-26-2019, 04:30 AM
GuilhermeBiz
    Thread: Code Modules + Filters + Routes = ERR_TOO_MANY_REDIRECTS. Where am I going wrong?
Post: RE: Code Modules + Filters + Routes = ERR_TOO_MANY...

Thanks for sharing and solving your own issue, also thats a simple and efective way of doing a very simple authentication.
5,807 Views
4 Replies
03-20-2019, 11:50 AM
GuilhermeBiz
    Thread: Dynamic Routes
Post: RE: Dynamic Routes

lorenzoallopez91 Wrote: (03-14-2019, 11:56 PM) -- ROUTES $route['sample1/(:any)'] = 'ctrl1/index/$1'; $route['sample1'] = 'ctrl1/index'; $route['sample2/(:any)'] = 'ctrl2/index/$1'; $route['s...
3,802 Views
2 Replies
03-15-2019, 07:08 AM
GuilhermeBiz
    Thread: Dynamic Routes
Post: Dynamic Routes

Hello all, I'm new to CI. In my future project, we will have a menu structure like this: Menu1 --Submenu1 --Submenu2 --[...] Menu2 --Submenu3 --Submenu4 [...] So, many menus, and each of t...
3,802 Views
2 Replies
03-14-2019, 11:39 AM
GuilhermeBiz

Theme © iAndrew 2016 - Forum software by © MyBB