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

Recommended Answers

All 6 Replies

try using <?php $_SERVER?>/admin/validateLogin/ in your form action.

now its giving access forbidden error :(

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

i am using localhost

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 :)

Ok. Thanks for marking the thread solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.