Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Routes with 2 variables CI3
Post: Routes with 2 variables CI3

Hello. I need something like this: $route['controller1/function'] = 'controller2/funtion/var1=thing/var2=otherthing'; But it doesn't work. $route['controller1/function'] = 'controller2/funt...
1,035 Views
1 Replies
10-25-2021, 05:08 AM
Omar Crespo
    Thread: Dropdown
Post: RE: Dropdown

InsiteFX Wrote: (09-13-2020, 08:42 AM) -- The %201 means there is a space in front of the 1 use php trim on the field. -- I've tried that but the problem persist, for some reason, JS gives the valu...
2,839 Views
3 Replies
09-15-2020, 10:45 AM
Omar Crespo
    Thread: Message: Undefined variable: x
Post: RE: Message: Undefined variable: x

Hello, in your controller, call the model in lowercase: $this->load->model('procedure'); In the view use the function empty($var). Code: -- if(!empty($recipes){ all your code } else{ echo "Error, ...
2,054 Views
2 Replies
09-15-2020, 09:29 AM
Omar Crespo
    Thread: Extend CI model to allow params to be passed to the constructor?
Post: RE: Extend CI model to allow params to be passed t...

Are you uzing CI4 or still CI3??
1,768 Views
3 Replies
09-12-2020, 12:43 PM
Omar Crespo
    Thread: Dropdown
Post: RE: Dropdown

Hi friend, probably you got the same error that I had. For some reason I still don't know. You send country_id = 1, and, for some reason it turns to %201.
2,839 Views
3 Replies
09-12-2020, 04:21 AM
Omar Crespo
    Thread: proxy ips
Post: RE: proxy ips

Use the squid proxy. Search for white lists. The idea is that you forbid all conection except those links. So combine the acl rules with the white lists. You can also use IPTABLES, it's a firewall...
1,640 Views
2 Replies
09-12-2020, 04:09 AM
Omar Crespo
    Thread: Unable to access an error message corresponding to your field name
Post: RE: Unable to access an error message correspondin...

Hello, there's no rule for the username. You must add one.
6,181 Views
1 Replies
09-11-2020, 07:14 AM
Omar Crespo
    Thread: CodeIgniter4-translations
Post: RE: CodeIgniter4-translations

Hi. I've just created an acount on github, w3rb1n1ch, because /es/Validation.php has is_not_unique in English. So I've tried to fixed it, but it remains in English. Can you help me to help you??
27,771 Views
20 Replies
09-10-2020, 10:52 PM
Omar Crespo
    Thread: Codeigniter website PHP code theme not working to register & Login
Post: RE: Codeigniter website PHP code theme not working...

The problem seems to be with $password, it has no value.Try this way: Code: --     function _check_login()     {         // limit number of login attempts         $ok_to_login = $this->users_model...
3,834 Views
5 Replies
09-10-2020, 09:15 PM
Omar Crespo
    Thread: Insertar datos en dos tablas distintas
Post: RE: Insertar datos en dos tablas distintas

sergi Wrote: (02-23-2020, 12:48 PM) -- Hola, no se como insertar datos en dos tablas distintas.  Gracias -- Hola, saludos desde Cuba. Según tu código solo usas la tabla despesa. Como no se cu...
6,556 Views
2 Replies
09-10-2020, 08:58 PM
Omar Crespo
    Thread: deleting files with delete_files() in helper
Post: RE: deleting files with delete_files() in helper

chmod 775 or at least 664 should do the job.
9,742 Views
5 Replies
09-10-2020, 11:31 AM
Omar Crespo
    Thread: Best way to project, plan and structure an app with CI
Post: RE: Best way to project, plan and structure an app...

Hi. 1- I start with all the Software Engineering. 2- Create the database. 3- Extend the CI_Model and CI_Controller. 4- Work on Model and Controllers 5- Work on views. I do it this wa...
13,669 Views
9 Replies
09-10-2020, 11:01 AM
Omar Crespo
    Thread: how to deal with .com in SQL query?
Post: RE: how to deal with .com in SQL query?

No. See the structute of a query is like this: OPERATION table_fields FROM table START_CONDITION condition_field = condition_value Look at this example: "SELECT name, age FROM people_table WH...
2,570 Views
6 Replies
09-10-2020, 10:34 AM
Omar Crespo
    Thread: ErrorException Trying to access array offset on value of type null
Post: RE: ErrorException Trying to access array offset o...

You just missed the parameter, the correct function should be: public function getAccess($menu) { $queryMenu = $this->getIdMenu($menu); $id_menu = $queryMenu['id_user_menu']; } Also check 1 more thi...
19,446 Views
4 Replies
09-10-2020, 09:09 AM
Omar Crespo
    Thread: how to deal with .com in SQL query?
Post: RE: how to deal with .com in SQL query?

You don't need to, if your id is the int type, it goes without quote, and if it is string type, it already have it.
2,570 Views
6 Replies
09-10-2020, 05:20 AM
Omar Crespo
    Thread: suggestions - open for help
Post: RE: suggestions - open for help

For your marketing idea, the team should post a benchmark comparisson of CI, Yii2, Laravel, Cake-PHP, etc. After all CI stands for speed.
2,254 Views
1 Replies
09-10-2020, 05:17 AM
Omar Crespo
    Thread: Images files from javascript
Post: RE: Images files from javascript

var images = ["", ""];
1,712 Views
3 Replies
09-10-2020, 04:59 AM
Omar Crespo
    Thread: how to deal with .com in SQL query?
Post: RE: how to deal with .com in SQL query?

Your correct example seems to be wrong, see you miss the ' ' in the values. Your correct example should be like this in order to work: "email = '[email protected]' AND campaign = 'Apple'"
2,570 Views
6 Replies
09-10-2020, 04:50 AM
Omar Crespo
    Thread: Unable to connect to the database. (postgres)
Post: RE: Unable to connect to the database. (postgres)

Check if the name of the db Driver, table, user and password are correct. Please post the error message in order to see what's wrong.
9,939 Views
5 Replies
09-09-2020, 06:35 PM
Omar Crespo
    Thread: Full list of Database Drivers
Post: Full list of Database Drivers

Hi, can anyone give me a list of all database drivers for CI3 and CI4. I mean, exactly what to whrite in: 'dbdriver' => ' ';
1,359 Views
1 Replies
09-09-2020, 04:09 PM
Omar Crespo

Theme © iAndrew 2016 - Forum software by © MyBB