Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Cakephp+Twitterbootstrap

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44963
    gobibooma
    Member

    Hai All, i am new to cakephp. I configured cakephp with twitter bootstrap layout for my project work.

    When I create a twitter bootstrap alert message in index page, and clicked close button in alert, alert gets closed. But if i redirected to another page and created a alert message there, it’s not possible to close my alert from that page.

    Can any one help me to solve this problem..

    I have attached my sample code also


    **model code:**

    class Task extends AppModel
    {
    var $name = 'Task';

    }
    ?>

    **Controller code:**

    class TasksController extends AppController
    {
    var $name = 'Tasks';
    var $components = array('Session');
    var $helpers = array('Html', 'Form');
    public function beforeFilter() {
    parent::beforeFilter();
    }

    function index()
    {

    }

    function index1()
    {

    }


    }

    ?>

    **View code:(index.ctp)**










    html->link('Click Me', array('action'=>'index1')); ?>



    echo $this->Form->create('Task',array('controller' => 'Tasks','action'=>'index1'));
    echo $this->Form->submit('Click Me',array(' class'=>'btn btn-success ',' name'=>'commit' ,'type'=>'submit' ,'value'=>'Sign in' ));
    echo $this->Form->end();
    ?>


    Warning! Best check yo self, you're not looking too good.







    **Index1.ctp:**



    Bootstrap 101 Template







    Warning! Best check yo self, you're not looking too good.






    Please give me suggestions to solve this error.

    #135972
    gobibooma
    Member

    iam new one to cakephp, i configured cakephp with twitter bootstrap layout.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.