passing pages_id |
Hello,
When someone press this edit button, I expect that it carries me to call a certain database which is the particular data should be retrieve and show it in : http://127.0.0.1/CompanyGiondaCI/index.p.../editpages from: http://127.0.0.1/CompanyGiondaCI/index.php/cpages/pages I wonder who to transfer and pass the pages_id value to the next page? Any clue? Thanks in advance. views/pages.php PHP Code: <div class="row-fluid"> controllers/Cpages.php PHP Code: public function pages() {
" If I looks more intelligence please increase my reputation."
I would like to know when you are going to quit and sit down and read the php manuals, CodeIgniter Users Guide and do Google Searches ?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(08-09-2016, 11:13 PM)davy_yg Wrote: Hello, I have done some google search and have not find the answer yet about how to passing variables from view to controllers. I only know how to pass variable from controllers to view. And hoping to get more guideline to find my way out.
" If I looks more intelligence please increase my reputation."
You need to add to the page_id to the URL like this
PHP Code: <button type="button" class="edit" Then in the controller method you add an id variable as parameter.
Okay, I just did. Here is my result after typing that codes:
An Error Was Encountered Unable to load the requested class: Scripto
" If I looks more intelligence please increase my reputation."
Hi davy_yg,
I have been reading some of your posts and it is clear that people are getting annoyed with you. You fail to read provided answers and have very little understanding of PHP. Your knowledge level of HTML and CSS also seems to be little to none. You do seem eager to build an application using CodeIgniter. But CodeIgniter is not a magic tool that will give you what you need. Without a basic understanding of PHP you will keep asking questions that will get you nowhere on the forum. Start where we all had to start. READ Documentation!, STUDY!, read books and practice! before you attempt building an application. And please, please stop asking the forum to build the application for you. Because that is literally what you are doing. Kind regards, Martin |
Welcome Guest, Not a member yet? Register Sign In |