Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Prevent null values on input post
Post: Prevent null values on input post

Just extends Input Core PHP Code: --
3,751 Views
3 Replies
09-29-2017, 10:10 AM
jonathanq
    Thread: Is there a way to route an entire controller?
Post: RE: Is there a way to route an entire controller?

desbest Wrote: (08-08-2017, 12:34 AM) -- I am going to request this feature in the next version of Codeigniter. -- What do you think about Routes in a Controller Comments (https://github.com/yonine...
4,411 Views
7 Replies
08-10-2017, 08:47 AM
jonathanq
    Thread: Adding get routes name feature
Post: RE: Adding get routes name feature

I use routes in a controller better than laravel example: PHP Code: -- /** * @route:product */ Class ProductController extends CI_Controller{ /** * @route:{post}insert */ function insert() ...
6,970 Views
7 Replies
08-04-2017, 04:39 PM
jonathanq
  Wink Thread: Routes From Controller
Post: Routes From Controller

Can you image create slug in a controller, Just adding: PHP Code: -- /** * @route:thisismyslug */ function slug() { echo "url thisismyslug"; } -- or PHP Code: -- /** * @route:thisi...
1,693 Views
1 Replies
08-03-2017, 11:37 AM
jonathanq
    Thread: How to import a sql file in codeigniter?
Post: RE: How to import a sql file in codeigniter?

Try it Code: -- exec( 'echo "source '.$fileSQL.'"  | mysql -u '.$user.' -p.'$password ); --
12,223 Views
7 Replies
02-23-2017, 01:42 PM
jonathanq
    Thread: Get query results as their native data type?
Post: RE: Get query results as their native data type?

dimas Wrote: (02-16-2017, 07:31 AM) -- Hi, I've a MySQL 5.6 database with an PHP7/Codeigniter3.1 app querying it. When I do a query and get the results with $query->get()->result_array() the array...
2,054 Views
1 Replies
02-16-2017, 05:05 PM
jonathanq
    Thread: Routes in comments
Post: Routes in comments

Hi, You can read routes from the comments, no longer able to generate an array of these? You can make routes from the comments and generate them travez a simple script. Thus I do not need to go ...
2,295 Views
1 Replies
09-22-2016, 04:25 PM
jonathanq
    Thread: generate routes
Post: generate routes

easy generate routes concept: https://github.com/yonineitor/routes-ci easy to use PHP Code: -- /** * @route::arguments */ class Example3 extends CI_Controller { /** * @route::nume...
1,379 Views
0 Replies
08-01-2016, 11:00 AM
jonathanq
  Exclamation Thread: add htaccess folder application
Post: add htaccess folder application

Why CI need defined('BASEPATH') OR exit('No direct script access allowed'); in all files application? is required add index.html to all folders? is secure use htaccess for deny application? Re...
8,762 Views
3 Replies
04-30-2016, 02:42 PM
jonathanq
    Thread: Routes on comments
Post: Routes on comments

This is helpful because it is not necessary to be editing the file routes.php https://github.com/yonineitor/routes-ci Ex: Code: -- /** * @route::example-route */ class Example1 extends ...
1,235 Views
0 Replies
04-26-2016, 09:31 AM
jonathanq
    Thread: how to solve this db error?
Post: RE: how to solve this db error?

waptik Wrote: (04-14-2016, 01:36 PM) -- I am trying to list statistics about my contents. I have these tables{(sms:id,status,like,user,sms); (like_today:id,sms_id,vote,date); (like_history:id,sms_i...
3,804 Views
3 Replies
04-14-2016, 03:40 PM
jonathanq
    Thread: get url from a controller and method
Post: RE: get url from a controller and method

Wouter60 Wrote: (04-13-2016, 12:33 PM) -- Did you try this: PHP Code: -- $this->load->helper('url');  // if you need this often, autoload the helper in config/autoload.php echo current_url(); ...
7,566 Views
5 Replies
04-14-2016, 09:25 AM
jonathanq
    Thread: get url from a controller and method
Post: get url from a controller and method

Hello, Is posible get url from a controller and method Something like this: file routes.php $route['blog/from/controller/home'] = 'ControllerName/Home'; And anywhere controller $url = $this...
7,566 Views
5 Replies
04-13-2016, 11:34 AM
jonathanq
    Thread: Routes execution time
Post: Routes execution time

Anyone know you can create routes before loading the driver. It occurs to me to add the path to a HOOK before starting the controler function. I see in the system class exists and set_function set...
1,268 Views
0 Replies
01-31-2016, 10:21 PM
jonathanq
    Thread: Front end CRUD builders
Post: RE: Front end CRUD builders

You can add this project: https://gitlab.com/yonice.perez/codeigniter-agil-schemadb See readme and try is to easy not require console not require phpadmin not require dbforge only YML sintax and r...
2,616 Views
3 Replies
10-17-2015, 09:35 AM
jonathanq
    Thread: Create tables from a yml file
Post: Create tables from a yml file

You can do: create table, modify columns, add columns, add keys, drop columns and drop tables all from a YAML file, this is very easy and fast schema migration. Look at the README and try librar...
2,416 Views
0 Replies
09-30-2015, 08:58 AM
jonathanq

Theme © iAndrew 2016 - Forum software by © MyBB