Magento Contact Form missing - forms

really strange my contact us is missing in the footer and on the navigation bar
i have custom theme and it was before working but not anymore .
here is the message it giving me when i go by the link .
Fatal error: Call to a member function setFormAction() on a non-object in /mounted-storage/home159/sub018/sc85272-SRLF/caramellachocolates.com/ccd/app/code/core/Mage/Contacts/controllers/IndexController.php on line 55
ive also copied the contacts folder from the default theme and pasted in custom i also copied the xml file from default and pasted in custom . but still getting this error.

Hello add below code into indexcontroller.php may be help you
require_once 'Mage/Contacts/controllers/IndexController.php';
class MyNameSpace_Yourmodule_Contacts_IndexController extends Mage_Contacts_IndexController
{
//do somthing
}

Related

Identifier 'methodname' is not defined in ionic

I am a newbie in ionic, Just created a blank app and trying to add an action to a button. I am getting the following error – ‘Identifier ‘buttonClicked’ is not defined. The component declaration, template variable declarations, and element references do not contain such a member’. Please let me know what I am doing wrong here?
Sample code
You have to create the corresponding method in your home.page.ts file. In the Screenshot i see, that you have opened the home.module.ts file, but your method has to be in the home.page.ts file.
Your HTML call of the ion-button component is correct.
Your code snapshot does not show the TypeScript (.ts) part though.
You should have the corresponding method in there. Something like:
onClick() {
console.log("button clicked ok");
}

how to add a class to symfony widget root element

i was able to add a class to the form itself and for example to a form_row like you can see on the screenshot by adding a second parameter to form_start/form_row and so on. but i was not able to find a solution to add a class to the parent of div.choice-box which already has the class form-group. whats the correct solution right here?
thanks guys
it was quite a simple solution - we have our own template file called fields.html.twig - i just opened the vendor file bootstrap_3_layout.html.twig and copied the necessary parts over into our template file were i was able to apply the needed changes.
have a nice one.

Zend navigation object empty in view phtml

I have a module based application with a default and a user module.
My Navigation menu which is called from the layout is working fine, but now want to create a sidemenu. I would like to call it from the e.g. language.phtml in user/settings/language.
in my language.phtml
...
<?php echo $this->navigation()->menu()
->setPartial('partials/sidemenu.phtml')
->render(); ?>
...
This partial is in the scripts directory in the user module.
The partial is being called but for some reason the navigation/container object is empty.
Thanks in advance!
Peter

How can i read a HTML file and display the content in GWT with its css and Javascripts

I just want to read a HTML file and display its content in a GWT widget. Already I have done it but i'm not getting its css and javascripts. So can anyone help me to get the content with its css and javascripts?
I tried the following code,
public class FrameExample implements EntryPoint {
public void onModuleLoad() {
Frame frame = new Frame("http://www.google.com/");
RootPanel.get().add(frame);
}
}
I got a rectangular box only. But I don't get the expected result. Can you help me?
Forget everything I said, you can get the answerer here!
(Iframe not displaying some pages)
Basically: google has a mechanism to detect if it is not hosted in a iframe. This of course raises the question why they us it in their examples.....
BTW: a site like http://en.wikipedia.com works.

Zendframework CSS Problem

I am very to new to zend frame work , I am trying to set up a project (Done by other programmer) in my local server, i have setted up this project, but all pages are styless in my browser, ie the CSS files are not taken in phtml pages, For solving this issue which file I have ti Edit?
Plss Help me
It depends upon the directory structure that your app has adapted. However checkout if you have views/scripts directory then, again depending upon the directory style used, the header.phtml file (if exist) will have invalid link to css.
If you dont have header.phtml, then use any text-editor and search in your views directory with keyword 'css', and you will get to know the possible file name.
Global css files I would add in the bootstrap file and any styles that relate to a page I would add in the relevant controller action for example...
global styles in bootstrap file
protected function _initView()
{
$this->view = new Zend_View();
$this->view->headLink()->appendStylesheet('css/global.css');
}
or in a specific controller action
public function myPageAction()
{
$view = $this->view;
$view->headLink()->appendStylesheet('css/myPageStyles.css');
}