Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Prevent null values on input post
Post: Prevent null values on input post
Just extends Input Core
PHP Code:<?phpclass My_Input extends CI_Input{ function __construct() { &nb... |
|
jonathanq |
Best Practices
|
3 |
3,385 |
09-29-2017, 10:10 AM |
|
|
Thread: Is there a way to route an entire controller?
Post: RE: Is there a way to route an entire controller?
(08-08-2017, 12:34 AM)desbest Wrote: I am going to request this feature in the next version of Codeigniter.
What do you think about Routes in a Controller Comments |
|
jonathanq |
General Help
|
7 |
3,706 |
08-10-2017, 08:47 AM |
|
|
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:{pos... |
|
jonathanq |
CodeIgniter 3.x
|
7 |
6,192 |
08-04-2017, 04:39 PM |
|
|
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:... |
|
jonathanq |
Addins
|
1 |
1,520 |
08-03-2017, 11:37 AM |
|
|
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 ); |
|
jonathanq |
General Help
|
7 |
10,287 |
02-23-2017, 01:42 PM |
|
|
Thread: Get query results as their native data type?
Post: RE: Get query results as their native data type?
(02-16-2017, 07:31 AM)dimas Wrote: 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 ... |
|
jonathanq |
General Help
|
1 |
1,788 |
02-16-2017, 05:05 PM |
|
|
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 to r... |
|
jonathanq |
CodeIgniter 4 Feature Requests
|
1 |
2,059 |
09-22-2016, 04:25 PM |
|
|
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{ /*... |
|
jonathanq |
Libraries & Helpers
|
0 |
1,258 |
08-01-2016, 11:00 AM |
|
|
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?
<IfMod... |
|
jonathanq |
General Help
|
3 |
7,929 |
04-30-2016, 02:42 PM |
|
|
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 CI_Controller
{... |
|
jonathanq |
Libraries & Helpers
|
0 |
1,149 |
04-26-2016, 09:31 AM |
|
|
Thread: how to solve this db error?
Post: RE: how to solve this db error?
(04-14-2016, 01:36 PM)waptik Wrote: 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_id,vo... |
|
jonathanq |
General Help
|
3 |
3,388 |
04-14-2016, 03:40 PM |
|
|
Thread: get url from a controller and method
Post: RE: get url from a controller and method
(04-13-2016, 12:33 PM)Wouter60 Wrote: Did you try this:
PHP Code:$this->load->helper('url'); // if you need this often, autoload the helper&nb... |
|
jonathanq |
General Help
|
5 |
6,635 |
04-14-2016, 09:25 AM |
|
|
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 = $... |
|
jonathanq |
General Help
|
5 |
6,635 |
04-13-2016, 11:34 AM |
|
|
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_cl... |
|
jonathanq |
CodeIgniter 3.x
|
0 |
1,174 |
01-31-2016, 10:21 PM |
|
|
Thread: Front end CRUD builders
Post: RE: Front end CRUD builders
You can add this project:
https://gitlab.com/yonice.perez/codeigni...l-schemadb
See readme and try is to easy not require console not require phpadmin not require dbforge only YML sintax and run sche... |
|
jonathanq |
General Help
|
3 |
2,350 |
10-17-2015, 09:35 AM |
|
|
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 library sc... |
|
jonathanq |
Addins
|
0 |
2,171 |
09-30-2015, 08:58 AM |