Jump to content
  • 0

Php Questions


MemoryX2

Question

Okay, so I know this is going to seem like a stupid question to a lot of people but I need some help on this code. On the client side, the login form is created by the following code. This code gets the login path, crsf token and all that stuff... I need to add class="form-signin" to the form but I have no idea how to do so.

 

I just want to form to have the default stuff, plus class="form-signin"

		<?php
		$this->WidgetClient->clear();
		
		$this->Form->create();
		if ($this->Html->ifSet($vars->forward_to))
			$this->Form->fieldHidden("forward_to", $vars->forward_to);
		?>

 

 

Thanks

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

See http://source-docs.blesta.com/class-Form.html#_fieldHidden click to Expand, I believe you want to add a third parameter to fieldHidden consisting of an array containing your form-signin class.

 

Thanks, what I've tried didn't work.

 

 

It's this line here:

$this->Form->create();

If I put anything inside create() then it just automatically becomes the action, If I add it after that line then it does nothing.

Link to comment
Share on other sites

  • 0
$this->Form->create($this->base_uri . "login/", array('class' => "form-signin"));

 

 

Tyson, you're the MAN!!

 

 

I'm thinking about moving to a theme sorta like the following. One thing I want is for everything to look exactly the same when moving from my front page static template to the back blesta client access.

 

This is actually coded. No photoshoping, but If I do this I have a long way to go.

 

 

Desktop:

 

login_largeScreen.png

 

 

Tablet:

 

login_tablet.png

 

 

Phone:

 

login_phone.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...