Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: re-route with optional argument. possible bug??
Post: RE: re-route with optional argument. possible bug?...

ciadmin Wrote: (06-09-2016, 05:07 AM) -- harpreet Wrote: (06-09-2016, 02:17 AM) -- ciadmin Wrote: (06-09-2016, 02:10 AM) -- The parameter in your rule is not optional. You need to do what cartalot ...
15,629 Views
12 Replies
06-09-2016, 05:28 AM
harpreet
    Thread: re-route with optional argument. possible bug??
Post: RE: re-route with optional argument. possible bug?...

ciadmin Wrote: (06-09-2016, 02:10 AM) -- The parameter in your rule is not optional. You need to do what cartalot suggested in the first reply to your post. -- So should we consider this "missing f...
15,629 Views
12 Replies
06-09-2016, 02:17 AM
harpreet
    Thread: re-route with optional argument. possible bug??
Post: RE: re-route with optional argument. possible bug?...

arma7x Wrote: (06-09-2016, 01:09 AM) -- http://localhost/admin/foos does link to $route ["admin/foos" ] = "admin/hello" ;(which is not define in route) and i think will not link to $route ["admin/fo...
15,629 Views
12 Replies
06-09-2016, 01:19 AM
harpreet
    Thread: re-route with optional argument. possible bug??
Post: RE: re-route with optional argument. possible bug?...

arma7x Wrote: (06-08-2016, 11:56 PM) -- Which CI version? -- 3.0.6
15,629 Views
12 Replies
06-09-2016, 12:00 AM
harpreet
    Thread: re-route with optional argument. possible bug??
Post: RE: re-route with optional argument. possible bug?...

cartalot Wrote: (06-08-2016, 01:43 PM) -- Well i will leave it to smarter people then me whether this is a "bug" or not. But for me it is exactly what i would expect. If i'm assigning a route, and th...
15,629 Views
12 Replies
06-08-2016, 08:19 PM
harpreet
    Thread: re-route with optional argument. possible bug??
Post: re-route with optional argument. possible bug??

hello there, so i was working a project and tried to make an obvious route that did not work. Example if you have a route like PHP Code: -- $route["admin/foos/(:num)"] = "admin/hello/$1"; -- and a...
15,629 Views
12 Replies
06-07-2016, 10:58 PM
harpreet
    Thread: Route with optional param is not working
Post: RE: Route with optional param is not working

kilishan Wrote: (06-07-2016, 06:07 PM) -- In your method definition, provide a null possibility for the argument and it should work for you: Code: -- function deleteImage($id = null) {    ....
6,889 Views
4 Replies
06-07-2016, 10:43 PM
harpreet
    Thread: Route with optional param is not working
Post: RE: Route with optional param is not working

cartalot Wrote: (06-07-2016, 01:33 PM) -- this doesn't make any sense. are you really saying this is your url? http://localhost/PROJECT/admin/product/image how could that be a delete request when...
6,889 Views
4 Replies
06-07-2016, 10:26 PM
harpreet
    Thread: Route with optional param is not working
Post: Route with optional param is not working

hello, So I have routes like PHP Code: -- $route["admin/product/image/(:num)"]["delete"] = "product/deleteImage/$1"; -- so accessing http://localhost/PROJECT/admin/product/image as a delete req...
6,889 Views
4 Replies
06-06-2016, 09:29 PM
harpreet
    Thread: Calendar class, is there a way to show previous month dates in current calendar
Post: Calendar class, is there a way to show previous mo...

Hi, I am trying to figure out if its possible to show up some of previous months dates in current calendar. example https://www.manageengine.com/products/service-desk-msp/help/adminguide/images/lef...
3,030 Views
1 Replies
05-02-2015, 08:30 AM
harpreet
    Thread: DB_Forge, default value
Post: RE: DB_Forge, default value

agreed
25,450 Views
12 Replies
03-31-2015, 07:12 AM
harpreet
    Thread: DB_Forge, default value
Post: RE: DB_Forge, default value

same table cannot have two timestamps fields.
25,450 Views
12 Replies
03-31-2015, 07:09 AM
harpreet
    Thread: DB_Forge, default value
Post: RE: DB_Forge, default value

really helpful thank you, This is how i am using them with two fields PHP Code: -- 'created_at  timestamp default current_timestamp', 'updated_at' => array( 'type' => 'varchar', ...
25,450 Views
12 Replies
03-31-2015, 06:23 AM
harpreet

Theme © iAndrew 2016 - Forum software by © MyBB