Jump to content


abhishek

Member Since 03 May 2013
Offline Last Active May 13 2013 12:52 PM
-----

Posts I've Made

In Topic: Fetch id from url

10 May 2013 - 05:04 AM

@davidoster,

I dint get how will i fetch id from the  answer mentioned in

http://www.grocerycr...ting/#entry7286

 

I just  want to fetch id from the url

My url looks like:

http://localhost/pro...ts/home/edit/27


In Topic: Displaying Record name while editing

09 May 2013 - 11:09 AM

How will i determine the name of the project..??
I want when a click on edit button against a particular record , then it should display name of record


In Topic: How to pass extra data on a grocery crud view

09 May 2013 - 11:01 AM

I have used a different approach, just copied the set_subject function and it is working fine, so i want to share it with you.

 

Go to grocery crud Library and follow these simple steps:

 

Step1. Declare         

protected $extra = null;

 

Step2.Create function

public function set_extra($extra)
    {        
        $this->extra = $extra;
        return $this;
    }

Step 3.Add this into protected function get_common_data()

$data->extra                 = $this->extra;

 

and now You can pass Value in your controller like

$crud->set_extra('Value');

 

Now you can use  $extra in your view


In Topic: How to pass extra data on a grocery crud view

09 May 2013 - 07:59 AM

I used the code but dint work out.

 

 

http://www.grocerycr...a-data-to-view/