0

Hi all
i am new to kohana 3.2.x
i used to work on kohana 2.3.x
the directory structure is not same in both cases so i am getting problem while posting my form to any controller.

<form action="<?php echo url::base();?>admin/validateLogin" method="post">
            <h3>Enter Your Credentials:</h3>        
            <fieldset>
                
                <p><label>Email:</label><input type="text" name="email" /></p>
                <p><label>Password:</label><input type="password" name="password" /></p>
              
                <input type="submit" value="Login" />
            </fieldset>
        </form>

here is my form.
giving "object not found error" i.e its not kohana error, server is unable to find the specified URL

2
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by fobos
0

are you using localhost or computer IP in your url. localhost will be fine, but you have to configure using your computer IP

0

fixed with my problem. in kohana 3.x.x
there is a specific way to write a function i.e.

public function action_showLogin(){
//show form
}

"action_" is necessary with every function name in kohana 3
where as in my code above, "validateLogin" was my function name. i changed it to action_validateLogin and now its working :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.