Welcome Guest, Not a member yet? Register   Sign In
Create a Popup window
#3

[eluser]DeaD SouL[/eluser]
Hi,

I didn't understand what you meant,.. I think you was asking how to make a popup or where to put it?

Let's say you have a view called layout.php which will hold all your nav-menu links

Code:
<html>
....
<!-- your main nav -->
<?php
$atts = array(
    'width'      => '800',
    'height'     => '600',
    'scrollbars' => 'yes',
    'status'     => 'yes',
    'resizable'  => 'yes',
    'screenx'    => '0',
    'screeny'    => '0'
);

echo anchor_popup('regform_control/mymethod', 'RegForm', $atts);
?>
....
</html>


and your controller
application/controllers/regform_control.php

Code:
class Regform_control extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
    }
    public function mymethod()
    {
        // your validation rules

        // and show the registration form view
        $this->load->view('reg_form');
    }
}

and your registration form view
application/views/reg_form.php
should be a normal form..


so the popup link has nothing to do with the reg. form... Since it is only a link to a page that shows nothing but the form.


read more about url helper

good-luck


Messages In This Thread
Create a Popup window - by El Forum - 05-26-2011, 04:46 AM
Create a Popup window - by El Forum - 05-26-2011, 05:15 AM
Create a Popup window - by El Forum - 05-26-2011, 05:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB